templates/user/view_request.html
author nishanth
Thu, 04 Mar 2010 17:29:00 +0530
changeset 199 946d0fe60606
parent 196 2759d422ad89
child 218 59107ce0a618
permissions -rw-r--r--
now a notification is sent to all the mentors after there is a new claim.
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 %}
133
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     3
    {% if newest %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     4
        <a href="/user/requests/rid={{newest.id}}">&lt;&lt;newest</a>
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     5
    {% endif %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     6
    {% if newer %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     7
        <a href="/user/requests/rid={{newer.id}}">&lt;newer</a>
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     8
    {% endif %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
     9
    {% if older %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    10
        <a href="/user/requests/rid={{older.id}}">older&gt;</a>
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    11
    {% endif %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    12
    {% if oldest %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    13
        <a href="/user/requests/rid={{oldest.id}}">oldest&gt;&gt;</a>
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    14
    {% endif %}
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    15
    <br />
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    16
    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
    17
    To: 
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    18
    {% for to_user in sent_users %}
133
34187a80d279 added next and previous capabilities to requests and notifications.
nishanth
parents: 107
diff changeset
    19
        <a href="/user/view/uid={{to_user.id}}">{{to_user.username}}</a>&nbsp;
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    20
    {% endfor %}
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    21
    <br />
196
2759d422ad89 fixed the time display bug in view_request template.
nishanth
parents: 164
diff changeset
    22
    sent on {{req.sent_date|date:"D d M Y"}} at {{req.sent_date|time:"H:i"}}<br />
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    23
    Message: <br />
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    24
    {% ifequal "PY" req.role %}
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    25
        <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
    26
        <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
    27
        <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br />
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    28
    {% else %}    
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    29
    
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    30
        {% ifequal "MT" req.role %}
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    31
            <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested you to act as a mentor for the task
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    32
            <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
    33
        {% else %}
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    34
            You have been requested to act as 
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    35
            {% ifequal "AD" req.role %}
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    36
                an Admin
107
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    37
            {% else %}
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    38
                {% ifequal "MG" req.role %}
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    39
                    a Manager
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    40
                {% else %}
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    41
                    a Developer
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    42
                {% endifequal %}
107
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    43
            {% endifequal %}
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    44
            for the website by <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a>.<br />
107
4903b4973fc8 completed the process_request part.
nishanth
parents: 106
diff changeset
    45
        {% endifequal %}
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    46
    {% endifequal %}
164
bfe621e64a16 modified the look of browse_requests page task_view page and view_request page.
nishanth
parents: 134
diff changeset
    47
    <br />
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    48
    
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    49
    Please accept or reject the request.<br />
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    50
    <form action="yes/" method="post">
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    51
        <input value="Accept" type="submit">
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    52
    </form>
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    53
    <form action="no/" method="post">
104
d1bdd5d6c1a6 added the field remarks in request model.
nishanth
parents: 86
diff changeset
    54
        Remarks: <input type="text" name="remarks">
106
3c3ea2a3f92a now view request shows a better message if role is MT .
nishanth
parents: 104
diff changeset
    55
        <input value="Reject" type="submit">
86
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    56
    </form>
fcbdf372857c modified requests to match the new model.
nishanth
parents: 83
diff changeset
    57
    <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
    58
    
83
fd2e1bd7af82 added accept_assign_credits request
nishanth
parents:
diff changeset
    59
{% endblock %}