login.html 729 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
3
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Login" %}{% endblock %}
4

Thom Wiggers's avatar
Thom Wiggers committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% block body %}
  {% if next %}
    {% if user.is_authenticated %}
      {% blocktrans %}
        <p>Your account does not have access to this page. To proceed, please
        log in with an account that has access.</p>
    {% endblocktrans %}
    {% else %}
      {% blocktrans %}
        <p>Please log in to see this page.</p>
      {% endblocktrans %}
    {% endif %}
  {% endif %}
  <form method="POST" action="{% url 'login' %}">
19
    {% csrf_token %}
Thom Wiggers's avatar
Thom Wiggers committed
20
21
22
23
24
    <table>
      {{ form }}
    </table>
    <input type="hidden" name="next" value="{{ next }}">
    <input type="submit" value="{% trans "Login" %}">
25
  </form>
Thom Wiggers's avatar
Thom Wiggers committed
26
{% endblock %}