~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/registration/login.html

  • Committer: Janos Gyerik
  • Date: 2011-08-07 19:28:15 UTC
  • Revision ID: janos@axiom-20110807192815-74cbfd0u9dw782c7
added primitive account creation and login

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
 
 
3
{% block pagetitle %}Login{% endblock %}
 
4
 
 
5
{% block content %}
 
6
 
 
7
<p>Welcome to <strong>bashoneliners.com</strong>, a place to share Bash one-liners with the world.</p>
 
8
 
 
9
{% if form.errors %}
 
10
<p class="error">Your username and password didn't match. Please try again.</p>
 
11
{% endif %}
 
12
 
 
13
<form method="post" action="{% url django.contrib.auth.views.login %}">
 
14
{% csrf_token %}
 
15
<table>
 
16
<tr>
 
17
    <td>{{ form.username.label_tag }}</td>
 
18
    <td>{{ form.username }}</td>
 
19
</tr>
 
20
<tr>
 
21
    <td>{{ form.password.label_tag }}</td>
 
22
    <td>{{ form.password }}</td>
 
23
</tr>
 
24
</table>
 
25
 
 
26
<input type="submit" value="login" />
 
27
<input type="hidden" name="next" value="{{ next }}" />
 
28
</form>
 
29
<p><a href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a></p>
 
30
<p><a href="{% url bashoneliners.accounts.views.create_user %}">Don't have an account yet?</a></p>
 
31
 
 
32
{% endblock %}