{% if access=="admin" or access=="modo" or access=="manager" %}
{% if mode=="update" %}
Modification Utilisateur = {{ user.username}}
{% else %}
Création Utilisateur
{% endif %}
{% else %}
Profil
{% endif %}
{{ form_widget(form.submit) }}
{% if access=="admin" or access=="modo" %}
Annuler
{% if mode=="update" %}
{% if access=="admin" %}
Supprimer
{% else %}
{% if not user.hasrole("ROLE_ADMIN") and not user.hasrole("ROLE_MODO") %}
Supprimer
{% endif %}
{% endif %}
{% endif %}
{% else %}
Annuler
{% endif %}
{% if app.session.flashbag.has('error') %}
Erreur
{% for flashMessage in app.session.flashbag.get('error') %}
{{ flashMessage | raw }}
{% endfor %}
{% endif %}
{% if app.session.flashbag.has('notice') %}
Information
{% for flashMessage in app.session.flashbag.get('notice') %}
{{ flashMessage | raw }}
{% endfor %}
{% endif %}
{% set avatar= "noavatar.png" %}
{% if user.avatar %}
{% set avatar= user.avatar %}
{% endif %}
{{ form_widget(form.avatar) }}
Modifier
{% if form.isactive is defined %}
{{ form_row(form.isactive) }}
{% endif %}
Connexion
{{ form_row(form.username) }}
Formatez votre login sous la forme prenom.nom dans la mesure du possible
Taille minimum = 5 caractères
Caractères interdits = accent, espace, caractères spéciaux sauf @ . - _
{% if form.password is defined %}
{{ form_row(form.password) }}
{{ form_row(form.passwordplain) }}
Le mot de passe doit comporter au moins 8 caractères, avec obligatoirement des lettres, chiffres et caractères spéciaux.
{% endif %}
{% if form.roles is defined %}
{{ form_row(form.roles) }}
{% endif %}
{{ form_row(form.niveau01) }}
{%if form.niveau02 is defined %}{{ form_row(form.niveau02) }}{%endif%}
{%if form.niveau03 is defined %}{{ form_row(form.niveau03) }}{%endif%}
{%if form.niveau04 is defined %}{{ form_row(form.niveau04) }}{%endif%}
{{ form_row(form.firstname) }}
{{ form_row(form.lastname) }}
{{ form_row(form.email) }}
{%if form.isvisible is defined %}{{ form_row(form.isvisible) }}{%endif%}
{% if appGroupuse %}
Groupes
Inscription à un Groupe
{{ form_widget(form.linkgroups) }}
Action
Groupe
{% for usergroup in user.groups %}
{% set canleave = true %}
{% if usergroup.group.id<0 or usergroup.group.owner==user %}
{% set canleave = false %}
{% elseif access!="admin" and access!="modo"%}
{% if not usergroup.group.isworkgroup and not usergroup.group.isopen %}
{% set canleave = false %}
{% endif %}
{% endif %}
{% if canleave %}
{% if auditUse and mode=="update" and (access=="admin" or access=="modo" or access=="audit") %}
{{ render(path("app_"~access~"_audit_renderid",{entityname:"User",entityid:user.id})) }}
{% endif %}
AJOUTER UN GROUPE
Action
Groupe
{% set listidgroup = [] %}
{% for usergroup in user.groups %}
{% set listidgroup = listidgroup|merge([usergroup.group.id]) %}
{% endfor %}
{% for group in listgroups %}
{% if group.id in listidgroup %}
{% set style = "display:none;" %}
{% else %}
{% set style = "" %}
{% endif %}
{{ group.label }}
{% endfor %}
AJOUTER UN {{ appNiveau01label|upper }}
Action
{{ appNiveau01label }}
{% set listidmodo = [] %}
{% for usermodo in user.modos %}
{% set listidmodo = listidmodo|merge([usermodo.niveau01.id]) %}
{% endfor %}
{% for niveau01 in listmodos %}
{% if niveau01.id in listidmodo %}
{% set style = "display:none;" %}
{% else %}
{% set style = "" %}
{% endif %}