{% extends "@Admin/base.html.twig" %}
{% set current_title = "Utilisateurs" %}
{% if tableCols is not defined %}
{% set tableCols = {
id: { },
isActive: { include: '@User/components/_is_active.html.twig' },
email: { label: 'E-mail' },
nom: { },
prenom: { },
createdAt: { },
dateLastConnected: { },
roles: { include: '@User/components/_roles.html.twig' }
} %}
{% endif %}
{% if tableActions is not defined %}
{% set tableActions = {
show: { },
edit: { role: 'ROLE_SUPER_ADMIN' },
deleteU: { path: 'admin_user_delete', role: 'ROLE_SUPER_ADMIN', icon: 'fa-trash', color:'danger', title: 'Supprimer' },
takeplace: { path: '?_switch_user=', role: 'ROLE_SUPER_ADMIN', icon: 'fa-id-badge', color: 'dark', title: 'Aperçu en tant que ' }
} %}
{% endif %}
{% block body %}
{% include '@Admin/components/_card.html.twig' with {
cardTitle: 'Liste des utilisateurs',
cardContent: include('@Admin/data-table/_data-table.html.twig'),
cardBtn: { type: 'new', title: '+ Nouvel utilisateur', role: 'ROLE_SUPER_ADMIN' }
} %}
{% endblock %}
{% block javascripts %}
{% endblock %}