{% extends 'project/dialog.html' %}
{% load i18n %}

{% block title %}{% trans 'Eltern-Login' %}{% endblock %}

{% block extra_meta %}
    <meta name="robots" content="noindex, nofollow"/>
{% endblock %}

{% block dialog %}
    <h2 class="reveal_self reveal reveal_animation">{% trans 'Login' %}</h2>
    <p class="reveal_self reveal reveal_animation section__text">
        {% trans 'Willkommen in Ihrem persönlichen Portal der Tagesschule Elementa' %}
    </p>
    <form class="reveal_self reveal reveal_animation" method="post" action=".">
        {% if form.non_field_errors %}
            {% for error in form.non_field_errors %}
                <p class="form__errors reveal_self reveal reveal_animation">{{ error }}</p>
            {% endfor %}
        {% endif %}

        {% csrf_token %}

        {% for field in form %}
            {% include 'project/includes/field.html' with field=field %}
        {% endfor %}

        <div class="form__submit reveal_self reveal reveal_animation">
            <button type="submit" class="button">
                <span class="button__icon">{% include 'project/assets/arrow-right-long.svg' %}</span>
                <span class="button__text">{% trans 'Login' %}</span>
            </button>
        </div>

    </form>
{% endblock %}
