1 {% extends
"soc/base.html" %}
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.
15 {% load forms_helpers %}
17 {% block header_title %}
20 <a href=
"/{{ entity_type_url|lower }}/show/{{ entity.key.id_or_name }}"
21 >{% if entity.name %}{{ entity.name }} {% endif %}(public view)
</a>
28 {% block instructions %}
29 Please use this form to edit the {{ entity_type }}.
33 {% if error_message %}
34 <div class=
"error">{{ error_message|safe }}
</div>
39 {% block form_table %}
45 <td colspan=
"4"> </td>
48 {% block submit_buttons %}
49 {% block save_button %}
52 <input style=
"font-weight: bold" type=
"submit" value=
"Save Changes"/></span>
56 <input style=
"font-weight: bold" type=
"submit" value=
"Submit"/></span>
61 {% if cancel_redirect %}
64 onclick=
"location.href='{{ cancel_redirect }}'"
66 onClick=
"javascript: history.go(-1)">
70 <input type=
"button" value=
"Back to Previous Page" onClick=
"javascript:history.go(-1)">
74 {% block delete_button %}
77 <input type=
"button" class=
"button" value=
"Delete"
78 onclick=
"if(confirm('Are you sure you want to delete this {{ entity_type }}?')) {
79 location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}';
86 <input type=
"button" onclick=
"location.href='/{{ entity_type_url|lower }}/export/{{ entity_suffix }}'" value=
"Export"/>