pytask/templates/task/claim.html
changeset 18 293692eb8f06
equal deleted inserted replaced
15:c6038cbf8a39 18:293692eb8f06
       
     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 %}