{% extends 'base.html.twig' %} {% block title %}Liste des utilisateurs{% endblock %} {% block body %}
{% include 'utils/file.ariane.html.twig' %}

Les utilisateurs


{% if secure.havePermission(constant('_ADD_SERV_GEST_USER', app_const)) or secure.havePermission(constant('_ADD_SERV_GEST_HABI', app_const)) %}
{% if secure.havePermission(constant('_ADD_SERV_GEST_USER', app_const)) %} Nouveau {% endif %} {% if secure.havePermission(constant('_ADD_SERV_GEST_HABI', app_const)) %} {% endif %}

{% endif %}
{{ form_start(form) }}
{{ form_label(form.searchValue) }} {{ form_widget(form.searchValue) }}
{{ form_end(form) }}


{% if result.elements|length <= 0 %}
Aucun utilisateur trouvé
{% else %}
Identifiant
Email
Nom
Vérifié
{% for obj in result.elements %}
{{ obj.username }}
{{ obj.email }}
{{ obj.personne.prenom }} {{ obj.personne.nom }}
{% if obj.isVerified %} {% else %} {% endif %}
{% if secure.havePermission(constant('_UPDATE_SERV_GEST_USER', app_const)) %} {% endif %} {% if secure.havePermission(constant('_REMOVE_SERV_GEST_USER', app_const)) and secure.currentUser().username != obj.username %} {% endif %}
{% endfor %} {% endif %}
{% include 'utils/pagination.html.twig' with {'url': '/user'} %}
{% endblock %}