author | Madhusudan.C.S <madhusudancs@gmail.com> |
Fri, 21 Jan 2011 00:17:10 +0530 | |
changeset 503 | a3e85fd764c7 |
parent 435 | 1217d808d70f |
child 504 | 3b78ea899168 |
permissions | -rw-r--r-- |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
1 |
{% extends "base.html" %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
2 |
|
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
3 |
{% load form_helpers %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
4 |
|
354
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
5 |
{% block content %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
{% if can_claim %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
7 |
Propose a claim to work on this task.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
8 |
{% endif %} |
356
f88135529c74
claim task works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents:
354
diff
changeset
|
9 |
{% if old_claims %} |
417
b37e541bf950
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
379
diff
changeset
|
10 |
List of all the claims for the task <a href="{% url view_task task.id %}">{{task.title}}</a><br /> |
356
f88135529c74
claim task works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents:
354
diff
changeset
|
11 |
{% for claim in old_claims %} |
354
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
12 |
<hr /> |
503
a3e85fd764c7
Use the view_user_profile reverse view name for the profiles of non-logged in users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
13 |
<a href="{% url view_user_profile claim.claimed_by.id %}">{{claim.claimed_by.username}}</a> |
354
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
14 |
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
|
15 |
{{claim.proposal|linebreaksbr}}<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
16 |
{% endfor %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
17 |
{% else %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
18 |
{% if task_claimable %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
19 |
There are no claims for this task yet.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
20 |
{% if can_claim %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
21 |
Be the first to claim the task.<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 |
{% else %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
24 |
The task cannot be claimed at this stage.<br /> |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
25 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
26 |
{% endif %} |
357
ec7f2f4256f5
now the creator can select users
Nishanth Amuluru <nishanth@fossee.in>
parents:
356
diff
changeset
|
27 |
{% if old_claims and is_creator %} |
ec7f2f4256f5
now the creator can select users
Nishanth Amuluru <nishanth@fossee.in>
parents:
356
diff
changeset
|
28 |
<hr /> |
417
b37e541bf950
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
379
diff
changeset
|
29 |
<a href="{% url select_task task.id %}">Select a user to assign the work</a> |
354
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
30 |
{% endif %} |
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
31 |
|
124ccd27ed4f
Added the required template
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
32 |
{% if can_claim %} |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
33 |
<hr /> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
34 |
Please note that you can claim only once and so write your |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
35 |
proposal carefully.<br /> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
36 |
{% as_div_form form "Task Claim Form" csrf_token "Request Claim" %} |
354
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 %} |