templates/task/claim.html
changeset 25 c0e4fc8b8b5b
child 33 0d0ea7b188d5
equal deleted inserted replaced
24:fcae44e94845 25:c0e4fc8b8b5b
       
     1 {% extends 'base.html' %}
       
     2 {% block content %}
       
     3     List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
       
     4     {% for claim in claims %}
       
     5         <hr />
       
     6         <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br />
       
     7         {{claim.message}}<br />
       
     8     {% endfor %}
       
     9     {% if task_claimable and is_mentor %}
       
    10         <a href="/task/assign/tid={{task.id}}">Assign task</a>
       
    11     {% endif %}
       
    12     {% if user_can_claim %}
       
    13     <hr />
       
    14     {% if errors %}
       
    15         {% for error in errors %}
       
    16             {{error}}<br />
       
    17         {% endfor %}
       
    18     {% endif %}
       
    19     Claim the task:<br />
       
    20         <form action="" method="post">
       
    21         <textarea name="message"></textarea><br />
       
    22         <input type="submit" value="Submit Claim">
       
    23         </form>
       
    24     {% endif %}
       
    25 {% endblock %}