- Timestamp:
- 20 Jan 2012, 10:10:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/widgets/phonewidget.py
r7439 r7494 129 129 """ 130 130 value = self.context.query(self.context.context) 131 # we have to modify the adapter according to our own131 # We have to modify the adapter according to our own 132 132 # 'required' state. Some ugly workaround 133 133 adapter = copy.deepcopy(IPhoneData) … … 138 138 form.FormFields(IPhoneData), 139 139 self.name, value, self.request, adapters=adapters) 140 self.widgets['country'].displayWidth = 3 141 self.widgets['area'].displayWidth = 5 142 self.widgets['extension'].displayWidth = 10 140 # The displayWidth cant'be set 141 # because it is overridden by Bootstrap css classes 142 #self.widgets['country'].displayWidth = 3 143 #self.widgets['area'].displayWidth = 5 144 #self.widgets['extension'].displayWidth = 10 145 # We have to set the cssClass attributes 146 self.widgets['country'].cssClass = 'span2' 147 self.widgets['area'].cssClass = 'span2' 148 self.widgets['extension'].cssClass = 'span3' 149 143 150 return 144 151
Note: See TracChangeset for help on using the changeset viewer.