{% trans_default_domain 'FOSUserBundle' %}

<div class="container fos_user_group_list"
     style="margin-top: 2.5vmin;">

    <div class="container-fluid"
         style="padding: 0px;">
        {% form_theme change_password_form _self %}
        <form id="change-password-form"
              action="{{ path('vgm_user_change_password', {'username': username}) }}"
              method="POST" {{ form_enctype(change_password_form) }} class="fos_user_group_new">
            <div class="container-fluid">
                <div class="col-lg-5">
                    <div class="col-lg-12" style="margin-top: 10px;">
                        {{ form_widget(change_password_form.plainPassword.first, { 'attr': {
                        'tabindex' : 1,
                        'class': 'input-control',
                        'placeholder': 'Password'} }) }}
                    </div>
                    <div class="col-lg-12" style="margin-top: 10px;">
                        {{ form_widget(change_password_form.plainPassword.second, { 'attr': {
                        'tabindex' : 2,
                        'class': 'input-control',
                        'placeholder': 'Confirm password'} }) }}
                    </div>
                </div>
                {{ form_rest(change_password_form) }}
            </div>
            <div class="col-lg-12 container-fluid text-right">
                <button form="change-password-form" id="new-group-modal-create-button"
                        type="submit" class="btn btn-primary">
                    {{ 'change_password.submit'|trans }}
                </button>
                <a href="{{ path('vgm_user_list') }}"
                   class="btn btn-warning">
                    Cancel
                </a>
            </div>
        </form>
    </div>
</div>