PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/login.html

http://django-jchat.googlecode.com/
HTML | 29 lines | 24 code | 5 blank | 0 comment | 0 complexity | 34f153f6495eaebbda44c299a3f56311 MD5 | raw file
 1{% extends "base.html" %}
 2
 3{% block content %}
 4<div id="instructions"> 
 5  <p>Before you test the app you must be logged in... or else all this doesn't make any sense... Luckily you created an user when running the "manage.py syncdb" command... right?</p> 
 6</div> 
 7
 8{% if form.errors %}
 9<p>Your username and password didn't match. Please try again.</p>
10{% endif %}
11
12<form method="post" action="{% url django.contrib.auth.views.login %}">
13{% csrf_token %}
14<table>
15<tr>
16    <td>{{ form.username.label_tag }}</td>
17    <td>{{ form.username }}</td>
18</tr>
19<tr>
20    <td>{{ form.password.label_tag }}</td>
21    <td>{{ form.password }}</td>
22</tr>
23</table>
24
25<input type="submit" value="login" />
26<input type="hidden" name="next" value="{{ next }}" />
27</form>
28
29{% endblock %}