Commit 1826e015 authored by Vincent Pelletier's avatar Vincent Pelletier

Some more fixes to be less sensitive to case in form groups when rendered with layouts.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6115 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2d82a7d
......@@ -83,12 +83,13 @@
</tal:block>\n
<tal:block tal:condition="editable_mode" tal:repeat="group python: form.get_groups()">\n
<div tal:attributes="class group">\n
<table tal:condition="python: \'content\' not in group">\n
<table tal:condition="python: \'content\' not in group.lower() and \'bottom\' not in group.lower()">\n
<tal:block tal:repeat="field python:form.get_fields_in_group(group)">\n
<tal:block metal:use-macro="here/field_render/macros/field_render"/>\n
</tal:block>\n
</table>\n
<tal:block tal:condition="python: \'content\' in group" tal:repeat="field python:form.get_fields_in_group(group)">\n
<tal:block tal:condition="python: \'content\' in group.lower() or \'bottom\' in group.lower()"\n
tal:repeat="field python:form.get_fields_in_group(group)">\n
<tal:block tal:define="value python:request.get(field.id, None)"\n
tal:replace="structure python:field.render(value, request)" />\n
</tal:block>\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