# HG changeset patch # User Madhusudan.C.S # Date 1295212991 -19800 # Node ID 1217d808d70fba18b13f094c11a2ca97dec965cc # Parent ebfe27c2af3916c7cad3403bbfb4d88cb6ca776c Use the new forms tags and fix the styling. diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/profile/browse_notifications.html --- a/pytask/templates/profile/browse_notifications.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/profile/browse_notifications.html Mon Jan 17 02:53:11 2011 +0530 @@ -1,14 +1,27 @@ -{% extends 'base.html' %} +{% extends "base.html" %} + {% block content %} -{% if not notifications %} -You have no notifications. -{% else %} -Notifications:
-{% for notification in notifications %} - -{% if not notification.is_read %} {% endif %} -{{notification.subject}} -{% if not notification.is_read %} {% endif %}
-{% endfor %} -{% endif %} + {% if not notifications %} + You have no notifications. + {% else %} + + Notifications:
+ {% for notification in notifications %} + + + {% if not notification.is_read %} + + {% endif %} + + {{ notification.subject }} + + {% if not notification.is_read %} + + {% endif %} + + +
+ {% endfor %} + + {% endif %} {% endblock %} diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/profile/edit.html --- a/pytask/templates/profile/edit.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/profile/edit.html Mon Jan 17 02:53:11 2011 +0530 @@ -1,8 +1,7 @@ -{% extends 'base.html' %} +{% extends "base.html" %} + +{% load form_helpers %} + {% block content %} -
-{% csrf_token %} -{{ form.as_p }} - -
+ {% as_div_form form "Edit Profile Form" csrf_token "Update" %} {% endblock %} diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/registration/activation_complete.html --- a/pytask/templates/registration/activation_complete.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/registration/activation_complete.html Mon Jan 17 02:53:11 2011 +0530 @@ -1,5 +1,6 @@ -{% extends 'base.html' %} +{% extends "base.html" %} + {% block content %} -Your account has been successfully activated.
-Please proceed to login. + Your account has been successfully activated.
+ Please proceed to login. {% endblock %} diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/registration/login.html --- a/pytask/templates/registration/login.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/registration/login.html Mon Jan 17 02:53:11 2011 +0530 @@ -1,9 +1,9 @@ -{% extends 'base.html' %} +{% extends "base.html" %} + +{% load form_helpers %} + {% block content %} -
-{% csrf_token %} -{{ form.as_p }} - -
-Forgot password? + {% url auth_login as login_url %} + {% as_div_form form "Login Form" csrf_token "Login" login_url %} + Forgot password? {% endblock %} diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/task/approved_textbook.html --- a/pytask/templates/task/approved_textbook.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/task/approved_textbook.html Mon Jan 17 02:53:11 2011 +0530 @@ -1,4 +1,5 @@ {% extends "base.html" %} + {% block content %} The textbook {{textbook.name}} has been approved. diff -r ebfe27c2af39 -r 1217d808d70f pytask/templates/task/browse.html --- a/pytask/templates/task/browse.html Mon Jan 17 02:52:42 2011 +0530 +++ b/pytask/templates/task/browse.html Mon Jan 17 02:53:11 2011 +0530 @@ -2,39 +2,59 @@ {% block content %} - {% if open_tasks %} - Tasks that are open for contribution -
- {% endif %} - - {% if working_tasks %} - Tasks that are being worked on