fixtures done

This commit is contained in:
Olivier PARPAILLON
2024-11-27 10:30:26 +01:00
parent 266a338b24
commit 6d238f8d85
11 changed files with 271 additions and 67 deletions

View File

@@ -38,11 +38,11 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.duree }}</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.dateLimiteInscription|date('d/m/Y H:i') }}</td>
<td class="flex flex-row px-6 py-4 whitespace-nowrap text-base text-gray-900">
{% if not sortie.participants.contains(app.user) and sortie.etat.libelle == 'Ouverte' %}
{% if not sortie.participants.contains(app.user) and sortie.etat.libelle == 'Ouverte' and date(sortie.dateLimiteInscription) > date() %}
<form action="{{ path('sortie_inscription', { id: sortie.idSortie }) }}" method="post">
<button type="submit">🔔</button>
</form>
{% elseif sortie.participants.contains(app.user) and sortie.etat.libelle == 'Ouverte' %}
{% elseif sortie.participants.contains(app.user) and sortie.etat.libelle == 'Ouverte' and date(sortie.dateLimiteInscription) > date() %}
<form method="post" action="{{ path('sortie_unsubscribe', { id: sortie.idSortie }) }}">
<button type="submit">🔕</button>
</form>