<?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-sm-12 col-md-6 col-md-offset-3">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <?php echo T('Восстановление пароля'); ?>
                    </h3>
                </div>
                <div class="panel-body">
                    <?php echo flash_show('forgot'); ?>
                    <form method="post" action="/handlers/forgot.php">
                        <?php echo form_init(); ?>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-envelope"></span>
                            </span>
                            <input
                                    name="email"
                                    type="text"
                                    value="<?php echo  escape(post('email')); ?>"
                                    class="form-control"
                                    placeholder="<?php echo T('Введите Ваш E-mail'); ?>"
                                    required autofocus>
                        </div>

                        <br>
                        <div id="captcha_forgot" style="width: 304px; margin: auto;"></div>
                        <br>

                        <input type="submit" value="<?php echo T('Продолжить'); ?>" class="btn btn-default btn-md" style="width: 100%;">
                    </form>

                    <div class="row">
                        <div class="col-sm-12 col-md-6">
                            <br>
                            <a href="/login/" class="btn btn-default btn-md" style="width: 100%;">
                                <?php echo T('Вход'); ?>
                            </a>
                        </div>

                        <div class="col-sm-12 col-md-6">
                            <br>
                            <a href="/signup/" class="btn btn-default btn-md" style="width: 100%;">
                                <?php echo T('Регистрация'); ?>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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