templates/user/view_request.html
changeset 106 3c3ea2a3f92a
parent 104 d1bdd5d6c1a6
child 107 4903b4973fc8
equal deleted inserted replaced
105:091b044a3bf4 106:3c3ea2a3f92a
     9     Message: <br />
     9     Message: <br />
    10     {% ifequal "PY" req.role %}
    10     {% ifequal "PY" req.role %}
    11         <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to 
    11         <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to 
    12         <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task
    12         <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task
    13         <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
    13         <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
    14         Please click yes/no<br />
    14     {% endifequal %}    
    15     {% else %}
    15     
       
    16     {% ifequal "MT" req.role %}
       
    17         <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested you to act as a mentor for the task
       
    18         <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
    16     {% endifequal %}
    19     {% endifequal %}
    17     
    20     
       
    21     Please accept or reject the request.<br />
    18     <form action="yes/" method="post">
    22     <form action="yes/" method="post">
    19         <input value="Yes" type="submit">
    23         <input value="Accept" type="submit">
    20     </form>
    24     </form>
    21     <form action="no/" method="post">
    25     <form action="no/" method="post">
    22         Remarks: <input type="text" name="remarks">
    26         Remarks: <input type="text" name="remarks">
    23         <input value="No" type="submit">
    27         <input value="Reject" type="submit">
    24     </form>
    28     </form>
    25     <a href="/user/requests/">Click here</a> to return to the requests page.
    29     <a href="/user/requests/">Click here</a> to return to the requests page.
    26     
    30     
    27 {% endblock %}
    31 {% endblock %}