{% extends "admin/base_site.html" %} {% block title %}{% if form.errors %}{{ gettext("Error:") }} {% endif %}{{ super() }}{% endblock %} {% block extrastyle %}{{ super() }} {{ form.media }} {% endblock %} {% block bodyclass %}{{ super() }} login{% endblock %} {% block usertools %}{% endblock %} {% block nav_global %}{% endblock %} {% block nav_sidebar %}{% endblock %} {% block content_title %}{% endblock %} {% block nav_breadcrumbs %}{% endblock %} {% block content %} {% if form.errors and not form.non_field_errors() %}

{% trans count=form.errors.items()|length %}Please correct the error below.{% pluralize %}Please correct the errors below.{% endtrans %}

{% endif %} {% if form.non_field_errors() %} {% for error in form.non_field_errors() %}

{{ error }}

{% endfor %} {% endif %}
{% if user.is_authenticated %}

{% trans username=user.get_username() %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endtrans %}

{% endif %}
{{ csrf_input }}
{{ form.username.errors }} {{ form.username.label_tag() }} {{ form.username }}
{{ form.password.errors }} {{ form.password.label_tag() }} {{ form.password }}
{% set password_reset_url = url('admin_password_reset', silent=True) %} {% if password_reset_url %} {% endif %}
{% endblock %}