templates/task/claim.html
branchbuildout
changeset 227 3c8f3b0e5b00
parent 214 679c7e237052
child 228 81994e525e69
equal deleted inserted replaced
214:679c7e237052 227:3c8f3b0e5b00
     1 {% extends 'base.html' %}
       
     2 {% block content %}
       
     3     {% if user_can_claim %}
       
     4         Propose a claim to work on this task.<sup><a href="/about/claimtask/" target="_blank">learn more</a></sup><br /><br />
       
     5     {% endif %}
       
     6     {% if claims %}
       
     7         List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
       
     8         {% for claim in claims %}
       
     9             <hr />
       
    10             <a href="/user/view/uid={{claim.sent_from.id}}">{{claim.sent_from.username}}</a>
       
    11             on {{claim.sent_date|date:"D d M Y"}} at {{claim.sent_date|time:"H:i"}} wrote:<br />
       
    12             {{claim.remarks}}<br />
       
    13         {% endfor %}
       
    14     {% else %}
       
    15         {% if task_claimable %}
       
    16             There are no claims for this task yet.<br />
       
    17             {% if user_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_mentor %}
       
    26         <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a><sup><a href="/about/assigntask/" target="_blank">learn more</a></sup>
       
    27     {% endif %}
       
    28     {% if user_can_claim %}
       
    29     <!--
       
    30         {% if errors %}
       
    31             {% for error in errors %}
       
    32                 {{error}}<br />
       
    33             {% endfor %}
       
    34         {% endif %}
       
    35         
       
    36         <hr />
       
    37         Claim proposal:<br />
       
    38             <form action="" method="post">
       
    39             <textarea name="message"></textarea><br />
       
    40             <input type="submit" value="Submit Claim"><br />
       
    41             
       
    42             </form>
       
    43         -->
       
    44         <hr />
       
    45         <form action="" method="post">
       
    46         {{form.as_p}}
       
    47         <input type="submit" value="Submit Claim"><br />
       
    48         Please note that you can claim only once and so write your proposal carefully.<br />
       
    49         </form>
       
    50     {% endif %}
       
    51 
       
    52 {% endblock %}