McDoPlus/templates/user_admin/index.html.twig
2023-11-21 22:02:38 +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>Name</th>
<th>Fullname</th>
<th>Email</th>
<th>Password</th>
<th>Address</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 %}