Now clicking cancel button returns user to previous page. Fixes issue 569.
[Melange.git] / app / soc / templates / soc / host / manage.html
blob242944a5909b2092c7b723b74a4ff21f6d8f84ab
1 {% extends "soc/host/public.html" %}
2 {% comment %}
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
7 http://www.apache.org/licenses/LICENSE-2.0
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 {% endcomment %}
16 {% block header_title %}
17 {{ page_name }} {{ entity.link_id }} for {{ entity.scope_path }}
18 {% endblock %}
20 {% block manage %}
21 <div class="error">{{ resign_error }}</div>
22 <tr>
23 <td>
24 Please select the appropriate action:</br>
25 <input type="button" onclick="location.href='/{{ url_name }}/manage/{{ entity.scope_path }}/{{ entity.link_id }}?resign=true'" value="Resign"/>
26 {% if cancel_redirect %}
27 <input type="button"
28 {% if entity %}
29 onclick="location.href='{{ cancel_redirect }}'"
30 {% else %}
31 onClick="javascript: history.go(-1)">
32 {% endif %}
33 value="Cancel"/>
34 {% else %}
35 <input type="button" value="Back to Previous Page" onClick="javascript:history.go(-1)">
36 {% endif %}
37 </td>
38 </tr>
39 {% endblock %}