app/soc/templates/soc/request/process_request.html
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 25 Oct 2009 16:28:43 -0700
changeset 3048 b89af35c74d3
parent 2748 7fbc98f3adde
child 3062 4b5a7e5746a0
permissions -rw-r--r--
Redone the request templates to work with the new ID-based request. Changes here also include upcoming View changes.
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 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>
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
    23
  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
    24
</div>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
</p>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    26
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
<table>
962
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    28
<tr>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
  <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
    30
    <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
    31
    <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
    32
    <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
    33
  </td>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
</tr>
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    35
</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
    36
{% 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
    37
<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
    38
<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
    39
  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
    40
  <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
    41
  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
    42
</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
    43
</p>
962
606871fda11c Added request creation and processing to role.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    44
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
    45
<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
    46
<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
    47
  <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
    48
    <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
    49
    <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
    50
  </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
    51
</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
    52
</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
    53
{% 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
    54
{% endblock body %}