author | Lennard de Rijk <ljvderijk@gmail.com> |
Mon, 26 Oct 2009 10:25:01 -0700 | |
changeset 3062 | 4b5a7e5746a0 |
parent 3048 | b89af35c74d3 |
permissions | -rw-r--r-- |
962
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
1 |
{% extends "soc/base.html" %} |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
2 |
{% comment %} |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
3 |
Licensed under the Apache License, Version 2.0 (the "License"); |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
4 |
you may not use this file except in compliance with the License. |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
5 |
You may obtain a copy of the License at |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
6 |
|
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
7 |
http://www.apache.org/licenses/LICENSE-2.0 |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
8 |
|
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
9 |
Unless required by applicable law or agreed to in writing, software |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
10 |
distributed under the License is distributed on an "AS IS" BASIS, |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
11 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
12 |
See the License for the specific language governing permissions and |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
13 |
limitations under the License. |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
14 |
{% endcomment %} |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
15 |
{% load forms_helpers %} |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
16 |
|
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
17 |
{% block body %} |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
18 |
<p> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
19 |
<div="text"> |
3048
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
20 |
{% ifnotequal request_status "group_accepted" %} |
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
21 |
This is the request from <b>{{ entity.user.name }}({{ entity.user.link_id }})</b> |
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
22 |
to become a <b>{{ role_verbose }}</b> for <b>{{entity.group.name }}</b>.</br> |
3062
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
23 |
|
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
24 |
{% if entity.message %} |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
25 |
<p> |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
26 |
<i>Request Message:</i> |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
27 |
{{ entity.message|linebreaks }} |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
28 |
</p> |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
29 |
{% endif %} |
4b5a7e5746a0
Now showing the message contained in Requests on the correct pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
3048
diff
changeset
|
30 |
|
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
31 |
Please select your response by using the buttons below. |
962
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
32 |
</div> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
33 |
</p> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
34 |
|
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
35 |
<table> |
962
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
36 |
<tr> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
37 |
<td> |
3048
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
38 |
<input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=group_accepted'" value="Accept"/> |
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
39 |
<input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=rejected'" value="Reject"/> |
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
40 |
<input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=ignored'" value="Ignore"/> |
962
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
41 |
</td> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
42 |
</tr> |
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
43 |
</table> |
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
44 |
{% else %} |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
45 |
<p> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
46 |
<div="text"> |
3048
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
47 |
This is the invitation to <b>{{ entity.user.name }}({{ entity.user.link_id }})</b> to become a |
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
48 |
<b>{{ role_verbose }}</b> for <b>{{entity.group.name }}</b>.<br/> |
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
49 |
If you would like to withdraw this invite please press the withdraw button below. |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
50 |
</div> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
51 |
</p> |
962
606871fda11c
Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
52 |
|
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
53 |
<table> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
54 |
<tr> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
55 |
<td> |
3048
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
56 |
<input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=rejected'" value="Withdraw"/> |
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
57 |
<input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)"> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
58 |
</td> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
59 |
</tr> |
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
60 |
</table> |
3048
b89af35c74d3
Redone the request templates to work with the new ID-based request.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2748
diff
changeset
|
61 |
{% endifnotequal %} |
1756
0a332ff872bf
The process_request template now properly differentiate between a request in "new" and "group_accepted" state.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
1085
diff
changeset
|
62 |
{% endblock body %} |