{% extends 'base.html.twig' %} {% block localstyle %} {% endblock %} {% block body %} {{ form_start(form) }}

{% 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 %}
{% if access=="admin" %}
{{ appNiveau01label }}s Modérés
{% if is_granted('ROLE_ADMIN') %} Ajouter

{% endif %} {{ form_widget(form.linkmodos) }}
{% for modo in user.modos %} {% endfor %}
Action {{ appNiveau01label }}
{{ modo.niveau01.label }}
{% endif %}
Motivations
{{ form_row(form.motivation) }}
{% if access=="admin" or access=="modo"%}
Notes Administrateur / Modérateur
{{ form_widget(form.note) }}
{%endif%}
Visite
{{ form_row(form.visitedate) }} {{ form_row(form.visitecpt) }}
Informations
{{ 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) }} {% 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 %} {% else %} {% endif %} {% endfor %}
Action Groupe
{{ usergroup.group.label }}
{% endif %}
Organisation
{{ form_row(form.job) }} {{ form_row(form.position) }} {{ form_row(form.postaladress) }} {{ form_row(form.telephonenumber) }}
{% 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 %}
{{ form_end(form) }} {% endblock %} {% block localscript %} {% endblock %}