author | nishanth |
Mon, 01 Mar 2010 12:44:27 +0530 | |
changeset 162 | d378eff02f2e |
parent 159 | a74a32a5a3e1 |
child 163 | c4cb937b8e7f |
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 %} |
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
|
3 |
{% 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
|
4 |
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
|
5 |
{% 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
|
6 |
<hr /> |
156 | 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 /> |
|
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
|
9 |
{{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
|
10 |
{% 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
|
11 |
{% else %} |
156 | 12 |
{% if task_claimable %} |
72 | 13 |
There are no claims for this task yet.<br /> |
162 | 14 |
{% if user_can_claim %} |
15 |
Be the first to claim the task.<br /> |
|
16 |
{% endif %} |
|
72 | 17 |
{% else %} |
159 | 18 |
The task cannot be claimed at this stage.<br /> |
72 | 19 |
{% endif %} |
159 | 20 |
<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
|
21 |
{% 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
|
22 |
{% if task_claimed and is_mentor %} |
72 | 23 |
<a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a> |
25
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
24 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
25 |
{% if user_can_claim %} |
156 | 26 |
{% if errors %} |
27 |
{% for error in errors %} |
|
28 |
{{error}}<br /> |
|
29 |
{% endfor %} |
|
30 |
{% endif %} |
|
31 |
||
32 |
<hr /> |
|
33 |
Please note that you can claim only once and so write your proposal carefully.<br /> |
|
34 |
Claim proposal:<br /> |
|
35 |
<form action="" method="post"> |
|
36 |
<textarea name="message"></textarea><br /> |
|
37 |
<input type="submit" value="Submit Claim"> |
|
38 |
</form> |
|
25
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
39 |
{% endif %} |
c0e4fc8b8b5b
added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff
changeset
|
40 |
{% endblock %} |