aboutsummaryrefslogtreecommitdiffstats
path: root/templates/registration/login.html
blob: fe0fd1722c6277b13d1a75e3897bae20c7670d0f (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 btn-default" 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 %}