{% extends '@InstallBois/index.html.twig' %} {% import "forms-macro/popup.html.twig" as macro %} {% block title %} INSTALL BOIS {% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block page_content_start %} {{ parent() }}

Paramètres | {% if is_granted('ROLE_ADMIN') %} Gérer les administrateurs {% else %} Utilisateurs {% endif %}

{% endblock %} {% block page_content %}

Utillisateurs enregistrés dans le système ( {{ users|filter(u => u.roles[0] != "ROLE_LECTURE_SEULE")|length }} )

{% if is_granted('ROLE_REFERENT_TECHNICIEN') %} - Abonnement en cours : {{ users|filter(u => u.roles[0] != "ROLE_LECTURE_SEULE")|length }} / {{ maxUserToCreate }} {% endif %}
{% if not is_granted('ROLE_REFERENT_FABRICANT') %} {% endif %} {% for user in users %} {% set bgcolor = app.user.id == user.id ? 'background-color : aliceblue;' : "" %} {% set iconUpdateEnable = 'false' %} {% if user.roles[0] == "ROLE_ADMIN" %} {% set cellClassBG = "tab_celluleGRadeAdmin" %} {% elseif user.roles[0] == "ROLE_REFERENT_FABRICANT" or user.roles[0] == "ROLE_REFERENT_TECHNICIEN" %} {% set cellClassBG = "tab_celluleGRade3" %} {% elseif user.roles[0] == "ROLE_TECHNICIEN" or user.roles[0] == "ROLE_FABRICANT" %} {% set cellClassBG = "tab_celluleGRade2" %} {% elseif user.roles[0] == "ROLE_LECTURE_SEULE" %} {% set cellClassBG = "tab_celluleGRade1" %} {% endif %} {% if not is_granted('ROLE_REFERENT_FABRICANT') %} {% endif %} {% endfor %}
Actions Magasin Nom Prénom Dernière connexion Créer le Dernière modification DroitsDossiers total Dossiers annuels
{% if (canDeleteAnRefTech and user.roles[0] == "ROLE_REFERENT_TECHNICIEN") or user.roles[0] != "ROLE_REFERENT_TECHNICIEN" %} Supprimer {% endif %} {% if is_granted("ROLE_ADMIN") %} {% if user.id != app.user.id %} accéder en tant que {% else %} accéder en tant que {% endif %} {% endif %} {{ user.agency.name }} {% if is_granted('ROLE_DEMO') %} Utilisateur {% else %} {{ user.lastName }} {% endif %} {% if is_granted('ROLE_DEMO') %} {{ loop.index }} {% else %} {{ user.firstName }} {% endif %} {{ user.lastLogConnection !== null ? user.lastLogConnection.createdAt|date('d/m/Y') : null }} {{ user.createdAt|date('d/m/Y') }}{{ user.updatedAt|date('d/m/Y') }}{{ user.getRolesAsString() }}{{ nbProjectByUser[user.id]['total'] }} {{ nbProjectByUser[user.id]['annual'] }}
{{ include('user/_modal/remove_user.twig') }}
{% if is_granted('ROLE_DEMO') %} {{ include('tooltip/tooltip.html.twig') }} {% endif %} {% endblock %}