Commit 5b7347b9 authored by Romain Courteaud's avatar Romain Courteaud

Improve zpt code.

Thanks to Vincent.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15143 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c9b19d3
...@@ -100,23 +100,18 @@ IDEAS:\n ...@@ -100,23 +100,18 @@ IDEAS:\n
<!-- Render each field\'s css and javascript. -->\n <!-- Render each field\'s css and javascript. -->\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: form is not None">\n <tal:block tal:condition="python: form is not None">\n
<tal:block tal:repeat="group python: form.Form_getGroupTitleAndId()">\n <tal:block tal:repeat="group python: [x for x in form.get_groups(include_empty=0) if x != \'hidden\']">\n
<tal:block tal:define="gid group/gid;">\n <tal:block tal:repeat="field python: form.get_fields_in_group(group)">\n
<tal:block tal:condition="python: gid.find(\'hidden\') < 0">\n
<tal:block tal:repeat="field python: form.get_fields_in_group(group[\'goid\'])">\n
\n \n
<tal:block tal:define="css python: field.render_css(REQUEST=request)">\n <tal:block tal:define="css python: field.render_css(REQUEST=request)">\n
<tal:block tal:condition="python: css is not None">\n <style tal:condition="python: css is not None" \n
<style tal:content="css"\n tal:content="css"\n
tal:attributes="type python:\'text/css\'">\n tal:attributes="type python:\'text/css\'">\n
</style>\n </style>\n
</tal:block>\n </tal:block>\n
</tal:block>\n
\n \n
<tal:block tal:define="dummy python: js_list.extend(field.get_javascript_list(REQUEST=request))" />\n <tal:block tal:define="dummy python: js_list.extend(field.get_javascript_list(REQUEST=request))" />\n
\n \n
</tal:block>\n
</tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
......
395 396
\ No newline at end of file \ No newline at end of file
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