Commit 1f9ec50f authored by Christophe Dumez's avatar Christophe Dumez

- made it very easy to hide the label of some fields. You just need to apply...

- 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
parent e352e10d
...@@ -595,7 +595,8 @@ fieldset.bottom .field label {\n ...@@ -595,7 +595,8 @@ fieldset.bottom .field label {\n
font-weight: bold;\n font-weight: bold;\n
}\n }\n
\n \n
.content .field .invisible {\n \n
.content .field label.invisible {\n
display: None;\n display: None;\n
}\n }\n
\n \n
......
...@@ -83,8 +83,8 @@ MISSING\n ...@@ -83,8 +83,8 @@ MISSING\n
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<div tal:repeat="html_tuple html_render" class="field"\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 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 <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 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 <tal:block tal:content="structure python: html_tuple[0]"\n
i18n:translate="" i18n:domain="ui" />\n i18n:translate="" i18n:domain="ui" />\n
<tal:block tal:define="template python: here.developper_shortcut_render">\n <tal:block tal:define="template python: here.developper_shortcut_render">\n
......
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