aboutsummaryrefslogtreecommitdiffstats
path: root/examples/templates/registration/login.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/templates/registration/login.html')
-rw-r--r--examples/templates/registration/login.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/templates/registration/login.html b/examples/templates/registration/login.html
new file mode 100644
index 00000000..9d0b481b
--- /dev/null
+++ b/examples/templates/registration/login.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{% if form.errors %}
+<p>Your username and password didn't match. Please try again.</p>
+{% endif %}
+
+<form method="post" action="{% url django.contrib.auth.views.login %}">
+{% 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>
+</table>
+
+<input type="submit" value="login" />
+<input type="hidden" name="next" value="{{ next }}" />
+</form>
+
+{% endblock %} \ No newline at end of file