{% import "forms-macro/popup.html.twig" as macro %}
Utilisateurs
{% if not is_granted('ROLE_LECTURE_SEULE') %} {% endif %} {% for userAgency in company.getAllUsersByAgency() %} {% if userAgency is not empty %} {% for user in userAgency %} {% if not is_granted('ROLE_LECTURE_SEULE') %} {% endif %} {% endfor %} {% endif %} {% endfor %}
Magasin Nom Prénom Créer le Dernière connexion DroitsAction
{{ user.agency.name }} {{ user.lastName }} {{ user.firstName }} {{ user.createdAt|date('d/m/Y') }} {{ user.lastLogConnection.createdAt|date('d/m/Y') !== '01/01/2000' ? user.lastLogConnection.createdAt|date('d/m/Y') : null }} {{ user.getRolesAsString() }} {% if is_granted("ROLE_ADMIN") %} {% if user.id != app.user.id and (params['product'] != false or is_granted("ROLE_ADMIN")) %} accéder en tant que {% else %} accéder en tant que {% endif %} Renvoyer accès {% else %} Modifier {% endif %}
{% if is_granted("ROLE_ADMIN") %} {{ macro.popup("danger","form_new_password", path('user_send_email_with_new_password', {'id': "XX"}), "newPassword" ,"Vous êtes sur le point d'envoyer un nouveau mot de passe.") }} {% endif %}