Changeset 8075


Ignore:
Timestamp:
9 Apr 2012, 10:47:47 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's customize bootstrap's span of subwidgets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py

    r8074 r8075  
    3737
    3838    subwidget_names = ('country', 'area', 'ext')
     39    bootstrap_span = 'span2'
    3940
    4041    def _renderPrefixWidget(self, value):
     
    8384            kwargs.update(id=kwargs['name'])
    8485            # kwargs.update(cssClass = '%s %s' % (self.cssClass, 'span1'))
    85             kwargs.update(cssClass = '%s %s' % ('', 'span2'))
     86            kwargs.update(cssClass = '%s %s' % ('', self.bootstrap_span))
    8687            kwargs.update(value = subvalues[num])
    8788            fields.append(renderElement(self.tag, **kwargs))
Note: See TracChangeset for help on using the changeset viewer.