{% extends "root.html" %}{% load staticfiles %}{% load url from future %}{% load i18n %} {% block body %}
{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}

{% if form.errors.items|length == 1 %} {% trans "Please correct the error below." %}{% else %} {% trans "Please correct the errors below." %}{% endif %}

{% 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 }}
{% endblock %}