diff -r 665eaf56e1d0 -r 3395960549e8 templates/task/addmentor.html --- a/templates/task/addmentor.html Sun Feb 28 17:53:52 2010 +0530 +++ b/templates/task/addmentor.html Sun Feb 28 18:27:50 2010 +0530 @@ -1,8 +1,17 @@ {% extends 'base.html' %} {% block content %} - Form here
{{form.as_table}}
+ {% if pending_requests %} + Pending requests:
+ {% for req in pending_requests %} + {{req.sent_by.username}} requested + {% for a_user in req.sent_to.all %} + {{a_user.username}} to act as a mentor + {% endfor %} + on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}
+ {% endfor %} + {% endif %} {% endblock %}