inscription and unscribe done

This commit is contained in:
Olivier PARPAILLON
2024-11-25 14:56:08 +01:00
parent b98dfd38c8
commit f852b0682a
3 changed files with 45 additions and 0 deletions

View File

@@ -74,6 +74,13 @@
{% elseif app.user and sortie.participants.contains(app.user) %}
<div class="mt-6">
<p class="text-green-600 font-bold">✅ Vous êtes déjà inscrit à cette sortie.</p>
{% if sortie.etat.libelle == 'Ouverte' %}
<form action="{{ path('sortie_unsubscribe', { id: sortie.idSortie }) }}" method="post" class="mt-6">
<button type="submit" class="px-6 py-3 bg-red-500 text-white rounded-md shadow hover:bg-red-600">
❌ Se désister
</button>
</form>
{% endif %}
</div>
{% endif %}
@@ -85,6 +92,14 @@
</a>
</div>
{% endif %}
{# {% if app.user %}#}
{# <div class="mt-6 flex">#}
{# <a href="{{ path('sortie_inscription') }}">#}
{# <button class="px-6 py-3 bg-green-500 text-white rounded-md shadow hover:bg-green-600">M'inscrire</button>#}
{# </a>#}
{# </div>#}
{# {% endif %}#}
</div>
<div class="lg:col-span-5 bg-white rounded-lg shadow p-6">