templates/task/claim.html
changeset 163 c4cb937b8e7f
parent 162 d378eff02f2e
child 204 fa1da06d25c9
equal deleted inserted replaced
162:d378eff02f2e 163:c4cb937b8e7f
     1 {% extends 'base.html' %}
     1 {% extends 'base.html' %}
     2 {% block content %}
     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 %}
     3     {% if claims %}
     6     {% if claims %}
     4         List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
     7         List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
     5         {% for claim in claims %}
     8         {% for claim in claims %}
     6             <hr />
     9             <hr />
     7             <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a>
    10             <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a>
    18             The task cannot be claimed at this stage.<br />
    21             The task cannot be claimed at this stage.<br />
    19         {% endif %}
    22         {% endif %}
    20         <a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br />
    23         <a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br />
    21     {% endif %}
    24     {% endif %}
    22     {% if task_claimed and is_mentor %}
    25     {% if task_claimed and is_mentor %}
    23         <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a>
    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>
    24     {% endif %}
    27     {% endif %}
    25     {% if user_can_claim %}
    28     {% if user_can_claim %}
    26         {% if errors %}
    29         {% if errors %}
    27             {% for error in errors %}
    30             {% for error in errors %}
    28                 {{error}}<br />
    31                 {{error}}<br />
    29             {% endfor %}
    32             {% endfor %}
    30         {% endif %}
    33         {% endif %}
    31         
    34         
    32         <hr />
    35         <hr />
    33         Please note that you can claim only once and so write your proposal carefully.<br />
       
    34         Claim proposal:<br />
    36         Claim proposal:<br />
    35             <form action="" method="post">
    37             <form action="" method="post">
    36             <textarea name="message"></textarea><br />
    38             <textarea name="message"></textarea><br />
    37             <input type="submit" value="Submit Claim">
    39             <input type="submit" value="Submit Claim"><br />
       
    40             Please note that you can claim only once and so write your proposal carefully.<br />
    38             </form>
    41             </form>
    39     {% endif %}
    42     {% endif %}
    40 {% endblock %}
    43 {% endblock %}