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

47 lines
1.4 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}User index{% endblock %}
{% block body %}
<h1>User index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Mot de passe</th>
<th>Adresse</th>
<th>Grade</th>
<th>Id_resto</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.id }}</td>
<td>{{ user.name }}</td>
<td>{{ user.fullname }}</td>
<td>{{ user.email }}</td>
<td>{{ user.password }}</td>
<td>{{ user.address }}</td>
<td>{{ user.grade }}</td>
<td>{{ user.idResto }}</td>
<td>
<a href="{{ path('app_user_admin_show', {'id': user.id}) }}">show</a>
<a href="{{ path('app_user_admin_edit', {'id': user.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="9">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_user_admin_new') }}">Create new</a>
{% endblock %}