45 lines
1.4 KiB
Twig
45 lines
1.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}User index{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<h1 class="card-title">Liste des Utilisateurs</h1>
|
|
</div>
|
|
|
|
<div class="card-body table-responsive">
|
|
<table class="table align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Prenom</th>
|
|
<th>Email</th>
|
|
<th>Roles</th>
|
|
<th style="text-align: center;">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in users %}
|
|
<tr>
|
|
<td>{{ user.nom }}</td>
|
|
<td>{{ user.prenom }}</td>
|
|
<td>{{ user.email }}</td>
|
|
<td>{{ user.nomRole }}</td>
|
|
<td style="text-align: center;"><a class="btn btn-primary" href="{{ path('app_user_show', {'id': user.id}) }}">Voir</a></td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="7">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="card-footer d-flex justify-content-center">
|
|
<a class="btn btn-primary" href="{{ path('app_user_new') }}">Créer un Utilisateur</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|