Changeset 10956


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.

Location:
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/usereditformpage.pt

    r8486 r10956  
    99        <td i18n:translate="" class="fieldname">Password:</td>
    1010        <td>
    11           <input name="password" type="password"  />
     11          <input class="form-control" name="password" type="password"  />
    1212        </td>
    1313      </tr>
     
    1515        <td i18n:translate="" class="fieldname">Retype Password:</td>
    1616        <td>
    17           <input name="control_password" type="password" />
     17          <input class="form-control" name="control_password" type="password" />
    1818        </td>
    1919      </tr>
  • 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.