From 1f9ec50f493d745f4541f5794398da6eca12f5a8 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Tue, 22 Aug 2006 09:27:19 +0000 Subject: [PATCH] - made it very easy to hide the label of some fields. You just need to apply the class 'invisible' to them. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9307 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/erp5.css.xml | 3 ++- .../portal_skins/erp5_xhtml_style/field_render.xml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml index 010ec38393..dbeddf5f63 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml @@ -595,7 +595,8 @@ fieldset.bottom .field label {\n font-weight: bold;\n }\n \n -.content .field .invisible {\n +\n +.content .field label.invisible {\n display: None;\n }\n \n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml index b08f2b42a5..79a78c57c1 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml @@ -83,8 +83,8 @@ MISSING\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <div tal:repeat="html_tuple html_render" class="field"\n tal:attributes="title python: here.Localizer.translate(\'erp5_ui\', here.Base_getFieldDescription(field))">\n - <label tal:attributes="class python: {0: {0: None, 1: \'required\'},\n - 1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]">\n + <label tal:attributes="class python: ({0: {0: None, 1: \'required\'},\n + 1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()] or \'\') + \' \' + (field.get_value(\'css_class\') or \'\')">\n <tal:block tal:content="structure python: html_tuple[0]"\n i18n:translate="" i18n:domain="ui" />\n <tal:block tal:define="template python: here.developper_shortcut_render">\n -- 2.30.9