inscription done

This commit is contained in:
Olivier PARPAILLON
2024-11-25 15:32:00 +01:00
parent f852b0682a
commit 8747a59ba2
2 changed files with 4 additions and 1 deletions

View File

@@ -65,7 +65,7 @@
{% endif %}
</div>
{% if app.user and sortie.etat.libelle == 'Ouverte' and not sortie.participants.contains(app.user) %}
{% if app.user and sortie.etat.libelle == 'Ouverte' and not sortie.participants.contains(app.user) and date(sortie.dateLimiteInscription) > date() %}
<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