Commit 397a8924 authored by Christophe Dumez's avatar Christophe Dumez

- add support for list parameters in hdden field generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8916 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbb59ccf
...@@ -151,9 +151,17 @@ IDEAS:\n ...@@ -151,9 +151,17 @@ IDEAS:\n
tal:attributes="name python: \'%s:method\' % (form_action, )" />\n tal:attributes="name python: \'%s:method\' % (form_action, )" />\n
<!-- Generic way of specifying http parameters -->\n <!-- Generic way of specifying http parameters -->\n
<tal:block tal:repeat="parameter http_parameter_list/items">\n <tal:block tal:repeat="parameter http_parameter_list/items">\n
<input tal:condition="python: parameter[1] is not None"\n <tal:block tal:condition="python: same_type(parameter[1], [])">\n
<tal:block tal:repeat="list_item python: parameter[1]">\n
<input tal:condition="python: list_item is not None"\n
tal:attributes="name python: \'%s:list\' % (parameter[0], );\n
value python: list_item;" type="hidden" />\n
</tal:block>\n
</tal:block>\n
<input tal:condition="python: not same_type(parameter[1], []) and parameter[1] is not None"\n
tal:attributes="name python: parameter[0];\n tal:attributes="name python: parameter[0];\n
value python: parameter[1];" type="hidden" />\n value python: parameter[1];" type="hidden" />\n
\n
</tal:block>\n </tal:block>\n
<div id="main_bar">\n <div id="main_bar">\n
<span class="first">\n <span class="first">\n
......
52 36
\ 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