[Erp5-report] r9307 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 22 11:27:21 CEST 2006


Author: chris
Date: Tue Aug 22 11:27:19 2006
New Revision: 9307

URL: http://svn.erp5.org?rev=9307&view=rev
Log:
- made it very easy to hide the label of some fields. You just need to apply the class 'invisible' to them.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml?rev=9307&r1=9306&r2=9307&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml Tue Aug 22 11:27:19 2006
@@ -595,7 +595,8 @@
   font-weight: bold;\n
 }\n
 \n
-.content .field .invisible {\n
+\n
+.content .field label.invisible {\n
   display: None;\n
 }\n
 \n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml?rev=9307&r1=9306&r2=9307&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml Tue Aug 22 11:27:19 2006
@@ -83,8 +83,8 @@
       <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




More information about the Erp5-report mailing list