{% trans_default_domain 'FOSUserBundle' %}

<div class="container fos_user_change_password"
     style="margin-top: 2.5vmin;">
    <div class="container-fluid"
         style="padding: 0px;">
        {% form_theme form _self %}
        <form id="fos-user-change-password"
              action="{{ path('fos_user_change_password') }}" {{ form_enctype(form) }}
              method="POST" class="fos_user_change_password">
            <div class="container-fluid">
                <div class="col-lg-5">
                    <div class="col-lg-12" style="margin-top: 10px;">
                        {{ form_widget(form.current_password, { 'attr': {
                        'tabindex' : 1,
                        'class': 'input-control',
                        'placeholder': 'Current password'} }) }}
                    </div>
                    <div class="col-lg-12" style="margin-top: 10px;">
                        {{ form_widget(form.plainPassword.first, { 'attr': {
                        'tabindex' : 2,
                        'class': 'input-control',
                        'placeholder': 'New password'} }) }}
                    </div>
                    <div class="col-lg-12" style="margin-top: 10px;">
                        {{ form_widget(form.plainPassword.second, { 'attr': {
                        'tabindex' : 3,
                        'class': 'input-control',
                        'placeholder': 'Confirm new password'} }) }}
                    </div>
                </div>
                {{ form_rest(form) }}
            </div>
            <div class="col-lg-12 container-fluid text-right">
                <button form="fos-user-change-password" id="fos-user-change-password-button"
                        type="submit" class="btn btn-primary">
                    {{ 'change_password.submit'|trans }}
                </button>
                <a href="{{ path('homepage') }}"
                   class="btn btn-warning">
                    Cancel
                </a>
            </div>
        </form>
    </div>
</div>


{#<form action="{{ path('fos_user_change_password') }}" {{ form_enctype(form) }} method="POST" class="fos_user_change_password">
    {{ form_widget(form) }}
    <div>
        <input type="submit" value="{{ 'change_password.submit'|trans }}" />
    </div>
</form>#}
