{include file="mobile/templates/index_top.tpl"}
<br>
<br>
{if $restore_ok}
    <div class="content-block-title">{$lang.pass_request_mailed}</div>
{/if}
{if !$restore_ok && $error}
    <div class="content-block-title">{$error}</div>
{/if}
{if !$restore_complete && !$restore_ok && !$error}
    <form name="form_login_restore" action="login.php?restore_pass" method="post">
        <div class="content-block-title restore-pass--title">{$lang.Password_recovery}</div>
        <div class="list-block">
            <ul>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-input">
                                <input type="text" name="login_email" value="{$login_email}" placeholder="{$lang.Login}/{$lang.e_mail}">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <input type="hidden" name="csrf" value="{$csrf}">
        <div class="content-block">
        </div>
        <div class="content-block">
            <input type="submit" class="button button-big button-submit" value="{$lang.Restore}">
        </div>
    </form>
{/if}

{if $restore_complete}
    <form name="form_restore" action="{$config.site_root}/login.php" method="post">
        <div class="content-block-title">{$lang.Password_recovery}</div>
        <div class="list-block">
            <ul>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-input">
                                <input type="text" name="cur_login" value="{$login}" placeholder="{$login}">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-input">
                                <input type="text" name="cur_pass" value="{$new_pass}" placeholder="{$new_pass}">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
            <input type=checkbox name='save_enter'></td>
            <td>{$lang.save_login_params}</td>
            </tr></table><br><br>
        </div>

        <input type="hidden" name="csrf" value="{$csrf}">
        <div class="content-block">
        </div>
        <div class="content-block">
            <input type="submit" class="button button-big button-submit" value="{$lang.Enter}">
        </div>
        <input type="hidden" name="csrf" value="{$csrf}"/>
        <input type="hidden" name="login" value="{$login}"/>
        <input type="hidden" name="password" value="{$new_pass}"/>
    </form>
{/if}

