{% trans_default_domain 'FOSUserBundle' %}

{{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password' } }) }}
     <div class="position-relative row form-group">
        {{ form_label(form.current_password, "Mot de passe actuel", {'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.plainPassword.first, "Nouveau mot de passe", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
        {{ form_errors(form.plainPassword.first) }}
        <div class="col-sm-10">
            {{ form_widget(form.plainPassword.first, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
        </div>
    </div>
    <div class="position-relative row form-group">
        {{ form_label(form.plainPassword.second, "Répéter le mot de passe", {'label_attr': {'class': 'col-sm-2 col-form-label'}}) }}
        {{ form_errors(form.plainPassword.second) }}
        <div class="col-sm-10">
            {{ form_widget(form.plainPassword.second, {'attr': {'class': 'form-control','autocomplete':'off'}}) }}
        </div>
    <div  class="position-relative row form-group">
        <div class="col-sm-9 offset-sm-1 mt-2">
                    <input class="btn btn-primary" type="submit" value="{{ 'change_password.submit'|trans }}" />
        </div>
    </div>
{{ form_end(form) }}
