Restored default Sponsor edit view
authorSverre Rabbelier <srabbelier@gmail.com>
Sun, 16 Nov 2008 15:50:57 +0000
changeset 488 ec8802961afb
parent 487 1a7591ff0051
child 489 35fbec27f6cb
Restored default Sponsor edit view
app/soc/templates/soc/group/edit.html
app/soc/templates/soc/sponsor/edit.html
--- a/app/soc/templates/soc/group/edit.html	Sun Nov 16 15:50:29 2008 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-{% extends "soc/base.html" %}
-{% comment %}
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% load forms_helpers %}
-{% block scripts %}
-	<script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
-{% endblock %}
-
-{% block body %}
-<p>
-<p>
-{% block instructions %}
-Please use this form to alter {{ entity_type }} details.
-{% endblock %}
-</p>
-<form method="POST">
- <table>
-    {% field_as_table_row form.name %}
-    {% field_as_table_row form.link_name %}
-    {% field_as_table_row form.short_name %}
-    {% if form.created_by %}
-    {% field_as_table_row form.created_by %}
-    {% endif %}
-    {% field_as_table_row form.home_page %}
-    {% field_as_table_row form.email %}
-    {% field_as_table_row form.description %}
-    {% field_as_table_row form.street %}
-    {% field_as_table_row form.city %}
-    {% field_as_table_row form.state %}
-    {% field_as_table_row form.country %}
-    {% field_as_table_row form.postalcode %}
-    {% field_as_table_row form.phone %}
-  <tr>
-   <td colspan="4">&nbsp;</td>
-  </tr>
-  <table>
-  <table>
-    <tr>
-    {% block submit_buttons %}
-   <td> 
-    <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
-   </td>
-   <td>
-    <input type="button" onclick="location.href='/'" value="Cancel"/>
-   </td>
-    {% endblock %}
-  </tr>
- </table>
-</form>
-</p>
-{% endblock %}
--- a/app/soc/templates/soc/sponsor/edit.html	Sun Nov 16 15:50:29 2008 +0000
+++ b/app/soc/templates/soc/sponsor/edit.html	Sun Nov 16 15:50:57 2008 +0000
@@ -1,4 +1,4 @@
-{% extends "soc/group/edit.html" %}
+{% extends "soc/models/edit.html" %}
 {% comment %}
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
@@ -12,17 +12,7 @@
 See the License for the specific language governing permissions and
 limitations under the License.
 {% endcomment %}
+
 {% block submit_buttons %}
 {{ block.super }}
-{% if entity %}
-<td>
- <input type="button" onclick="location.href='/{{ entity_type_short|lower }}/delete/{{ entity.link_name }}'" value="Delete"/>
-</td>
-{% endif %}
 {% endblock %}
-{% block body %}
-{{ block.super }}
-{% if entity %}
-<p><a href="/{{ entity_type_short|lower }}/show/{{ entity.link_name }}">View Sponsor Public Profile</a></p>
-{% endif %}
-{% endblock %}
\ No newline at end of file