templates/user/view_request.html
changeset 236 39f83b4cf557
parent 235 e338eaeccad7
equal deleted inserted replaced
235:e338eaeccad7 236:39f83b4cf557
     1 {% extends 'base.html' %}
       
     2 {% block content %}
       
     3     {% if newest %}
       
     4         <a href="/user/requests/rid={{newest.id}}">&lt;&lt;newest</a>
       
     5     {% endif %}
       
     6     {% if newer %}
       
     7         <a href="/user/requests/rid={{newer.id}}">&lt;newer</a>
       
     8     {% endif %}
       
     9     {% if older %}
       
    10         <a href="/user/requests/rid={{older.id}}">older&gt;</a>
       
    11     {% endif %}
       
    12     {% if oldest %}
       
    13         <a href="/user/requests/rid={{oldest.id}}">oldest&gt;&gt;</a>
       
    14     {% endif %}
       
    15     <br />
       
    16     From:&nbsp; <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a><br />
       
    17     To: 
       
    18     {% for to_user in sent_users %}
       
    19         <a href="/user/view/uid={{to_user.id}}">{{to_user.username}}</a>&nbsp;
       
    20     {% endfor %}
       
    21     <br />
       
    22     sent on {{req.sent_date|date:"D d M Y"}} at {{req.sent_date|time:"H:i"}}<br />
       
    23     Message: <br />
       
    24     {% ifequal "PY" req.role %}
       
    25         <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to 
       
    26         <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task
       
    27         <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
       
    28     {% else %}    
       
    29     
       
    30         {% ifequal "MT" req.role %}
       
    31             <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested you to act as a reviewer for the task
       
    32             <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
       
    33         {% else %}
       
    34             You have been requested to act as 
       
    35             {% ifequal "AD" req.role %}
       
    36                 an Admin
       
    37             {% else %}
       
    38                 {% ifequal "MG" req.role %}
       
    39                     a Manager
       
    40                 {% else %}
       
    41                     a Developer
       
    42                 {% endifequal %}
       
    43             {% endifequal %}
       
    44             for the website by <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a>.<br />
       
    45         {% endifequal %}
       
    46     {% endifequal %}
       
    47     <br />
       
    48     
       
    49     Please accept or reject the request.<br />
       
    50     <form action="yes/" method="post">
       
    51         <input value="Accept" type="submit">
       
    52     </form>
       
    53     <form action="no/" method="post">
       
    54         Remarks: <input type="text" name="remarks">
       
    55         <input value="Reject" type="submit">
       
    56     </form>
       
    57     <a href="/user/requests/">Click here</a> to return to the requests page.
       
    58     
       
    59 {% endblock %}