author | nishanth |
Thu, 04 Mar 2010 17:29:00 +0530 | |
changeset 199 | 946d0fe60606 |
parent 163 | c4cb937b8e7f |
child 204 | fa1da06d25c9 |
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 %} |
163 | 3 |
{% if user_can_claim %} |
4 |
Propose a claim to work on this task.<sup><a href="/about/claimtask/" target="_blank">learn more</a></sup><br /><br /> |
|
5 |
{% endif %} |
|
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
|
6 |
{% 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
|
7 |
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
|
8 |
{% 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
|
9 |
<hr /> |
156 | 10 |
<a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> |
11 |
on {{claim.creation_datetime|date:"D d M Y"}} at {{claim.creation_datetime|time:"H:i"}} wrote:<br /> |
|
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
|
12 |
{{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
|
13 |
{% 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
|
14 |
{% else %} |
156 | 15 |
{% if task_claimable %} |
72 | 16 |
There are no claims for this task yet.<br /> |
162 | 17 |
{% if user_can_claim %} |
18 |
Be the first to claim the task.<br /> |
|
19 |
{% endif %} |
|
72 | 20 |
{% else %} |
159 | 21 |
The task cannot be claimed at this stage.<br /> |
72 | 22 |
{% endif %} |
159 | 23 |
<a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br /> |
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
|
24 |
{% 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
|
25 |
{% if task_claimed and is_mentor %} |
163 | 26 |
<a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a><sup><a href="/about/assigntask/" target="_blank">learn more</a></sup> |
25
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 |
{% if user_can_claim %} |
156 | 29 |
{% if errors %} |
30 |
{% for error in errors %} |
|
31 |
{{error}}<br /> |
|
32 |
{% endfor %} |
|
33 |
{% endif %} |
|
34 |
||
35 |
<hr /> |
|
36 |
Claim proposal:<br /> |
|
37 |
<form action="" method="post"> |
|
38 |
<textarea name="message"></textarea><br /> |
|
163 | 39 |
<input type="submit" value="Submit Claim"><br /> |
40 |
Please note that you can claim only once and so write your proposal carefully.<br /> |
|
156 | 41 |
</form> |
25
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
42 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
43 |
{% endblock %} |