<link rel="stylesheet" href="../static/css/register.css"/>
{% extends "base.html" %} {% block content %}
<div class="register_page">
{% if egg == 1 %}
    <!-- Button trigger modal -->
    <button type="button" class="btn btn-primary" id="btn_cooc" data-bs-toggle="modal" data-bs-target="#staticBackdrop">
        Launch static backdrop modal
    </button>

    <!-- Modal -->
    <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
         aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h3 class="modal-title fs-5" id="staticBackdropLabel">Да, мы собираем сраные куки. Вам не
                        похуй?</h3>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-bs-toggle="modal"
                            data-bs-target="#staticBackdrop2">Ну похуй
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="staticBackdrop2" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
         aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h3 class="modal-title fs-5" id="staticBackdropLabel2">Ну вот и не выебывайся</h3>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-bs-dismiss="modal">Заткни ебальник</button>
                </div>
            </div>
        </div>
    </div>
    {% endif %}
    <div class="register">
        <h1 class="header_title">Регистрация</h1>
        <div>
            <form action="" method="post" class="register_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>
                    <div class="form_data">
                        <label class="form-label">{{ form.name.label }}</label>
                        {{ form.name(class="input_data", type="name", placeholder='name') }} {%
                        for error in form.name.errors %}
                        <div class="alert alert-danger" role="alert">{{ error }}</div>
                        {% endfor %}
                    </div>
                    <div class="form_data">
                        <label class="form-label">{{ form.login.label }}</label>
                        {{ form.login(class="input_data", type="login", placeholder='login') }} {%
                        for error in form.login.errors %}
                        <div class="alert alert-danger" role="alert">{{ error }}</div>
                        {% endfor %}
                    </div>
                    <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_button">
                        {{ form.submit(type="submit", class="register_button") }}
                        <a class="auth_button" type="submit" href="/login">
                            <div class="auth"><strong>Уже есть аккаунт?</strong></div>
                        </a>
                    </div>
                </div>
                <div class="message_block">
                    {% if message != '' %}
                    <div class="alert alert-danger message" role="alert">{{ message }}</div>
                    {% endif %}
                </div>
            </form>
        </div>
    </div>
</div>
{% if egg == 1 %}
<script type="text/javascript">
    window.onload = function(){
    document.getElementById('btn_cooc').click();
}
</script>
{% endif %}
{% endblock %}
