Files
2025-01-09 09:31:51 +04:00

40 lines
1.0 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Plat index{% endblock %}
{% block body %}
<h1>Plat index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Description</th>
<th>Prix</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for plat in plats %}
<tr>
<td>{{ plat.id }}</td>
<td>{{ plat.nom }}</td>
<td>{{ plat.description }}</td>
<td>{{ plat.prix }}</td>
<td>
<a href="{{ path('app_plat_show', {'id': plat.id}) }}">show</a>
<a href="{{ path('app_plat_edit', {'id': plat.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_plat_new') }}">Create new</a>
{% endblock %}