{% import 'shared/componnents/_macros/_alerts.html.twig' as alerts %} {% extends 'base.html.twig' %} {% block title %} Modifier utilisateur {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block content %} {% include 'shared/layout/_content-header.html.twig' with { 'item_lien': { 0: { 'label': user.civility ~ '. ' ~ user.firstName ~ ' ' ~ user.lastName, 'path': path('app_user_index') } } } %} {% if routing is null and not is_granted('ROLE_ADMIN', user) %} {{ alerts.alert( 'please_create_routing'|trans, 'danger', 'fa fa-fw fa-warning', 'Warning !') }} {% else %} {% if form.roles.vars.errors is not empty %} {{ alerts.notification(form_errors(form.roles), 'info') }} {% endif %} {% include 'user/_form.html.twig' with { 'path': path('app_user_edit', {'id': user.id}), 'path_list': path('app_user_index'), 'label_btn': 'Modifier', 'class_alert': 'info' } %} {% endif %} {% endblock %}