fixtures done
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -107,6 +107,13 @@
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if sortie.motifAnnul is not empty %}
|
||||
<div class="mt-6 flex flex-col space-x-4">
|
||||
<h4 class="text-base font-bold uppercase text-red-700 mb-2">🚫 Raison de l'annulation :</h4>
|
||||
<p class="text-base text-gray-800">{{ sortie.motifAnnul }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="lg:col-span-5 bg-white rounded-lg shadow p-6">
|
||||
|
||||
Reference in New Issue
Block a user