61 lines
2.2 KiB
Twig
61 lines
2.2 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Festival index{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>Index des Festivals</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Name</th>
|
|
<th>Date_start</th>
|
|
<th>Date_end</th>
|
|
<th>FraisInscription</th>
|
|
<th>FondDeCaisseAvant</th>
|
|
<th>FondDeCaisseApres</th>
|
|
<th>DateCreation</th>
|
|
<th>actions</th>
|
|
<th>Sellings</th>
|
|
<th>Set as active</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for festival in festivals %}
|
|
<tr>
|
|
<td>{{ festival.id }}</td>
|
|
<td
|
|
{% if app.user.activeFestival and app.user.activeFestival.id == festival.id %}
|
|
class="text-bg-success p-3"
|
|
{% endif %}>
|
|
{{ festival.name }}
|
|
</td>
|
|
<td>{{ festival.dateStart ? festival.dateStart|date('Y-m-d') : '' }}</td>
|
|
<td>{{ festival.dateEnd ? festival.dateEnd|date('Y-m-d') : '' }}</td>
|
|
<td>{{ festival.fraisInscription }}</td>
|
|
<td>{{ festival.fondDeCaisseAvant }}</td>
|
|
<td>{{ festival.fondDeCaisseApres }}</td>
|
|
<td>{{ festival.dateCreation ? festival.dateCreation|date('Y-m-d') : '' }}</td>
|
|
<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>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="9">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_festival_new') }}"class="btn btn-primary btn-create" >Créer</a>
|
|
{% endblock %}
|