McDoPlus/templates/resto_admin/index.html.twig
clemcle81500 6eb297c0f1 corrections fautes
corrections fautes
2023-12-05 13:40:54 +01:00

39 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Restaurant index{% endblock %}
{% block body %}
<h1>Restaurant index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Pays</th>
<th>Ville</th>
<th>Adresse</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for resto in restos %}
<tr>
<td>{{ resto.id }}</td>
<td>{{ resto.pay }}</td>
<td>{{ resto.ville }}</td>
<td>{{ resto.address }}</td>
<td>
<a href="{{ path('app_resto_admin_show', {'id': resto.id}) }}">show</a>
<a href="{{ path('app_resto_admin_edit', {'id': resto.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_resto_admin_new') }}">Create new</a>
{% endblock %}