templates/task/addmentor.html
changeset 163 c4cb937b8e7f
parent 151 d0cb85ba462a
child 191 3bfe70742aa8
equal deleted inserted replaced
162:d378eff02f2e 163:c4cb937b8e7f
     1 {% extends 'base.html' %}
     1 {% extends 'base.html' %}
     2 {% block content %}
     2 {% block content %}
     3     <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.
     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 mentor for the task sends him a request. If he accepts the request, he will also be the mentor for this task
       
     5     {% ifequal task.status "UP" %}
       
     6         and can view/edit<sup><a href="/about/edittask/" 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/mentorrights/" target="_blank">learn more</a></sup> you posses over the task.
       
     9     {% endifequal %}
       
    10     <br />
       
    11     <br />
     4     <form action="" method="post">
    12     <form action="" method="post">
     5     {{form.as_table}}
    13     {{form.as_table}}
     6     <input type="submit" value="submit">
    14     <input type="submit" value="Submit">
     7     </form>
    15     </form>
     8     {% if pending_requests %}
    16     {% if pending_requests %}
     9         Pending requests:<br />
    17         Pending requests:<br />
    10         {% for req in pending_requests %}
    18         {% for req in pending_requests %}
    11             <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested 
    19             <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested