Ignore:
Timestamp:
14 Feb 2014, 22:36:49 (11 years ago)
Author:
Henrik Bettermann
Message:

Beatify buttons.

Unfortunately, I did not succeed with using kofa-button-rowadd.js. This script does only allow one dynamic form element.

File:
1 edited

Legend:

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

    r7811 r11103  
    1919      Don't forget to save the form after adding or deleting items.
    2020      </p>
    21       <input type="submit" value="Remove selected items"
    22              class="btn"
     21      <button type="submit"
     22             class="btn btn-default"
     23             tal:condition="view/need_add"
     24             tal:attributes="name string:${view/name}.add"
     25             tal:content="view/addButtonLabel" />
     26      <button type="submit" class="btn btn-default"
    2327             tal:condition="view/need_delete"
    2428             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" />
     29             i18n:translate="remove-selected-items">Remove selected items</button>
    3130    </td>
    3231  </tr>
Note: See TracChangeset for help on using the changeset viewer.