Make the user/edit.html template derive from soc/models/edit.html
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 28 Jan 2009 14:16:46 +0000
changeset 1034 d6a9fef4c1a4
parent 1033 71ff49dbb4b6
child 1035 04229d710ce9
Make the user/edit.html template derive from soc/models/edit.html Patch by: Sverre Rabbelier
app/soc/templates/soc/user/edit.html
--- a/app/soc/templates/soc/user/edit.html	Wed Jan 28 14:15:00 2009 +0000
+++ b/app/soc/templates/soc/user/edit.html	Wed Jan 28 14:16:46 2009 +0000
@@ -1,4 +1,4 @@
-{% extends "soc/base.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.
@@ -14,27 +14,7 @@
 {% endcomment %}
 {% load forms_helpers %}
 
-{% block scripts %}
-	<script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
-{% endblock %}
-{% block header_title %}
-{{ page_name }}
- {% if entity %}
-   <!-- TODO(srabbelier) use a generic entity name as link -->
-   <a href="/{{ entity_type_url|lower }}/show/{{ entity_suffix }}"
->{% if entity.name %}{{ entity.name }} {% endif %}(public view)</a>
- {% endif %}
-{% endblock %}
-
-{% block body %}
-<p>
-<p>
-{% block instructions %}
-Please use this form to edit the {{ entity_type }}.
-{% endblock %}
-</p>
-<form method="POST">
- <table>
+{% block form_table %}
   {% as_table form %}
   {% if entity.former_accounts %}
   <tr>
@@ -48,27 +28,4 @@
    <td class="formfieldhelptext">&nbsp;</td>
   </tr>
   {% endif %}
-  <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>
-   {% if entity %}
-   <td>
-    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}'" value="Delete"/>
-   </td>
-   {% endif %}
-   {% endblock %}
-  </tr>
- </table>
-</form>
-</p>
-{% endblock %}
\ No newline at end of file
+{% endblock %}