author | nishanth |
Mon, 01 Mar 2010 05:18:44 +0530 | |
changeset 158 | c43e0114e593 |
parent 151 | d0cb85ba462a |
child 163 | c4cb937b8e7f |
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 %} |
151
d0cb85ba462a
no bogus post request can be made now in addmentor page.
nishanth
parents:
149
diff
changeset
|
3 |
<a href="/task/view/tid={{task.id}}">Click here</a> to return to the task. |
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
4 |
<form action="" method="post"> |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
5 |
{{form.as_table}} |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
6 |
<input type="submit" value="submit"> |
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
7 |
</form> |
149
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
8 |
{% if pending_requests %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
9 |
Pending requests:<br /> |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
10 |
{% 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
|
11 |
<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
|
12 |
{% 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
|
13 |
<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
|
14 |
{% endfor %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
15 |
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
|
16 |
{% endfor %} |
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
17 |
{% endif %} |
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
18 |
{% endblock %} |