templates/user/view_request.html
author nishanth
Fri, 26 Feb 2010 01:23:17 +0530
changeset 108 131554cc3434
parent 107 4903b4973fc8
child 133 34187a80d279
permissions -rw-r--r--
updated show_msg method to also use the user variable in the context.

{% extends 'base.html' %}
{% block content %}
    From:&nbsp; <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a><br />
    To: 
    {% for to_user in sent_users %}
        <a href="/user/view/uid={{to_user.id}}">{{to_user.username}}</a>,&nbsp;
    {% endfor %}
    <br />
    Message: <br />
    {% ifequal "PY" req.role %}
        <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to 
        <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task
        <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
    {% endifequal %}    
    
    {% ifequal "MT" req.role %}
        <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested you to act as a mentor for the task
        <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
    {% else %}
        You have been requested to act as 
        {% ifequal "AD" req.role %}
            an Admin
        {% else %}
            {% ifequal "MG" req.role %}
                a Manager
            {% else %}
                a Developer
            {% endifequal %}
        {% endifequal %}
        for the website by <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a>.<br />
    {% endifequal %}
    
    Please accept or reject the request.<br />
    <form action="yes/" method="post">
        <input value="Accept" type="submit">
    </form>
    <form action="no/" method="post">
        Remarks: <input type="text" name="remarks">
        <input value="Reject" type="submit">
    </form>
    <a href="/user/requests/">Click here</a> to return to the requests page.
    
{% endblock %}