Changeset 10955


Ignore:
Timestamp:
22 Jan 2014, 18:05:22 (11 years ago)
Author:
Henrik Bettermann
Message:

Do not set css class in setUpWidgets. This is no longer necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py

    r10709 r10955  
    174174        # Width parameters will be overridden by Bootstrap
    175175        # so we have to set the css class
    176         if self.widgets.get('subject'):
    177             self.widgets['subject'].cssClass = 'span9'
    178176        if self.widgets.get('body'):
    179177            self.widgets['body'].height = 10
    180         if self.widgets.get('body'):
    181             self.widgets['body'].cssClass = 'span9'
    182178
    183179class KofaPage(UtilityView,Page):
     
    202198        super(KofaEditFormPage,self).setUpWidgets(ignore_request)
    203199        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'
    208200            if 'address' in widget.name or \
    209201                'comment' in widget.name or \
    210202                'notice' in widget.name:
    211                 widget.cssClass = 'span8'
    212203                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'
    219204        if self.widgets.get('transcript_comment'):
    220             self.widgets['transcript_comment'].cssClass = 'span12'
    221205            self.widgets['transcript_comment'].height = 12
    222206        if self.widgets.get('jamb_subjects'):
    223             self.widgets['jamb_subjects'].cssClass = 'span8'
    224207            self.widgets['jamb_subjects'].height = 6
    225         if self.widgets.get('description'):
    226             self.widgets['description'].cssClass = 'span12'
    227208
    228209class KofaAddFormPage(UtilityView,AddForm):
Note: See TracChangeset for help on using the changeset viewer.