2024-11-21 14:28:29 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Reservations index{% endblock %}
|
2024-11-21 17:48:16 +01:00
|
|
|
{% block stylesheets %}
|
|
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
2024-11-21 14:28:29 +01:00
|
|
|
|
2024-11-21 17:48:16 +01:00
|
|
|
{% endblock %}
|
2024-11-21 14:28:29 +01:00
|
|
|
{% 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_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 %}
|