<?php require_once(THEME_ROOT . '/blocks/head.php'); ?>
<?php require_once(THEME_ROOT . '/blocks/top.php'); ?>

    <br><br>
    <div class="container">
        <div class="row">
            <div class=" col-md-offset-2 col-md-8">

                <div class="main" style="text-align:center;">
                    <h3><?php echo T('Настройки'); ?></h3>
                </div>
                <ul class="nav nav-tabs" style="margin-bottom:10px;" >
                    <li>
                        <a href="/user/settings"><?php echo T('Личные данные');?>
                        </a>
                    </li>
                    <li class="active">
                        <a href="/user/save_password">
                            <?php echo T('Сменить пароль');?>
                        </a>
                    </li>
                    <li>
                        <a href="/user/wallets">
                            <?php echo T('Реквизиты');?>
                        </a>
                    </li>
                </ul>

                <div class="panel panel-default">
                    <div class="panel-body">
                        <?php echo flash_show('save_password'); ?>
                        <form action="/handlers/user/save_password.php" method="post">
                            <?php echo form_init(); ?>
                            <div class="input-group">
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-lock"></span>
                                </span>
                                <input
                                        name="last_password" type="password"
                                        class="form-control"
                                        placeholder="<?php echo T('Старый пароль'); ?>"
                                        required autofocus>
                            </div>

                            <br>
                            <div class="input-group">
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-lock"></span>
                                </span>
                                <input
                                        name="password" type="password"
                                        class="form-control"
                                        placeholder="<?php echo T('Новый пароль'); ?>"
                                        required>
                            </div>

                            <br>
                            <div class="input-group">
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-lock"></span>
                                </span>
                                <input
                                        name="password2" type="password"
                                        class="form-control"
                                        placeholder="<?php echo T('Повторите пароль'); ?>"
                                        required>
                            </div>

                            <br>
                            <input type="submit" value="<?php echo T('Сохранить изменения'); ?>" class="btn btn-default btn-md" style="width: 100%;">
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php require_once(THEME_ROOT."/blocks/footer.php"); ?>
