login.html 878 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
{% extends "base.html" %}
{% load i18n %}
Joost Rijneveld's avatar
Joost Rijneveld committed
3
4
5

{% comment %}This page is automatically used by django.contrib.auth.views{% endcomment %}

Thom Wiggers's avatar
Thom Wiggers committed
6
{% block title %}{% trans "Login" %}{% endblock %}
7

Thom Wiggers's avatar
Thom Wiggers committed
8
{% block body %}
9
  <h1>{% trans "Log in" %}</h1>
Thom Wiggers's avatar
Thom Wiggers committed
10
  {% if next %}
11
12
13
14
15
16
17
18
19
  {% 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 %}
Thom Wiggers's avatar
Thom Wiggers committed
20
  {% endif %}
21
22
23
24
25
26
27
28
29
30
  {% endif %}
  <div class="loginForm">
    <form method="POST" action="{% url 'login' %}">
      {% csrf_token %}
      <table>
        {{ form }}
      </table>
      <input type="hidden" name="next" value="{{ next }}">
      <input type="submit" value="{% trans "Login" %}">
    </form>
31
  </form>
32
  </div>
Thom Wiggers's avatar
Thom Wiggers committed
33
{% endblock %}