summaryrefslogtreecommitdiff
path: root/build/lib.linux-i686-2.6/objectapp/templates/objectapp/login.html
blob: 496e0ca9e46319c95f63381016bcc34310476f1f (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
{% extends "objectapp/base.html" %}
{% load i18n %}

{% block title %}{% trans "Login required" %}{% endblock %}

{% block content %}
<h2>{% trans "Login required" %}</h2>

<div class="gbobject_login">
  {% if form.errors %}
  <p class="error">
    {% trans "Your username and password didn't match. Please try again." %}
  </p>
  {% endif %}
  <p>
    {% trans "You need to be connected to view this gbobject." %}
  </p>

  <form method="post" action=".">
    {% csrf_token %}
    <table>
      <tr>
        <td>{{ form.username.label_tag }}</td>
        <td>{{ form.username }}</td>
      </tr>
      <tr>
        <td>{{ form.password.label_tag }}</td>
        <td>{{ form.password }}</td>
      </tr>
      <tr>
        <td colspan="2">
          <input type="hidden" name="next" value="." />
          <input type="submit" value="{% trans "Login" %}" />
        </td>
      </tr>
    </table>
  </form>
</div>
{% endblock %}