summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranoop2010-02-19 21:46:24 +0530
committeranoop2010-02-19 21:46:24 +0530
commitc5988d07cddeb726176d93bf0a5de54174dee9be (patch)
tree68b3b92e8b9c231353a4de09daacd7ba1293be49
parentc718475c85f90a480ae25e2a1ede5991d8243570 (diff)
downloadpytask-c5988d07cddeb726176d93bf0a5de54174dee9be.tar.gz
pytask-c5988d07cddeb726176d93bf0a5de54174dee9be.tar.bz2
pytask-c5988d07cddeb726176d93bf0a5de54174dee9be.zip
added forgot password in template.
-rw-r--r--taskapp/views/user.py1
-rw-r--r--templates/base.html8
-rw-r--r--templates/registration/login.html1
-rw-r--r--templates/user/my_profile.html2
4 files changed, 10 insertions, 2 deletions
diff --git a/taskapp/views/user.py b/taskapp/views/user.py
index 20562e7..a3af9ff 100644
--- a/taskapp/views/user.py
+++ b/taskapp/views/user.py
@@ -61,6 +61,7 @@ def view_my_profile(request,uid=None):
raise Http404
return render_to_response('user/my_profile.html', {'edit_profile':edit_profile,'profile':profile})
+@login_required
def edit_my_profile(request):
""" enables the user to edit his/her user profile """
if str(request.user) == 'AnonymousUser':
diff --git a/templates/base.html b/templates/base.html
index 7ed337f..0efba4d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -3,5 +3,11 @@
<title>{% block title %}PyTasks{% endblock %}</title>
</head>
<body>
-<h2><a href="/">PyTasks</a></h2><br />{% block content %}This is the default content{% endblock %}</body>
+<h2><a href="/">PyTasks</a></h2>
+<a href="javascript:history.go(-1)">back</a>
+{% if user.is_authenticated %}
+ | <a href="/accounts/logout">logout</a>
+{% endif %}
+<br><br>
+{% block content %}This is the default content{% endblock %}</body>
</html>
diff --git a/templates/registration/login.html b/templates/registration/login.html
index f762af1..b2e60d6 100644
--- a/templates/registration/login.html
+++ b/templates/registration/login.html
@@ -4,4 +4,5 @@
{{ form.as_p }}
<input type="submit" value="Login" />
</form>
+<a href="/accounts/password/reset">Forgot password?</a>
{% endblock %}
diff --git a/templates/user/my_profile.html b/templates/user/my_profile.html
index cd45155..9c2c04b 100644
--- a/templates/user/my_profile.html
+++ b/templates/user/my_profile.html
@@ -10,7 +10,7 @@
<h2>{{ profile }}'s Profile</h2>
<hr>
{% if edit_profile %}
- <a href="/user/edit/">edit profile</a>
+ <a href="/user/edit/">edit profile</a> | <a href="/accounts/password/change">change password</a>
<hr>
{% endif %}
{% if profile.aboutme %}