author | nishanth |
Fri, 26 Feb 2010 11:34:17 +0530 | |
changeset 113 | ea962d5fe99e |
parent 72 | 9fc60a221016 |
child 156 | 7cad1e92713d |
permissions | -rw-r--r-- |
25
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
1 |
{% extends 'base.html' %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
2 |
{% block content %} |
33
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
3 |
{% if claims %} |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
4 |
List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br /> |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
5 |
{% for claim in claims %} |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
6 |
<hr /> |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
7 |
<a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br /> |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
8 |
{{claim.message}}<br /> |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
9 |
{% endfor %} |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
10 |
{% else %} |
72 | 11 |
{% if task_claimable%} |
12 |
There are no claims for this task yet.<br /> |
|
13 |
{% else %} |
|
14 |
This task cannot be claimed right now. |
|
15 |
{% endif %} |
|
70 | 16 |
<a href="/task/view/tid={{task.id}}">Click here</a> to return to the task. |
33
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
17 |
{% endif %} |
0d0ea7b188d5
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .
nishanth
parents:
25
diff
changeset
|
18 |
{% if task_claimed and is_mentor %} |
72 | 19 |
<a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a> |
25
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
20 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
21 |
{% if user_can_claim %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
22 |
<hr /> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
23 |
{% if errors %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
24 |
{% for error in errors %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
25 |
{{error}}<br /> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
26 |
{% endfor %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
27 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
28 |
Claim the task:<br /> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
29 |
<form action="" method="post"> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
30 |
<textarea name="message"></textarea><br /> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
31 |
<input type="submit" value="Submit Claim"> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
32 |
</form> |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
33 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
34 |
{% endblock %} |