FestinHegre/templates/reservations/index.html.twig

38 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Reservations index{% endblock %}
{% block body %}
<h1>Reservations index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>DateHeure</th>
<th>Nb_de_prsn</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for reservation in reservations %}
<tr>
<td>{{ reservation.id }}</td>
<td>{{ reservation.DateHeure ? reservation.DateHeure|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ reservation.NbDePrsn }}</td>
<td>
<a href="{{ path('app_reservations_show', {'id': reservation.id}) }}">show</a>
<a href="{{ path('app_reservations_edit', {'id': reservation.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_reservations_new') }}">Create new</a>
{% endblock %}