author | Nishanth Amuluru <nishanth@fossee.in> |
Sun, 09 Jan 2011 20:26:11 +0530 | |
changeset 130 | a4fa11b2cb5c |
parent 124 | 070f01dd7d8e |
child 141 | ed2dadfc829a |
permissions | -rw-r--r-- |
116
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
1 |
{% extends 'base.html' %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
2 |
{% block content %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
3 |
{% if can_claim %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
4 |
Propose a claim to work on this task.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
5 |
{% endif %} |
118
f88135529c74
claim task works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents:
116
diff
changeset
|
6 |
{% if old_claims %} |
116
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
7 |
List of all the claims for the task <a href="/task/view/tid={{task.uniq_key}}">{{task.title}}</a><br /> |
118
f88135529c74
claim task works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents:
116
diff
changeset
|
8 |
{% for claim in old_claims %} |
116
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
9 |
<hr /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
10 |
<a href="/user/view/uid={{claim.claimed_by.id}}">{{claim.claimed_by.username}}</a> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
11 |
on {{claim.claim_datetime|date:"D d M Y"}} at {{claim.claim_datetime|time:"H:i"}} wrote:<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
12 |
{{claim.proposal|linebreaksbr}}<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
13 |
{% endfor %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
14 |
{% else %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
15 |
{% if task_claimable %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
16 |
There are no claims for this task yet.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
17 |
{% if can_claim %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
18 |
Be the first to claim the task.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
19 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
20 |
{% else %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
21 |
The task cannot be claimed at this stage.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
22 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
23 |
{% endif %} |
119
ec7f2f4256f5
now the creator can select users
Nishanth Amuluru <nishanth@fossee.in>
parents:
118
diff
changeset
|
24 |
{% if old_claims and is_creator %} |
ec7f2f4256f5
now the creator can select users
Nishanth Amuluru <nishanth@fossee.in>
parents:
118
diff
changeset
|
25 |
<hr /> |
124
070f01dd7d8e
Select user works completely fine
Nishanth Amuluru <nishanth@fossee.in>
parents:
119
diff
changeset
|
26 |
<a href="/task/select/tid={{task.uniq_key}}">Select a user to assign the work</a> |
116
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
27 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
28 |
|
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
29 |
{% if can_claim %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
30 |
<hr /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
31 |
<form action="" method="post"> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
32 |
{% csrf_token %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
33 |
{{form.as_p}} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
34 |
<input type="submit" value="Submit Claim"><br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
35 |
Please note that you can claim only once and so write your proposal carefully.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
36 |
</form> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
37 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
38 |
|
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
39 |
{% endblock %} |