diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/templates/base.html | 7 | ||||
| -rw-r--r-- | examples/templates/registration/login.html | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/examples/templates/base.html b/examples/templates/base.html new file mode 100644 index 00000000..1ff37dab --- /dev/null +++ b/examples/templates/base.html @@ -0,0 +1,7 @@ +<html> + <head> + </head> + <body> +{% block content %}{% endblock %} + </body> +</html>
\ No newline at end of file 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 |
