app/soc/templates/soc/request/process_request.html
author Lennard de Rijk <ljvderijk@gmail.com>
Thu, 23 Jul 2009 14:55:29 +0200
changeset 2668 7fd0951332ef
parent 1937 7343876363cd
child 2748 7fbc98f3adde
permissions -rw-r--r--
Use role_name where needed for creating/handling requests. Also added TODO to extend the redirect for further use with the new module system.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 header_title %}
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{{ page_name }} for {{ entity.requester.link_id }}
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
{% endblock %}
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
{% block body %}
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
<p>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
<div="text"> 
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
    24
{% ifequal request_status "new" %}
1937
7343876363cd Added the users' public name to the process_request page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1767
diff changeset
    25
  This is the request from <b>{{ user_in_request.name }}({{ entity.link_id }})</b> 
7343876363cd Added the users' public name to the process_request page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1767
diff changeset
    26
  to become a <b>{{ entity.role_verbose }}</b> for <b>{{entity.scope.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
    27
  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
    28
</div>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
</p>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
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
<table>
962
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    32
<tr>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
  <td>
2668
7fd0951332ef Use role_name where needed for creating/handling requests.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1937
diff changeset
    34
    <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=group_accepted'" value="Accept"/>
7fd0951332ef Use role_name where needed for creating/handling requests.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1937
diff changeset
    35
    <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=rejected'" value="Reject"/>
7fd0951332ef Use role_name where needed for creating/handling requests.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1937
diff changeset
    36
    <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=ignored'" value="Ignore"/>
962
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    37
  </td>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    38
</tr>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    39
</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
    40
{% 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
    41
<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
    42
<div="text"> 
1937
7343876363cd Added the users' public name to the process_request page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1767
diff changeset
    43
  This is the invitation to <b>{{ user_in_request.name }}({{ entity.link_id }})</b> to become a 
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
  <b>{{ entity.role_verbose }}</b> for <b>{{entity.scope.name }}</b>.<br/> 
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
  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
    46
</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
    47
</p>
962
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    48
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
<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
    50
<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
    51
  <td>
2668
7fd0951332ef Use role_name where needed for creating/handling requests.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1937
diff changeset
    52
    <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?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
    53
    <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
    54
  </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
    55
</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
    56
</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
    57
{% endifequal %}
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
{% endblock body %}