15 {% load forms_helpers %} |
15 {% load forms_helpers %} |
16 |
16 |
17 {% block body %} |
17 {% block body %} |
18 <p> |
18 <p> |
19 <div="text"> |
19 <div="text"> |
20 {% ifequal request_status "new" %} |
20 {% ifnotequal request_status "group_accepted" %} |
21 This is the request from <b>{{ user_in_request.name }}({{ entity.link_id }})</b> |
21 This is the request from <b>{{ entity.user.name }}({{ entity.user.link_id }})</b> |
22 to become a <b>{{ entity.role_verbose }}</b> for <b>{{entity.scope.name }}</b>.</br> |
22 to become a <b>{{ role_verbose }}</b> for <b>{{entity.group.name }}</b>.</br> |
23 Please select your response by using the buttons below. |
23 Please select your response by using the buttons below. |
24 </div> |
24 </div> |
25 </p> |
25 </p> |
26 |
26 |
27 <table> |
27 <table> |
28 <tr> |
28 <tr> |
29 <td> |
29 <td> |
30 <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=group_accepted'" value="Accept"/> |
30 <input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=group_accepted'" value="Accept"/> |
31 <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=rejected'" value="Reject"/> |
31 <input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=rejected'" value="Reject"/> |
32 <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=ignored'" value="Ignore"/> |
32 <input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=ignored'" value="Ignore"/> |
33 </td> |
33 </td> |
34 </tr> |
34 </tr> |
35 </table> |
35 </table> |
36 {% else %} |
36 {% else %} |
37 <p> |
37 <p> |
38 <div="text"> |
38 <div="text"> |
39 This is the invitation to <b>{{ user_in_request.name }}({{ entity.link_id }})</b> to become a |
39 This is the invitation to <b>{{ entity.user.name }}({{ entity.user.link_id }})</b> to become a |
40 <b>{{ entity.role_verbose }}</b> for <b>{{entity.scope.name }}</b>.<br/> |
40 <b>{{ role_verbose }}</b> for <b>{{entity.group.name }}</b>.<br/> |
41 If you would like to withdraw this invite please press the withdraw button below. |
41 If you would like to withdraw this invite please press the withdraw button below. |
42 </div> |
42 </div> |
43 </p> |
43 </p> |
44 |
44 |
45 <table> |
45 <table> |
46 <tr> |
46 <tr> |
47 <td> |
47 <td> |
48 <input type="button" onclick="location.href='/{{ role_name }}/process_request/{{ entity.scope_path }}/{{ entity.link_id }}?status=rejected'" value="Withdraw"/> |
48 <input type="button" onclick="location.href='/{{ url_name }}/process_request/{{ entity.key.id_or_name }}?status=rejected'" value="Withdraw"/> |
49 <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)"> |
49 <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)"> |
50 </td> |
50 </td> |
51 </tr> |
51 </tr> |
52 </table> |
52 </table> |
53 {% endifequal %} |
53 {% endifnotequal %} |
54 {% endblock body %} |
54 {% endblock body %} |