templates/task/addmentor.html
changeset 236 39f83b4cf557
parent 235 e338eaeccad7
equal deleted inserted replaced
235:e338eaeccad7 236:39f83b4cf557
     1 {% extends 'base.html' %}
       
     2 {% block content %}
       
     3     <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /><br />
       
     4     Requesting a user to act as a reviewer for the task sends him a request. If he accepts the request, he will also be the reviewer for this task
       
     5     {% ifequal task.status "UP" %}
       
     6         and can view/edit<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task.
       
     7     {% else %}
       
     8         and will have all the rights<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> you posses over the task.
       
     9     {% endifequal %}
       
    10     <br />
       
    11     <br />
       
    12     <form action="" method="post">
       
    13     {{form.as_table}}
       
    14     <input type="submit" value="Submit">
       
    15     </form>
       
    16     {% if pending_requests %}
       
    17         Pending requests:<br />
       
    18         {% for req in pending_requests %}
       
    19             <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested 
       
    20             {% for a_user in req.sent_to.all %}
       
    21                 <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a reviewer
       
    22             {% endfor %}
       
    23             on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
       
    24         {% endfor %}
       
    25     {% endif %}
       
    26 {% endblock %}