- Timestamp:
- 22 Jan 2014, 18:05:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py
r10709 r10955 174 174 # Width parameters will be overridden by Bootstrap 175 175 # so we have to set the css class 176 if self.widgets.get('subject'):177 self.widgets['subject'].cssClass = 'span9'178 176 if self.widgets.get('body'): 179 177 self.widgets['body'].height = 10 180 if self.widgets.get('body'):181 self.widgets['body'].cssClass = 'span9'182 178 183 179 class KofaPage(UtilityView,Page): … … 202 198 super(KofaEditFormPage,self).setUpWidgets(ignore_request) 203 199 for widget in self.widgets: 204 if widget.__class__.__name__ == 'TextWidget':205 widget.cssClass = 'span8'206 elif widget.__class__.__name__ == 'IntWidget':207 widget.cssClass = 'span2'208 200 if 'address' in widget.name or \ 209 201 'comment' in widget.name or \ 210 202 'notice' in widget.name: 211 widget.cssClass = 'span8'212 203 widget.height = 6 213 if self.widgets.get('title'):214 self.widgets['title'].cssClass = 'span12'215 if self.widgets.get('frontpage'):216 self.widgets['frontpage'].cssClass = 'span12'217 if self.widgets.get('phone'):218 self.widgets['phone'].cssClass = 'span4'219 204 if self.widgets.get('transcript_comment'): 220 self.widgets['transcript_comment'].cssClass = 'span12'221 205 self.widgets['transcript_comment'].height = 12 222 206 if self.widgets.get('jamb_subjects'): 223 self.widgets['jamb_subjects'].cssClass = 'span8'224 207 self.widgets['jamb_subjects'].height = 6 225 if self.widgets.get('description'):226 self.widgets['description'].cssClass = 'span12'227 208 228 209 class KofaAddFormPage(UtilityView,AddForm):
Note: See TracChangeset for help on using the changeset viewer.