[Erp5-report] r8249 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 30 14:41:18 CEST 2006


Author: thomas
Date: Fri Jun 30 14:41:15 2006
New Revision: 8249

URL: http://svn.erp5.org?rev=8249&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml?rev=8249&r1=8248&r2=8249&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml Fri Jun 30 14:41:15 2006
@@ -131,6 +131,18 @@
             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




More information about the Erp5-report mailing list