Commit ffd86e5d authored by Thomas Bernard's avatar Thomas Bernard

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
parent 6f1a033d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment