blob: 7e3d615238d8143ebf8c1d7eb2fd9e7d6745a076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<form id="login_form" method="post" action=".">
{{ form.as_p }}
<input type="submit" class="btn" value="{% trans 'Log in' %}" />
<input type="hidden" name="next" value="{{ next }}" />
{% csrf_token %}
</form>
<p>{% trans "Forgot password" %}? <a href="{% url auth_password_reset %}">{% trans "Reset it" %}</a>!</p>
<p>{% trans "Don't have an account" %}? <a href="{% url registration_register %}">{% trans "Create one now" %}</a>!</p>
{% endblock %}
{% block scripts %}
<script>
$(document).ready(function() {
$("#login_form input:text, #login_form textarea").first().focus();
});
</script>
{% endblock %}
|