From c92b84dc2032b0ae01e01b137b91bbb297ff3b70 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Mon, 24 Apr 2006 12:41:30 +0000
Subject: [PATCH] Add developper buttons in form_list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6891 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_html_style/form_list.xml     | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
index 769191c342..b5ccc8162c 100644
--- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
+++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
@@ -44,6 +44,12 @@
               </object>
             </value>
         </item>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
         <item>
             <key> <string>_text</string> </key>
             <value> <string encoding="cdata"><![CDATA[
@@ -93,17 +99,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
 \n
   <body>\n
 <div metal:fill-slot="main">\n
-          <div class="Main">\n
+  <div class="Main">\n
+    <tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
 <span tal:define="groups python: form.get_groups(include_empty=1);\n
                   field_errors python: request.get(\'field_errors\',{});\n
                   dummy python: request.set(\'here\',here)">\n
-  <span tal:condition="python: len(groups)>0">\n
+  <tal:block tal:condition="python: len(groups)>0">\n
     <span tal:repeat="field python:form.get_fields_in_group(groups[0])">\n
+      <tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
       <div class="FormDescription" tal:content="python:field.get_value(\'description\')"></div>\n
       <span tal:define="value python:request.get(field.id,None)"\n
         tal:replace="structure python:field.render(value,request)" />\n
     </span>\n
-  </span>\n
+  </tal:block>\n
 </span>\n
           </div>\n
       </div>\n
-- 
2.30.9