| author | nishanth |
| Wed, 03 Mar 2010 05:34:32 +0530 | |
| changeset 189 | 8f5fb15ffd9b |
| parent 163 | c4cb937b8e7f |
| child 191 | 3bfe70742aa8 |
| 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 %}
|
| 163 | 3 |
<a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /><br />
|
4 |
Requesting a user to act as a mentor for the task sends him a request. If he accepts the request, he will also be the mentor for this task |
|
5 |
{% ifequal task.status "UP" %}
|
|
6 |
and can view/edit<sup><a href="/about/edittask/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task. |
|
7 |
{% else %}
|
|
8 |
and will have all the rights<sup><a href="/about/mentorrights/" target="_blank">learn more</a></sup> you posses over the task. |
|
9 |
{% endifequal %}
|
|
10 |
<br /> |
|
11 |
<br /> |
|
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
12 |
<form action="" method="post"> |
|
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
13 |
{{form.as_table}}
|
| 163 | 14 |
<input type="submit" value="Submit"> |
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
15 |
</form> |
|
149
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
16 |
{% if pending_requests %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
17 |
Pending requests:<br /> |
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
18 |
{% 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
|
19 |
<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
|
20 |
{% 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
|
21 |
<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
|
22 |
{% endfor %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
23 |
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
|
24 |
{% endfor %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
25 |
{% endif %}
|
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
26 |
{% endblock %}
|