{% extends "admin/login.html" %} {% load i18n admin_static %} {% block content %} {% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}

{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{% endif %} {% if form.non_field_errors or form.this_is_the_login_form.errors %} {% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}

{{ error }}

{% endfor %} {% endif %}
{% csrf_token %}
{% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %} {{ form.username }}
{% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %} {{ form.password }}
{% if not form.this_is_the_login_form.errors %}{{ form.authy_token.errors }}{% endif %} {{ form.authy_token }}
{% endblock %}