author | nishanth |
Sun, 28 Feb 2010 02:07:51 +0530 | |
changeset 134 | 3a49a7e23442 |
parent 133 | 34187a80d279 |
child 164 | bfe621e64a16 |
permissions | -rw-r--r-- |
83 | 1 |
{% extends 'base.html' %} |
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}}"><<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}}"><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></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>></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 | 16 |
From: <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a><br /> |
83 | 17 |
To: |
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> |
83 | 20 |
{% endfor %} |
21 |
<br /> |
|
134
3a49a7e23442
added filter on time for view task request notification.
nishanth
parents:
133
diff
changeset
|
22 |
sent on {{notification.sent_date|date:"D d M Y"}} at {{notification.sent_date|time:"H:i"}}<br /> |
83 | 23 |
Message: <br /> |
24 |
{% ifequal "PY" req.role %} |
|
86 | 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 |
|
83 | 27 |
<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
|
28 |
{% endifequal %} |
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
29 |
|
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
30 |
{% ifequal "MT" req.role %} |
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
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 |
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
32 |
<a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br /> |
107 | 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 /> |
|
83 | 45 |
{% endifequal %} |
46 |
||
106
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
47 |
Please accept or reject the request.<br /> |
86 | 48 |
<form action="yes/" method="post"> |
106
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
49 |
<input value="Accept" type="submit"> |
86 | 50 |
</form> |
51 |
<form action="no/" method="post"> |
|
104 | 52 |
Remarks: <input type="text" name="remarks"> |
106
3c3ea2a3f92a
now view request shows a better message if role is MT .
nishanth
parents:
104
diff
changeset
|
53 |
<input value="Reject" type="submit"> |
86 | 54 |
</form> |
55 |
<a href="/user/requests/">Click here</a> to return to the requests page. |
|
56 |
||
83 | 57 |
{% endblock %} |