{% extends "base.html" %}

{% block content %}
    <h1>{{ i18n.t('auth.verify_page_title') }}</h1>
    <form action="{{ url_for('verify') }}" method="post">
        {{ form.hidden_tag() }}
        <input id="csrf_token" name="csrf_token" type="hidden" value="{{ csrf_token }}">
        <div class="login verify">
            <div class="login-screen">
                <div class="app-title">
                    <h1>{{ i18n.t('auth.verify_form_title') }}</h1>
                </div>
     
                <div class="login-form">
                    <div class="control-group">
                      {{ form.token(placeholder=i18n.t('auth.verify_code_placeholder'), autocomplete="off", autofocus=True, class_='login-field') }}
                      {% for error in form.token.errors %}
                        <br/><span style="color: red;">[{{ error }}]</span>
                      {% endfor %}
                    </div>
     
                    <input type="submit" value="{{ i18n.t('auth.login_button') }}" class="btn btn-primary btn-large btn-block" >
                    <br>
                </div>
            </div>
        </div>
    </form>
{% endblock %}
