login.html
1002 Bytes
{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% block content %}
{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
<p class="errornote">
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{% 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 %}
<p class="errornote">
{{ error }}
</p>
{% endfor %}
{% endif %}
<div id="content-main">
<form action="" method="post" id="login-form">{% csrf_token %}
{{ form.as_p }}
<div class="submit-row">
<label> </label><input type="submit" value="{% trans 'Log in' %}" />
</div>
</form>
<a href="{% url 'auth_password_reset' %}">Nie pamiętam hasła</a>
<script type="text/javascript">
document.getElementById('id_username').focus()
</script>
</div>
{% endblock %}