Changeset 10709


Ignore:
Timestamp:
6 Nov 2013, 16:57:15 (11 years ago)
Author:
Henrik Bettermann
Message:

Shorten setUpWidgets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r10532 r10709  
    206206            elif widget.__class__.__name__ == 'IntWidget':
    207207                widget.cssClass = 'span2'
     208            if 'address' in widget.name or \
     209                'comment' in widget.name or \
     210                'notice' in widget.name:
     211                widget.cssClass = 'span8'
     212                widget.height = 6
    208213        if self.widgets.get('title'):
    209214            self.widgets['title'].cssClass = 'span12'
     
    212217        if self.widgets.get('phone'):
    213218            self.widgets['phone'].cssClass = 'span4'
    214         if self.widgets.get('suspended_comment'):
    215             self.widgets['suspended_comment'].cssClass = 'span8'
    216             self.widgets['suspended_comment'].height = 6
    217         if self.widgets.get('officer_comment'):
    218             self.widgets['officer_comment'].cssClass = 'span8'
    219             self.widgets['officer_comment'].height = 6
    220         if self.widgets.get('perm_address'):
    221             self.widgets['perm_address'].cssClass = 'span8'
    222             self.widgets['perm_address'].height = 6
    223         if self.widgets.get('next_kin_address'):
    224             self.widgets['next_kin_address'].cssClass = 'span8'
    225             self.widgets['next_kin_address'].height = 6
    226219        if self.widgets.get('transcript_comment'):
    227220            self.widgets['transcript_comment'].cssClass = 'span12'
    228221            self.widgets['transcript_comment'].height = 12
    229         if self.widgets.get('notice'):
    230             self.widgets['notice'].cssClass = 'span8'
    231             self.widgets['notice'].height = 6
    232222        if self.widgets.get('jamb_subjects'):
    233223            self.widgets['jamb_subjects'].cssClass = 'span8'
Note: See TracChangeset for help on using the changeset viewer.