Commit d7c87cff authored by Kevin Deldycke's avatar Kevin Deldycke

Do not render empty groups in forms.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9283 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5850ae65
...@@ -95,7 +95,7 @@ Groups names becomes "left_group", "right_group", "left1_group", "right1_group", ...@@ -95,7 +95,7 @@ Groups names becomes "left_group", "right_group", "left1_group", "right1_group",
<tal:block metal:define-macro="master">\n <tal:block metal:define-macro="master">\n
<tal:block tal:define="field_errors python: request.get(\'field_errors\',{});\n <tal:block tal:define="field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\', here);\n dummy python: request.set(\'here\', here);\n
groups python: form.get_groups();">\n groups python: form.get_groups(include_empty=0);">\n
<tal:block tal:define="template python: here.developper_shortcut_render">\n <tal:block tal:define="template python: here.developper_shortcut_render">\n
<tal:block metal:use-macro="template/macros/form" />\n <tal:block metal:use-macro="template/macros/form" />\n
</tal:block>\n </tal:block>\n
......
2006-08-21 Kevin 2006-08-21 Kevin
* Include support for editable_mode parameter in main_template. * Include support for editable_mode parameter in main_template.
* Remove default value (by jp). * Remove default value (by jp).
* Do not render empty groups in forms.
2006-08-21 Chris 2006-08-21 Chris
* Made form_render code a lot lighter with same final result using a loop * Made form_render code a lot lighter with same final result using a loop
......
92 94
\ No newline at end of file \ No newline at end of file
1.2.2 1.2.3
\ 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