Commit aa15d9b4 authored by Christophe Dumez's avatar Christophe Dumez

- Fixed layout when right group is missing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9278 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae7bab5d
......@@ -526,10 +526,6 @@ fieldset.left {\n
height: 100%;\n
border-style: solid;\n
border-width: 0;\n
/* border-top-width: 1px;\n
border-left-width: 1px;\n
border-bottom-width: 1px;\n
border-right-width: 0;*/\n
border-color: <dtml-var document_border_color>;\n
padding-top: 5px;\n
padding-bottom: 2px;\n
......@@ -546,10 +542,6 @@ fieldset.right {\n
height: 100%;\n
border-style: solid;\n
border-width: 0;\n
/* border-top-width: 1px;\n
border-left-width: 0;\n
border-bottom-width: 1px;\n
border-right-width: 1px;*/\n
border-color: <dtml-var document_border_color>;\n
padding-top: 5px;\n
padding-bottom: 2px;\n
......
......@@ -100,13 +100,13 @@ Groups names becomes "left_group", "right_group", "left1_group", "right1_group",
<tal:block metal:use-macro="template/macros/form" />\n
</tal:block>\n
<tal:block tal:repeat="group groups">\n
\t <fieldset tal:attributes="class group; id python: \'fieldset_\'+group" tal:condition="python: group.find(\'hidden\') < 0 and len(form.get_fields_in_group(group)) > 0">\n
\t <fieldset tal:attributes="class group; id python: \'fieldset_\'+group" tal:condition="python: group.find(\'hidden\') < 0">\n
<legend tal:content="group" class="group_title"/>\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
</fieldset>\n
<p tal:condition="python: group.find(\'right\') >= 0" class="clear">&nbsp;</p>\n
<p tal:condition="python: group.find(\'right\') >= 0 or (group.find(\'left\') >= 0 and \'right\' not in groups)" class="clear">&nbsp;</p>\n
</tal:block>\n
</tal:block>\n
</tal:block>
......
83
\ No newline at end of file
85
\ 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