blob: d33eb5e2d3adbc56779dd661442127b63855d846 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{% extends "registration/base.html" %}
{% load i18n %}
{% block title %}{% translate "Log in" %}{% endblock %}
{% block og_title %}{% translate "Log in" %}{% endblock %}
{% block og_description %}{% translate "Log in to your account" %}{% endblock %}
{% block content %}
<h1>{% translate "Log in" %}</h1>
{% if form.errors %}
<p class="error">{% translate "Please correct the errors below:" %}</p>
{{ form.non_field_errors }}
{% endif %}
<form method="post" action="" class="form-input">
{% csrf_token %}
{% if next %}
<input type="hidden" name="next" value="{{ next }}">
{% endif %}
<div>
<label for="id_username">{% translate "Username:" %}</label>
{% if form.username.errors %}
<span class="error">{{ form.username.errors|join:", " }}</span>
{% endif %}
{{ form.username }}
</div>
<div>
<label for="id_password">{% translate "Password:" %}</label>
{% if form.password.errors %}
<span class="error">{{ form.password.errors|join:", " }}</span>
{% endif %}
{{ form.password }}
</div>
<p>
<input type="submit" value="{% translate 'Log in' %}" class="cta"/>
</p>
</form>
{% endblock %}
{% block content-related %}
<div role="complementary">
<h2 class="visuallyhidden" id="aside-header">{% translate "Additional Information" %}</h2>
{% url 'registration_register' as register_url %}
<p>
{% blocktranslate trimmed %}
If you don't have an account, you can
<a href="{{ register_url }}">sign up</a> for one.
{% endblocktranslate %}
</p>
{% url 'auth_password_reset' as reset_url %}
<p>
{% blocktranslate trimmed %}
If you forgot your password, you can
<a href="{{ reset_url }}">reset it</a>.
{% endblocktranslate %}
</p>
</div>
{% endblock %}
|