login.jinja 944 Bytes
Newer Older
Skia's avatar
Skia committed
1
{% extends "core/base.jinja" %}
Skia's avatar
Skia committed
2

Skia's avatar
Skia committed
3
4
5
6
{% block title %}
{% trans %}Login{% endtrans %}
{% endblock %}

Skia's avatar
Skia committed
7
8
{% block content %}

9
{% if form.errors %}
Skia's avatar
Skia committed
10
<p>{% trans %}Your username and password didn't match. Please try again.{% endtrans %}</p>
11
12
13
{% endif %}

{% if next %}
Skia's avatar
Skia committed
14
    {% if user.is_authenticated() %}
Skia's avatar
Skia committed
15
16
    <p>{% trans %}Your account doesn't have access to this page. To proceed,
    please login with an account that has access.{% endtrans %}</p>
17
    {% else %}
Skia's avatar
Skia committed
18
    <p>{% trans %}Please login to see this page.{% endtrans %}</p>
19
20
21
    {% endif %}
{% endif %}

Skia's avatar
Skia committed
22
<form method="post" action="{{ url('core:login') }}">
23
{% csrf_token %}
Skia's avatar
Skia committed
24
25
26
{{ form.as_p() }}
<input type="hidden" name="next" value="{{ next }}">
<p><input type="submit" value="{% trans %}login{% endtrans %}"></p>
Skia's avatar
Skia committed
27
28
</form>

29
{# Assumes you setup the password_reset view in your URLconf #}
Skia's avatar
Skia committed
30
<p><a href="{{ url('core:password_reset') }}">{% trans %}Lost password?{% endtrans %}</a></p>
31
32

{% endblock %}