Ignore:
Timestamp:
22 Feb 2014, 15:46:03 (11 years ago)
Author:
uli
Message:

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk

  • main/waeup.kofa/trunk/src/waeup/kofa

  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py

    r8937 r11254  
    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))
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.pt

    r7811 r11254  
    1 <table border="0" class="sequencewidget"
    2   i18n:domain="waeup.kofa">
     1<table i18n:domain="waeup.kofa">
    32  <tr tal:repeat="widget view/widgets">
    43    <td>
     
    1918      Don't forget to save the form after adding or deleting items.
    2019      </p>
    21       <input type="submit" value="Remove selected items"
    22              class="btn"
     20      <button type="submit"
     21             class="btn btn-default"
     22             tal:condition="view/need_add"
     23             tal:attributes="name string:${view/name}.add"
     24             tal:content="view/addButtonLabel" />
     25      <button type="submit" class="btn btn-default"
    2326             tal:condition="view/need_delete"
    2427             tal:attributes="name string:${view/name}.remove"
    25              i18n:attributes="value remove-selected-items" />
    26       <input type="submit" value="Add foo"
    27              class="btn"
    28              tal:condition="view/need_add"
    29              tal:attributes="name string:${view/name}.add;
    30                              value view/addButtonLabel" />
     28             i18n:translate="remove-selected-items">Remove selected items</button>
    3129    </td>
    3230  </tr>
Note: See TracChangeset for help on using the changeset viewer.