source: templates/login.html @ 48380833447903591eee8117daadc89fdd641664

Revision 48380833447903591eee8117daadc89fdd641664, 838 bytes checked in by Stanislaw Klekot <dozzie@…>, 7 years ago (diff)

Added login/logout forms.

  • Property mode set to 100644
Line 
1{% extends "template.html" %}
2{% load markup %}
3
4{% block title %}login{% endblock %}
5
6{% block body %}
7
8{% if error %}
9<p class="error">
10  {{ error }}
11</p>
12{% endif %}
13
14{% if message %}
15<p class="message">
16  {{ message }}
17</p>
18{% endif %}
19
20{% if success %}
21<p>
22Go to <a href="{% url wiki.views.handle_wiki "WikiStart" %}">home page</a>.
23</p>
24{% else %}
25<form method="post" action="{% url wiki.views.login %}">
26  <table>
27    <tr>
28      <th>user name</th>
29      <td><input type="text" name="user_name" cols="80" value="" /></td>
30    </th>
31    <tr>
32      <th>password</th>
33      <td><input type="password" name="password" cols="80" value="" /></td>
34    </th>
35  </table>
36
37  <div>
38    <input type="submit" name="submit" value="Submit" /> |
39    <input type="submit" name="cancel" value="Cancel" />
40  </div>
41</form>
42{% endif %}
43
44{% endblock %}
Note: See TracBrowser for help on using the repository browser.