{% extends "semantic_forms/base.html" %} {% load i18n static semantic_filters %} {% block title %} {% trans "Login" %} | {{ site_title|default:_("Django site admin") }} {% endblock %} {% block extrastyle %} {{ form.media }} {% endblock %} {% block blockbots %}{% endblock %} {% block content %}
{% trans 'Log in' %}
{% if form.non_field_errors %}
{{ form.non_field_errors|semantic_error_list }}
{% elif form.errors %}
{% if form.errors.items|length == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}
{% endif %}
{% if user.is_authenticated %}

{% blocktrans trimmed %} You are authenticated as {{ user.get_username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktrans %}

{% endif %}
{% csrf_token %}
{{ form.username.label_tag }} {{ form.username }} {{ form.username.errors|semantic_error_list }}
{{ form.password.label_tag }} {{ form.password }} {{ form.password.errors|semantic_error_list }}
{% url 'admin_password_reset' as password_reset_url %} {% block passwordreset %} {% if password_reset_url %} {% endif %} {% endblock %}
{% endblock %}