invitation event
This commit is contained in:
@@ -65,18 +65,25 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if app.user and sortie.etat.libelle == 'Ouverte' and not sortie.participants.contains(app.user) %}
|
||||
<form action="{{ path('sortie_inscription', { id: sortie.idSortie }) }}" method="post" class="mt-6">
|
||||
<button type="submit" class="px-6 py-3 bg-green-500 text-white rounded-md shadow hover:bg-green-600">
|
||||
✅ S'inscrire
|
||||
</button>
|
||||
</form>
|
||||
{% 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>
|
||||
</div>
|
||||
{% if app.user and app.user.idParticipant != sortie.organisateur.idParticipant %}
|
||||
{% if sortie.participants.contains(app.user) %}
|
||||
<!-- Bouton pour se désinscrire -->
|
||||
<form action="{{ path('sortie_desinscription', { 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ésinscrire
|
||||
</button>
|
||||
</form>
|
||||
{% elseif sortie.etat.libelle == 'Ouverte' %}
|
||||
<!-- Bouton pour s'inscrire -->
|
||||
<form action="{{ path('sortie_inscription', { id: sortie.idSortie }) }}" method="post" class="mt-6">
|
||||
<button type="submit" class="px-6 py-3 bg-green-500 text-white rounded-md shadow hover:bg-green-600">
|
||||
✅ S'inscrire
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if app.user and app.user.idParticipant == sortie.organisateur.idParticipant %}
|
||||
<div class="mt-6 flex justify-end">
|
||||
<a href="{{ path('sortie_edit', { id: sortie.idSortie }) }}"
|
||||
|
||||
Reference in New Issue
Block a user