2018-04-05 17:24:43 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1>Festivals list</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
2018-04-17 14:30:15 +02:00
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Datecreation</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
2018-04-05 17:24:43 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for festival in festivals %}
|
|
|
|
<tr>
|
2018-04-17 14:30:15 +02:00
|
|
|
<td>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="{{ path('festival_show', { 'id': festival.id }) }}">{{ festival.id }}</a>
|
|
|
|
</td>
|
2018-04-05 17:24:43 +02:00
|
|
|
<td>{{ festival.name }}</td>
|
|
|
|
<td>{% if festival.dateCreation %}{{ festival.dateCreation|date('Y-m-d H:i:s') }}{% endif %}</td>
|
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-04-17 14:30:15 +02:00
|
|
|
<a class="btn btn-primary" href="{{ path('festival_show', { 'id': festival.id }) }}">voir
|
|
|
|
</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-04-17 14:30:15 +02:00
|
|
|
<a class="btn btn-primary" href="{{ path('festival_edit', { 'id': festival.id }) }}">
|
|
|
|
<i class="fa fa-pencil"></i>
|
|
|
|
</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-04-17 14:30:15 +02:00
|
|
|
<a class="btn btn-primary" href="{{ path('festival_new') }}">Create a new festival</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|