templates/task/addmentor.html
changeset 218 59107ce0a618
parent 191 3bfe70742aa8
equal deleted inserted replaced
217:307f699e6102 218:59107ce0a618
     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.<br /><br />
     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
     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" %}
     5     {% ifequal task.status "UP" %}
     6         and can view/edit<sup><a href="/about/mentor/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task.
     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 %}
     7     {% else %}
     8         and will have all the rights<sup><a href="/about/mentor/" target="_blank">learn more</a></sup> you posses over the task.
     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 %}
     9     {% endifequal %}
    10     <br />
    10     <br />
    11     <br />
    11     <br />
    12     <form action="" method="post">
    12     <form action="" method="post">
    13     {{form.as_table}}
    13     {{form.as_table}}
    16     {% if pending_requests %}
    16     {% if pending_requests %}
    17         Pending requests:<br />
    17         Pending requests:<br />
    18         {% for req in pending_requests %}
    18         {% for req in pending_requests %}
    19             <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 
    20             {% for a_user in req.sent_to.all %}
    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 mentor
    21                 <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a reviewer
    22             {% endfor %}
    22             {% endfor %}
    23             on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
    23             on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
    24         {% endfor %}
    24         {% endfor %}
    25     {% endif %}
    25     {% endif %}
    26 {% endblock %}
    26 {% endblock %}