From c5988d07cddeb726176d93bf0a5de54174dee9be Mon Sep 17 00:00:00 2001 From: anoop Date: Fri, 19 Feb 2010 21:46:24 +0530 Subject: added forgot password in template. --- taskapp/views/user.py | 1 + templates/base.html | 8 +++++++- templates/registration/login.html | 1 + templates/user/my_profile.html | 2 +- 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 @@ {% block title %}PyTasks{% endblock %} -

PyTasks


{% block content %}This is the default content{% endblock %} +

PyTasks

+back +{% if user.is_authenticated %} + | logout +{% endif %} +

+{% block content %}This is the default content{% endblock %} 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 }} +Forgot password? {% 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 @@

{{ profile }}'s Profile


{% if edit_profile %} - edit profile + edit profile | change password
{% endif %} {% if profile.aboutme %} -- cgit