templates/user/view_request.html
author nishanth
Thu, 25 Feb 2010 23:49:38 +0530
changeset 104 d1bdd5d6c1a6
parent 86 fcbdf372857c
child 106 3c3ea2a3f92a
permissions -rw-r--r--
added the field remarks in request model.

{% 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 />
        Please click yes/no<br />
    {% else %}
    {% endifequal %}
    
    <form action="yes/" method="post">
        <input value="Yes" type="submit">
    </form>
    <form action="no/" method="post">
        Remarks: <input type="text" name="remarks">
        <input value="No" type="submit">
    </form>
    <a href="/user/requests/">Click here</a> to return to the requests page.
    
{% endblock %}