{% extends 'base.html.twig' %} {% block title %}Liste des utilisateurs{% endblock %} {% block body %}
Liste des utilisateurs
{% for user in usersActifs %} {% set role = constant('App\\Constants\\Role::' ~ user.roles|first) %} {% endfor %}
Nom Mail Statut Rôle Date d'inscription Action
{% if user.photo %} {% endif %} {{ user.firstname ~ ' ' ~ user.lastname }} {{ user.email }} {% if user.status %} {% set status = constant('App\\Constants\\StatusUser::' ~ user.status) %} {% endif %}{{ role.label}} {{ user.dateInscription|date('d/m/y') }} {% if user.status == constant('App\\Constants\\StatusUser::ACTIF')['code'] or user.status == constant('App\\Constants\\StatusUser::NON_ACTIF')['code'] %} {% endif %} {% if user.status == constant('App\\Constants\\StatusUser::EN_COURS')['code'] %} {% endif %}
Liste des anciens
{% for user in usersInactifs %} {% endfor %}
Nom Date d'inscription
{% if user.photo %} {% endif %} {{ user.firstname ~ ' ' ~ user.lastname }} {{ user.dateInscription|date('d/m/y') }}
{% endblock %} {% block modals %} {% endblock %} {% block javascripts %} {% endblock %}