12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- {% extends 'bulma.html.twig' %}
- {% block title %}Administration > Utilisateurs{% endblock %}
- {% block content %}
- <div class="block">
- <div class="is-grouped">
- <a class="button is-primary" href="{{ path('app_admin_user_add') }}">Ajouter un utilisateur</a>
- <a class="button" href="{{ path('app_admin') }}">Retour</a>
- </div>
- </div>
- <div class="block">
- <table id="datatable" {{ stimulus_controller('datatables') }} class="table is-striped is-hoverable is-fullwidth">
- <thead>
- <tr>
- <th>Identité</th>
- <th>Email</th>
- <th>Rôles</th>
- <th>Dernière connexion</th>
- <th>Dernière mise à jour</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- {% for user in users %}
- <tr>
- <td><a href="{{ path('app_admin_user_edit', {id: user.id}) }}">{{ user.firstname }} {{ user.lastname }}</a></td>
- <td><span class="icon-text">{{ user.email }}{% if user.isVerified %}<span class="icon"><twig:ux:icon name="bi:check2-circle" /></span>{% else %}<a href="{{ path('app_resend_verification_email', {id: user.id}) }}" title="Renvoyer l'email de confirmation"><span class="icon"><twig:ux:icon name="bi:arrow-clockwise" /></span></a>{% endif %}</span></td>
- <td>{{ component('Role', {roles: user.roles}) }}</td>
- <td>{{ user.lastLogin ? user.lastLogin|date('d/m/Y H:i:s', app_timezone) : 'Jamais' }}</td>
- <td>{{ user.lastUpdate ? user.lastUpdate|date('d/m/Y H:i:s', app_timezone) : 'Jamais' }}</td>
- <td>
- <a class="button" href="{{ path('app_admin_user_edit', {id: user.id}) }}">Éditer</a>
- <a class="button is-danger" href="{{ path('app_admin_user_delete', {id: user.id}) }}">Supprimer</a>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- {% endblock %}
|