summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-07 10:49:48 +0530
committerNishanth Amuluru2011-01-07 10:49:48 +0530
commitc2a414e18d19c304bc5a1d9f74639968cc86bef5 (patch)
tree347a0cc9f1517bedfa6a11ab10ce70258980a0a7
parentac163389817a0756788cfe8e0d80b090f9e3a21b (diff)
downloadpytask-c2a414e18d19c304bc5a1d9f74639968cc86bef5.tar.gz
pytask-c2a414e18d19c304bc5a1d9f74639968cc86bef5.tar.bz2
pytask-c2a414e18d19c304bc5a1d9f74639968cc86bef5.zip
Added templates for login and logout
-rw-r--r--templates/registration/logged_out.html12
-rw-r--r--templates/registration/login.html8
-rw-r--r--templates/registration/logout.html6
3 files changed, 26 insertions, 0 deletions
diff --git a/templates/registration/logged_out.html b/templates/registration/logged_out.html
new file mode 100644
index 0000000..9b37497
--- /dev/null
+++ b/templates/registration/logged_out.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endblock %}
+
+{% block content %}
+
+<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
+
+<p><a href="../">{% trans 'Log in again' %}</a></p>
+
+{% endblock %}
diff --git a/templates/registration/login.html b/templates/registration/login.html
new file mode 100644
index 0000000..b2e60d6
--- /dev/null
+++ b/templates/registration/login.html
@@ -0,0 +1,8 @@
+{% extends 'base.html' %}
+{% block content %}
+<form action="/accounts/login/" method="post">
+{{ form.as_p }}
+<input type="submit" value="Login" />
+</form>
+<a href="/accounts/password/reset">Forgot password?</a>
+{% endblock %}
diff --git a/templates/registration/logout.html b/templates/registration/logout.html
new file mode 100644
index 0000000..480adfe
--- /dev/null
+++ b/templates/registration/logout.html
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+{% block content %}
+You have successfully logged out of PyTasks.
+<br><br>
+<a href="/">Click here</a> to go back to PyTask Homepage
+{% endblock %}