author | nishanth |
Sun, 28 Feb 2010 18:27:50 +0530 | |
changeset 149 | 3395960549e8 |
parent 21 | c28774fe7ffd |
child 151 | d0cb85ba462a |
permissions | -rw-r--r-- |
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
1 |
{% extends 'base.html' %} |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
2 |
{% block content %} |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
3 |
<form action="" method="post"> |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
4 |
{{form.as_table}} |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
5 |
<input type="submit" value="submit"> |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
6 |
</form> |
149
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
7 |
{% if pending_requests %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
8 |
Pending requests:<br /> |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
9 |
{% for req in pending_requests %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
10 |
<a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
11 |
{% for a_user in req.sent_to.all %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
12 |
<a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a mentor |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
13 |
{% endfor %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
14 |
on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br /> |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
15 |
{% endfor %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
16 |
{% endif %} |
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
17 |
{% endblock %} |