{% extends 'manager/manager_base.html.twig' %} {% block title %}Liste des Utilisateurs{% endblock %} {% block content %}
| Nom & Prénoms | Profil | Structure | Rôles | Créé le | Statut | Actions | |
|---|---|---|---|---|---|---|---|
| {{ user.civilite == 1 ? 'M.' : (user.civilite == 2 ? 'Mme.' : 'Mlle.') }} {{ user.nom }} {{ user.prenoms }} | {# Email #}{{ user.email }} | {# Profil #}{% if user.profil %} {{ user.profil.nom }} {% else %} Non défini {% endif %} | {# Structure (Hierarchique) #}{% if user.hierarchique %} {# J'utilise user.hierarchique car la relation est nommée $hierarchique dans votre entité User #} {{ user.hierarchique.nom }} {% else %} Non défini {% endif %} | {# Rôles #}{% for role in user.roles|filter(role => role != 'ROLE_USER') %} {{ role|replace({'ROLE_': ''}) }} {% else %} USER {% endfor %} | {# Date de Création #}{{ user.createdAt ? user.createdAt|date('d/m/Y') : 'N/A' }} | {# Statut #}{% if user.statut %} Actif {% else %} Inactif {% endif %} | {# Actions (Menu déroulant unifié) #}
|