{% trans_default_domain 'FOSUserBundle' %}

{{ form_start(form, { 'action': path('fos_user_profile_edit'), 'attr': { 'class': 'fos_user_profile_edit' } }) }}
    {#{{ form_widget(form) }}#}
{#
<div class="position-relative row form-group">
    {{ form_label(form.nom, "Nom", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.nom) }}
    <div class="col-sm-10">
        {{ form_widget(form.nom, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
<div class="position-relative row form-group">
    {{ form_label(form.prenom, "Prenoms", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.prenom) }}
    <div class="col-sm-10">
        {{ form_widget(form.prenom, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
<div class="position-relative row form-group">
    {{ form_label(form.telephone, "Téléphone", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.telephone) }}
    <div class="col-sm-10">
        {{ form_widget(form.telephone, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
#}
<div class="position-relative row form-group">
    {{ form_label(form.email, "Adresse mail", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.email) }}
    <div class="col-sm-10">
        {{ form_widget(form.email, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
<div class="position-relative row form-group">
    {{ form_label(form.username, "Nom d'utilisateur", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.username) }}
    <div class="col-sm-10">
        {{ form_widget(form.username, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
<div class="position-relative row form-group">
    {{ form_label(form.current_password, "Mot de passe", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.current_password) }}
    <div class="col-sm-10">
        {{ form_widget(form.current_password, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
{#<div class="position-relative row form-group">#}
        {#{{ form_label(form.roles, "Roles", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}#}
        {#{{ form_errors(form.roles) }}#}
        {#<div class="col-sm-10">#}
            {#{{ form_widget(form.roles, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}#}
        {#</div>#}
    {#</div>#}
<div class="position-relative row form-group">
    {{ form_label(form.adresse, "Adresse", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
    {{ form_errors(form.adresse) }}
    <div class="col-sm-10">
        {{ form_widget(form.adresse, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
    </div>
</div>
<div>
    <input class="btn btn-primary" type="submit" value="{{ 'profile.edit.submit'|trans }}"/>
</div>
{{ form_end(form) }}
