<link rel="stylesheet" href="../../static/css/recovery.css"/>
{% extends "base.html" %} {% block content %}
<div class="recovery_page">
    <div class="recovery">
        {% if recovery == 1 %}
        <h1 class="header_title">Восстановление пароля</h1>
        <form action="" method="post" class="recovery_form">
            {{ form.hidden_tag() }}
            <div class="data_block">
                <div class="form_data">
                    <label class="form-label">{{ form.email.label }}</label>
                    {{ form.email(class="input_data", type="email", placeholder='example@mail.ex') }}
                    {% for error in form.email.errors %}
                    <div class="alert alert-danger" role="alert">{{ error }}</div>
                    {% endfor %}
                </div>
                {{ form.submit(type="submit", class="recovery_button") }}
            </div>
        </form>
        {% else %}
        <h1 class="header_title">Восстановление пароля</h1>
        <form action="" method="post" class="recovery_form">
            {{ form.hidden_tag() }}
            <div class="data_block">
                <div class="form_data">
                    <label class="form-label">{{ form.password.label }}</label>
                    {{ form.password(class="input_data", type="password", placeholder='good_password') }}
                    {% for error in form.password.errors %}
                    <div class="alert alert-danger" role="alert">{{ error }}</div>
                    {% endfor %}
                </div>
                <div class="form_data">
                    <label class="form-label">{{ form.repeat_password.label }}</label>
                    {{ form.repeat_password(class="input_data", type="password", placeholder='good_password') }}
                    {% for error in form.repeat_password.errors %}
                    <div class="alert alert-danger" role="alert">{{ error }}</div>
                    {% endfor %}
                </div>
                {{ form.submit(type="submit", class="recovery_button") }}
            </div>
        </form>
        {% endif %}
        <div class="message_block">
            {% if message != '' %}
            <div class="alert alert-danger message" role="alert">
                {{ message }}
            </div>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}