caisse-bliss/templates/festival/index.html.twig

61 lines
2.1 KiB
Twig
Raw Normal View History

2025-02-09 16:10:35 +01:00
{% extends 'base.html.twig' %}
2025-02-09 16:39:38 +01:00
{% block title %}Festival index{% endblock %}
2025-02-09 16:10:35 +01:00
2025-02-09 16:39:38 +01:00
{% block body %}
<h1>Festival index</h1>
2025-02-09 16:10:35 +01:00
2025-02-09 16:39:38 +01:00
<table class="table">
2025-02-09 16:10:35 +01:00
<thead>
2025-02-09 16:39:38 +01:00
<tr>
<th>Id</th>
<th>Name</th>
<th>Date_start</th>
<th>Date_end</th>
2025-02-14 14:25:23 +01:00
<th>FraisInscription</th>
<th>FondDeCaisseAvant</th>
<th>FondDeCaisseApres</th>
<th>DateCreation</th>
2025-02-09 16:39:38 +01:00
<th>actions</th>
<th>Sellings</th>
<th>Set as active</th>
2025-02-09 16:39:38 +01:00
</tr>
2025-02-09 16:10:35 +01:00
</thead>
<tbody>
{% for festival in festivals %}
2025-02-09 16:39:38 +01:00
<tr>
<td>{{ festival.id }}</td>
2025-02-17 23:09:08 +01:00
<td
{% if app.user.activeFestival and app.user.activeFestival.id == festival.id %}
class="text-bg-success p-3"
{% endif %}>
{{ festival.name }}
</td>
2025-02-09 16:39:38 +01:00
<td>{{ festival.dateStart ? festival.dateStart|date('Y-m-d') : '' }}</td>
<td>{{ festival.dateEnd ? festival.dateEnd|date('Y-m-d') : '' }}</td>
2025-02-14 14:25:23 +01:00
<td>{{ festival.fraisInscription }}</td>
<td>{{ festival.fondDeCaisseAvant }}</td>
<td>{{ festival.fondDeCaisseApres }}</td>
<td>{{ festival.dateCreation ? festival.dateCreation|date('Y-m-d') : '' }}</td>
2025-02-09 16:10:35 +01:00
<td>
<a href="{{ path('app_festival_show', {'id': festival.id}) }}">voir</a>
<a href="{{ path('app_festival_edit', {'id': festival.id}) }}">modifier</a>
</td>
<td>{{ festival.sellings|length }}</td>
<td>
<a href="{{ path('app_set_active_festival', {'id': festival.id}) }}">activer</a>
2025-02-09 16:10:35 +01:00
</td>
</tr>
2025-02-09 16:39:38 +01:00
{% else %}
<tr>
2025-02-14 14:25:23 +01:00
<td colspan="9">no records found</td>
2025-02-09 16:39:38 +01:00
</tr>
2025-02-09 16:10:35 +01:00
{% endfor %}
</tbody>
</table>
2025-02-09 16:39:38 +01:00
<a href="{{ path('app_festival_new') }}">Create new</a>
2025-02-09 16:10:35 +01:00
{% endblock %}