{% extends "admin/base_site.html" %} {% comment %} This template overrides one of the standard admin ones. The changes are: - take care of url prefix - give the login button a jquery-ui look and feel - check for old versions of Internet Explorer {% endcomment %} {% load i18n %} {% block extrastyle %}{{block.super}} {% endblock %} {% block extrahead %} {% endblock %} {% block bodyclass %}login{% endblock %} {% block nav-global %}{% endblock %} {% block content_title %}{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} {% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
{% comment %}Translators: Translation included with Django {% endcomment %} {% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %} {% comment %}Translators: Translation included with Django {% endcomment %} {% 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 %}