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

40 lines
1.2 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>
<th>actions</th>
</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-09 16:10:35 +01:00
<td>{{ 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-09 16:10:35 +01:00
<td>
2025-02-09 16:39:38 +01:00
<a href="{{ path('app_festival_show', {'id': festival.id}) }}">show</a>
<a href="{{ path('app_festival_edit', {'id': festival.id}) }}">edit</a>
2025-02-09 16:10:35 +01:00
</td>
</tr>
2025-02-09 16:39:38 +01:00
{% else %}
<tr>
<td colspan="5">no records found</td>
</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 %}