# HG changeset patch # User Nishanth Amuluru # Date 1294551847 -19800 # Node ID 124ccd27ed4f3b46052ef8f3d4b82ac957385307 # Parent 181d4eb9f4191ce7ce9312b21069b36a853e34a8 Added the required template diff -r 181d4eb9f419 -r 124ccd27ed4f pytask/templates/task/claim.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/templates/task/claim.html Sun Jan 09 11:14:07 2011 +0530 @@ -0,0 +1,39 @@ +{% extends 'base.html' %} +{% block content %} + {% if can_claim %} + Propose a claim to work on this task.
+ {% endif %} + {% if claims %} + List of all the claims for the task {{task.title}}
+ {% for claim in claims %} +
+ {{claim.claimed_by.username}} + on {{claim.claim_datetime|date:"D d M Y"}} at {{claim.claim_datetime|time:"H:i"}} wrote:
+ {{claim.proposal|linebreaksbr}}
+ {% endfor %} + {% else %} + {% if task_claimable %} + There are no claims for this task yet.
+ {% if can_claim %} + Be the first to claim the task.
+ {% endif %} + {% else %} + The task cannot be claimed at this stage.
+ {% endif %} + Click here to view the task.
+ {% endif %} + {% if task_claimed and is_creator %} + Select a user to assign the work. + {% endif %} + + {% if can_claim %} +
+
+ {% csrf_token %} + {{form.as_p}} +
+ Please note that you can claim only once and so write your proposal carefully.
+
+ {% endif %} + +{% endblock %}