2 {% block content %} |
2 {% block content %} |
3 {% if claims %} |
3 {% if claims %} |
4 List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br /> |
4 List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br /> |
5 {% for claim in claims %} |
5 {% for claim in claims %} |
6 <hr /> |
6 <hr /> |
7 <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br /> |
7 <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> |
|
8 on {{claim.creation_datetime|date:"D d M Y"}} at {{claim.creation_datetime|time:"H:i"}} wrote:<br /> |
8 {{claim.message}}<br /> |
9 {{claim.message}}<br /> |
9 {% endfor %} |
10 {% endfor %} |
10 {% else %} |
11 {% else %} |
11 {% if task_claimable%} |
12 {% if task_claimable %} |
12 There are no claims for this task yet.<br /> |
13 There are no claims for this task yet.<br /> |
|
14 Be the first to claim the task.<br /> |
13 {% else %} |
15 {% else %} |
14 This task cannot be claimed right now. |
16 This task cannot be claimed right now. |
15 {% endif %} |
17 {% endif %} |
16 <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task. |
18 <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /> |
17 {% endif %} |
19 {% endif %} |
18 {% if task_claimed and is_mentor %} |
20 {% if task_claimed and is_mentor %} |
19 <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a> |
21 <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a> |
20 {% endif %} |
22 {% endif %} |
21 {% if user_can_claim %} |
23 {% if user_can_claim %} |
22 <hr /> |
24 {% if errors %} |
23 {% if errors %} |
25 {% for error in errors %} |
24 {% for error in errors %} |
26 {{error}}<br /> |
25 {{error}}<br /> |
27 {% endfor %} |
26 {% endfor %} |
28 {% endif %} |
27 {% endif %} |
29 |
28 Claim the task:<br /> |
30 <hr /> |
29 <form action="" method="post"> |
31 Please note that you can claim only once and so write your proposal carefully.<br /> |
30 <textarea name="message"></textarea><br /> |
32 Claim proposal:<br /> |
31 <input type="submit" value="Submit Claim"> |
33 <form action="" method="post"> |
32 </form> |
34 <textarea name="message"></textarea><br /> |
|
35 <input type="submit" value="Submit Claim"> |
|
36 </form> |
33 {% endif %} |
37 {% endif %} |
34 {% endblock %} |
38 {% endblock %} |