{% extends 'base.html.twig' %} {% set bodyClass = 'user_profile_user form edit' %} {% set menuItem = 'user_profile_user' %} {% set submitValue = submitValue|default('user.user.action.my_profil_submit'|trans) %} {% block title %}{{ 'user.user.title.my_profil_edit'|trans }} - {{ parent() }}{% endblock %} {% block body_head %}

{{ 'user.user.title.my_profil_edit'|trans }} {{ form.vars.value }}

{% endblock %} {% block breadcrumb %} {% set breadcrumb = [ { 'name': 'user.user.breadcrumb.my_profil_edit'|trans } ] %} {% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %} {% endblock %} {% block body %}
{{ form_start(form) }} {# LEFT #}
{# GENERAL #}

{{ 'global.tab.general'|trans }}

{{ form_start(form) }}
{{ form_row(form.firstName) }} {{ form_row(form.lastName) }} {{ form_row(form.email) }} {% if is_granted('ROLE_ADMIN') %} {{ form_row(form.collectivity) }} {{ form_row(form.roles) }}
{{ form_row(form.collectivitesReferees) }}
{% endif %} {{ form_row(form.moreInfos) }} {% if is_granted('ROLE_ADMIN') %} {{ form_row(form.enabled) }} {{ form_row(form.apiAuthorized) }} {% endif %}
{# SSO #} {% if sso_title and sso_type %}

{{ 'user.user.tab.sso'|trans }}

{% if sso_associated %}

{{ sso_title }} ({{ 'user.user.label.sso_linked'|trans }} )

{{ 'user.user.action.sso_unlink'|trans }}
{% else %} {% endif %}
{% endif %}
{# RIGHT #}
{# PASSWORD #}

{{ 'user.user.tab.optional'|trans }}

{{ 'user.security.label.help.new_password'|trans }}

{{ form_row(form.plainPassword) }}
{# SERVICES #} {# NOTIFICATIONS #} {% if app_activate_notifications %} {% include('@templates_path/User/Profile/notifications.html.twig') %} {% endif %}
{{ form_row(form._token) }}
{% endblock %}