{% extends 'admin/login.html' %} {% load i18n %} {% comment %} content block based on Django 4.2 admin/login.html. Deliberate differences: - inputs are rendered by hand (placeholders, .form-control-lg, .has-danger), so they get no autofocus attribute: the inline script focuses username, or password when username is filled - non-field errors are listed one per .errornote {% endcomment %} {% block content %} {% if form.errors and not form.non_field_errors %}

{% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

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

{{ error }}

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

{% blocktranslate trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktranslate %}

{% endif %}
{% csrf_token %}
{{ form.username.errors }}
{{ form.password.errors }}
{% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
{% endblock %}