{% extends "admin/logged_out_base.html" %}{% load i18n yawdadmin_tags %} {% block bodyclass %}login{% endblock %} {% block content %}{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}

{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{% 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 %}

{% trans 'Sign In' %}

{% csrf_token %}
{% if not form.this_is_the_login_form.errors %} {% endif %}
{{ form.username }}
{% if form.username.errors %} {{form.username.errors}}{% endif %}
{% if not form.this_is_the_login_form.errors %} {% endif %}
{{ form.password }}
{% if form.password.errors %} {{form.password.errors}}{% endif %}
{% url 'admin_password_reset' as password_reset_url %}{% if password_reset_url %}  {% trans 'Forgot password?' %}{% endif %}
{% endblock %}