[[!ChangePassword?
&submitVar=`change-password`
&placeholderPrefix=`cp.`
&validateOldPassword=`1`
&validate=`nospam:blank`
&reloadOnSuccess=`0`
&successMessage=`Ваш пароль успешно изменён`
]]
<div class="container" style="width: auto; max-width: 1170px;">
    <div class="row" style="margin-top: 16%;margin-bottom: auto;">
        <div class="col-md-8 col-lg-6" style="margin-left: auto; margin-right: auto; float: none;">
            <div class="panel panel-primary">
                <div class="panel-heading">Смена пароля</div>
                <div class="panel-body">
                    <div class="updprof-error">[[!+cp.error_message]]</div>
                    <p>[[!+cp.successMessage]]</p>
                    <form class="form-horizontal" action="[[~[[*id]]]]" method="post">
                        <input type="hidden" name="nospam" value="">
                        <div class="form-group">
                            <label for="password_old" class="col-sm-4 control-label">Старый пароль</label>
                            <div class="col-sm-8">
                                <input type="password" name="password_old" id="password_old" value="[[+cp.password_old]]" class="form-control">
                                <span class="help-block text-error">
                                    [[!+cp.error.password_old]]
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password_new" class="col-sm-4 control-label">Новый пароль</label>
                            <div class="col-sm-8">
                                <input type="password" name="password_new" id="password_new" value="[[+cp.password_new]]" class="form-control">
                                <span class="help-block text-error">
                                    [[!+cp.error.password_new]]
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password_new_confirm" class="col-sm-4 control-label">Введите новый пароль ещё раз</label>
                            <div class="col-sm-8">
                                <input type="password" name="password_new_confirm" id="password_new_confirm" value="[[+cp.password_new_confirm]]" class="form-control">
                                <span class="help-block text-error">
                                    [[!+cp.error.password_new_confirm]]
                                </span>
                            </div>
                        </div>
                        <input type="submit" value="Изменить пароль" name="change-password" id="change-password" class="btn btn-primary pull-right" >
                        <input type="button" value="Отмена" class="btn btn-primary pull-right" onclick="location.href='/profile/';" style="margin-right: 10px;width: 139px;">
                    </form>
                    
                    
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .navbar-collapse.collapse{
        display: block!important;
        margin-top: 0px !important;
        border: none;
    }
</style>