diff --git a/templates/admin/login.html b/templates/admin/login.html index 1f63b2d..111f485 100644 --- a/templates/admin/login.html +++ b/templates/admin/login.html @@ -3,7 +3,7 @@ {% block extrastyle %}{{ block.super }}{% endblock %} -{% block bodyclass %}{{ block.super }} login{% endblock %} +{% block bodyclass %}login{% endblock %} {% block nav-global %}{% endblock %} @@ -11,37 +11,37 @@ {% block breadcrumbs %}{% endblock %} +{% block container-top %}{% endblock %} + {% block branding %}

SIGI

{% endblock %} {% block content %} -{% if form.errors and not form.non_field_errors %} +{% 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 %} -{% for error in form.non_field_errors %} +{% 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 %} -{% block container-top %}{% endblock %} - -
{% csrf_token %}
- {{ form.username.errors }} - {{ form.username.label_tag }} {{ form.username }} + {% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %} + {{ form.username }}
- {{ form.password.errors }} - {{ form.password.label_tag }} {{ form.password }} + {% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %} + {{ form.password }} +
{% url 'admin_password_reset' as password_reset_url %}