Create a submit_buttons blocks in all edit view templates and put submit buttons in separate html table (not as part of the fields table anymore).
authorPawel Solyga <Pawel.Solyga@gmail.com>
Thu, 09 Oct 2008 18:06:50 +0000
changeset 291 5905c8e97e68
parent 290 2a92b866ed40
child 292 1cece5192e26
Create a submit_buttons blocks in all edit view templates and put submit buttons in separate html table (not as part of the fields table anymore). Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/templates/soc/group/profile/edit.html
app/soc/templates/soc/site/docs/edit.html
app/soc/templates/soc/site/home/edit.html
app/soc/templates/soc/site/user/profile/edit.html
app/soc/templates/soc/user/profile/edit.html
--- a/app/soc/templates/soc/group/profile/edit.html	Thu Oct 09 15:10:51 2008 +0000
+++ b/app/soc/templates/soc/group/profile/edit.html	Thu Oct 09 18:06:50 2008 +0000
@@ -56,7 +56,9 @@
   <tr>
    <td colspan="4">&nbsp;</td>
   </tr>
-  <tr>
+  <table>
+  <table>
+    <tr>
     {% block submit_buttons %}
    <td> 
     <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
--- a/app/soc/templates/soc/site/docs/edit.html	Thu Oct 09 15:10:51 2008 +0000
+++ b/app/soc/templates/soc/site/docs/edit.html	Thu Oct 09 18:06:50 2008 +0000
@@ -45,13 +45,17 @@
   <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>
--- a/app/soc/templates/soc/site/home/edit.html	Thu Oct 09 15:10:51 2008 +0000
+++ b/app/soc/templates/soc/site/home/edit.html	Thu Oct 09 18:06:50 2008 +0000
@@ -36,15 +36,18 @@
   <tr>
    <td colspan="4">&nbsp;</td>
   </tr>
-  <tr>
-   <td> 
-    <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
-   </td>
-   <td>
-    <input type="button" onclick="location.href='/'" value="Cancel"/>
-   </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/site/user/profile/edit.html	Thu Oct 09 15:10:51 2008 +0000
+++ b/app/soc/templates/soc/site/user/profile/edit.html	Thu Oct 09 18:06:50 2008 +0000
@@ -68,20 +68,23 @@
   <tr>
    <td colspan="4">&nbsp;</td>
   </tr>
-  <tr>
-   <td> 
-    <input type="submit" style="font-weight: bold" name="save" value="Save Changes"/></span>
-   </td>
-   <td>
-    <input type="button" onclick="location.href='/'" value="Cancel"/>
-   </td>
-{% if submit_error %}
-   <td class="formfielderror">
-    {{ submit_error }}
-   </td>
-{% endif %}
-  </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 submit_error %}
+       <td class="formfielderror">
+        {{ submit_error }}
+       </td>
+    {% endif %}
+    {% endblock %}
+   </tr>
+  </table>
 </form>
 </p>
 {% endblock %}
--- a/app/soc/templates/soc/user/profile/edit.html	Thu Oct 09 15:10:51 2008 +0000
+++ b/app/soc/templates/soc/user/profile/edit.html	Thu Oct 09 18:06:50 2008 +0000
@@ -35,13 +35,17 @@
   <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>