{% extends 'base.html.twig' %} {% block title %}TalentsManager - Profile{% endblock %} {% block body %}
{{ form_start(modify_profile_form) }} {% if is_granted('ROLE_ADMIN') %}
{{ form_row(modify_profile_form.status) }}
{% else %}
{{ form_row(modify_profile_form.status, { 'attr':{'disabled':'disabled'} }) }}
{% endif %}
{{ form_row(modify_profile_form.disponibility) }}
{% if is_granted('ROLE_COMMERCIAL') %}
{{ form_row(modify_profile_form.firstname, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.lastname, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.profession, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.adress, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.postal, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.town, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.phone, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.email, { 'attr':{'disabled':'disabled'} }) }}
{{ form_row(modify_profile_form.Ajouter) }}
{% else %}
{{ form_row(modify_profile_form.firstname) }}
{{ form_row(modify_profile_form.lastname) }}
{{ form_row(modify_profile_form.profession) }}
{{ form_row(modify_profile_form.adress) }}
{{ form_row(modify_profile_form.postal) }}
{{ form_row(modify_profile_form.town) }}
{{ form_row(modify_profile_form.phone) }}
{{ form_row(modify_profile_form.email) }}
{{ form_row(modify_profile_form.Ajouter) }}
{% endif %} {{ form_end(modify_profile_form)}}
{% endblock %}