[Checkins] SVN: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component. hide label when the field is hidden

Laurent Mignon Laurent.Mignon at softwareag.com
Wed Jul 29 05:56:14 EDT 2009


Log message for revision 102362:
  hide label when the field is hidden

Changed:
  U   z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
  U   z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt

-=-
Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-07-29 05:43:20 UTC (rev 102361)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-07-29 09:56:14 UTC (rev 102362)
@@ -76,6 +76,7 @@
             config['disabled'] = True
         if self.widget.mode == HIDDEN_MODE:
             config['hidden'] = True
+            config['hideLabel'] = True
         if self.widget.required:
             config['itemCls'] = 'required'
         return config

Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt	2009-07-29 05:43:20 UTC (rev 102361)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt	2009-07-29 09:56:14 UTC (rev 102362)
@@ -83,7 +83,8 @@
   >>> pprint(interfaces.IExtJSComponent(labelWidget).getConfig())
   {'allowBlank': False,                                                                                            
    'fieldLabel': u'Label title',                                                                                   
-   'hidden': True,                                                                                                 
+   'hidden': True,
+   'hideLabel': True,
    'id': 'label',                                                                                                  
    'itemCls': 'required',                                                                                          
    'minLength': 0,                                                                                                 
@@ -618,6 +619,7 @@
   {'allowBlank': False,
    'fieldLabel': u'ID',
    'hidden': True,
+   'hideLabel': True,
    'id': 'form-widgets-id',
    'itemCls': 'required',
    'minLength': 0,
@@ -736,6 +738,7 @@
   {'allowBlank': False,
    'fieldLabel': u'ID',
    'hidden': True,
+   'hideLabel': True,
    'id': 'form-widgets-id',
    'itemCls': 'required',
    'minLength': 0,



More information about the Checkins mailing list