From 397a89247c45df5ec27711ba4d861a26f8df79cf Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Mon, 31 Jul 2006 09:35:54 +0000 Subject: [PATCH] - 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 --- .../erp5_xhtml_style/template_erp5_xhtml_style.xml | 10 +++++++++- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml index ac874ddf20..789ea7cccf 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml @@ -151,9 +151,17 @@ IDEAS:\n tal:attributes="name python: \'%s:method\' % (form_action, )" />\n <!-- Generic way of specifying http parameters -->\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 value python: parameter[1];" type="hidden" />\n +\n </tal:block>\n <div id="main_bar">\n <span class="first">\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 6139554210..dce6588ca1 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -52 \ No newline at end of file +36 \ No newline at end of file -- 2.30.9