equal
deleted
inserted
replaced
|
1 {% extends 'base.html' %} |
|
2 {% block content %} |
|
3 {% if can_claim %} |
|
4 Propose a claim to work on this task.<br /> |
|
5 {% endif %} |
|
6 {% if claims %} |
|
7 List of all the claims for the task <a href="/task/view/tid={{task.uniq_key}}">{{task.title}}</a><br /> |
|
8 {% for claim in claims %} |
|
9 <hr /> |
|
10 <a href="/user/view/uid={{claim.claimed_by.id}}">{{claim.claimed_by.username}}</a> |
|
11 on {{claim.claim_datetime|date:"D d M Y"}} at {{claim.claim_datetime|time:"H:i"}} wrote:<br /> |
|
12 {{claim.proposal|linebreaksbr}}<br /> |
|
13 {% endfor %} |
|
14 {% else %} |
|
15 {% if task_claimable %} |
|
16 There are no claims for this task yet.<br /> |
|
17 {% if can_claim %} |
|
18 Be the first to claim the task.<br /> |
|
19 {% endif %} |
|
20 {% else %} |
|
21 The task cannot be claimed at this stage.<br /> |
|
22 {% endif %} |
|
23 <a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br /> |
|
24 {% endif %} |
|
25 {% if task_claimed and is_creator %} |
|
26 <a href="/task/select/tid={{task.id}}">Select a user to assign the work.</a> |
|
27 {% endif %} |
|
28 |
|
29 {% if can_claim %} |
|
30 <hr /> |
|
31 <form action="" method="post"> |
|
32 {% csrf_token %} |
|
33 {{form.as_p}} |
|
34 <input type="submit" value="Submit Claim"><br /> |
|
35 Please note that you can claim only once and so write your proposal carefully.<br /> |
|
36 </form> |
|
37 {% endif %} |
|
38 |
|
39 {% endblock %} |