From ffd86e5d07602946705b31f4e9eec631d90de0d1 Mon Sep 17 00:00:00 2001
From: Thomas Bernard <thomas@nexedi.com>
Date: Fri, 30 Jun 2006 12:41:15 +0000
Subject: [PATCH] 2006-06-30 Thomas * Now checking if the current form holds a
 planningbox to automatically call the render_css method in order to get the
 corressponding css classes and build the structure.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8249 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/template_erp5_xhtml_style.xml   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
index 59a51f28c3..2a8cd0e607 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
@@ -131,6 +131,18 @@ IDEAS:\n
             type="text/css"\n
             rel="stylesheet" />\n
     </tal:block>\n
+    \n
+    <tal:block tal:condition="form/pt | nothing">\n
+      <tal:block tal:define="planning_box python: here.ERP5Site_getPlanningBox(form)">\n
+        <tal:block tal:condition="python: planning_box">\n
+          <tal:block tal:define="dummy python:js_list.append(\'%s/wz_dragdrop.js\' % (here.portal_url.getPortalPath(), ));" />\n
+          <style tal:content="structure python: planning_box.render_css(None,REQUEST=request)"\n
+                 tal:attributes="type python:\'text/css\'">\n
+          </style>\n
+        </tal:block>\n
+      </tal:block>\n
+    </tal:block>\n
+\n
     <tal:block tal:repeat="js js_list">\n
       <script tal:attributes="src js"\n
               type="text/javascript"></script>\n
-- 
2.30.9