templates/user/view_request.html
author nishanth
Fri, 26 Feb 2010 17:49:26 +0530
changeset 122 daee11bdfbaa
parent 107 4903b4973fc8
child 133 34187a80d279
permissions -rw-r--r--
now rid is not the position argument. it is request id.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     2
{% block content %}
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
     3
    From:&nbsp; <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a><br />
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     4
    To: 
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     5
    {% for to_user in sent_users %}
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     6
        <a href="/user/view/uid={{to_user.id}}">{{to_user.username}}</a>,&nbsp;
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     7
    {% endfor %}
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     8
    <br />
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
     9
    Message: <br />
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    10
    {% ifequal "PY" req.role %}
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    11
        <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to 
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    12
        <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    13
        <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    14
    {% endifequal %}    
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    15
    
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    16
    {% ifequal "MT" req.role %}
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    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
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    18
        <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
107
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    19
    {% else %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    20
        You have been requested to act as 
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    21
        {% ifequal "AD" req.role %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    22
            an Admin
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    23
        {% else %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    24
            {% ifequal "MG" req.role %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    25
                a Manager
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    26
            {% else %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    27
                a Developer
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    28
            {% endifequal %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    29
        {% endifequal %}
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    30
        for the website by <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a>.<br />
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    31
    {% endifequal %}
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    32
    
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    33
    Please accept or reject the request.<br />
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    34
    <form action="yes/" method="post">
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    35
        <input value="Accept" type="submit">
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    36
    </form>
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    37
    <form action="no/" method="post">
104
d1bdd5d6c1a6 added the field remarks in request model.
nishanth
parents: 86
diff changeset
    38
        Remarks: <input type="text" name="remarks">
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    39
        <input value="Reject" type="submit">
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    40
    </form>
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    41
    <a href="/user/requests/">Click here</a> to return to the requests page.
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    42
    
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    43
{% endblock %}