caisse-bliss/app/Resources/views/festival/index.html.twig

42 lines
1.2 KiB
Twig
Raw Normal View History

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