From dbfcfc3808bdf49c08deb667075baa1a40bc4a2c Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 22 Feb 2010 08:30:21 +0000 Subject: [PATCH] 2010-02-22 yo * Stop form_render from relying on the type of editable_mode (i.e. int). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32900 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/form_render.xml | 3 +-- product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log | 3 +++ product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml index 0227870725..01bb4a79d5 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml @@ -79,8 +79,7 @@ It is possible to specify a group id and a group title by naming a group followi <tal:block tal:repeat="group group_list">\n <tal:block tal:define="gid group/gid;">\n <fieldset tal:condition="python: gid.find(\'hidden\') < 0"\n - tal:attributes="class python:gid + \n - (\' editable\' * request.get(\'editable_mode\', 0) or \' viewable\');\n + tal:attributes="class python:gid + test(request.get(\'editable_mode\', 0), \' editable\', \'viewable\');\n id python: \'fieldset_%s\' % (gid.replace(\' \', \'_\'), );">\n <legend i18n:translate="" i18n:domain="ui" tal:condition="group/gtitle" tal:content="group/gtitle" class="group_title"></legend>\n <tal:block tal:repeat="field python: form.get_fields_in_group(group[\'goid\'])">\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log index 2338dd2f93..3b0d2369c7 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log @@ -1,3 +1,6 @@ +2010-02-22 yo +* Stop form_render from relying on the type of editable_mode (i.e. int). + 2010-02-02 yo * Add classes into buttons defined in dialog_main. diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index c6a6d63ac8..c1f4de8cc3 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -902 \ No newline at end of file +903 \ No newline at end of file -- 2.30.9