From e9168b508b38b545406089c8592342e5eb70f9f9 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Thu, 27 Jan 2011 21:19:25 +0000 Subject: Login/Logout and FlyWheel API link in HTML emitter - Add templates, quote next value, only use login/logout if settings.LOGIN_URL and settings.LOGOUT_URL are in urlconf --- examples/templates/base.html | 7 +++++++ examples/templates/registration/login.html | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 examples/templates/base.html create mode 100644 examples/templates/registration/login.html (limited to 'examples') 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 @@ + + + + +{% block content %}{% endblock %} + + \ 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 %} +

Your username and password didn't match. Please try again.

+{% endif %} + +
+{% csrf_token %} + + + + + + + + + +
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
+ + + +
+ +{% endblock %} \ No newline at end of file -- cgit v1.2.3