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

Adjust phone widget and user edit form page to Bootstrap 3.

File:
1 edited

Legend:

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

    r8937 r10956  
    3737
    3838    subwidget_names = ('country', 'area', 'ext')
    39     bootstrap_span = 'span2'
     39    cssClass = 'phone-input'
    4040
    4141    def _renderPrefixWidget(self, value):
     
    5151                '<option value="%s"%s>%s</option>' % (pval, selected, ptitle))
    5252        options = '\n'.join(options)
    53         return '<select id="%s" name="%s" size="1" class="span4">\n%s\n</select>' % (
     53        return '<select id="%s" name="%s" size="1" class="%s">\n%s\n</select>' % (
    5454            '%s.%s' % (self.name, 'country'),
    5555            '%s.%s' % (self.name, 'country'),
     56            self.cssClass,
    5657            options)
    5758
     
    8384            kwargs.update(name = '%s.%s' % (self.name, subname))
    8485            kwargs.update(id=kwargs['name'])
    85             # kwargs.update(cssClass = '%s %s' % (self.cssClass, 'span1'))
    86             kwargs.update(cssClass = '%s %s' % ('', self.bootstrap_span))
     86            kwargs.update(cssClass = '%s %s' % ('', self.cssClass))
    8787            kwargs.update(value = subvalues[num])
    8888            fields.append(renderElement(self.tag, **kwargs))
Note: See TracChangeset for help on using the changeset viewer.