source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/widgets/sequencewidget.pt @ 11103

Last change on this file since 11103 was 11103, checked in by Henrik Bettermann, 11 years ago

Beatify buttons.

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

File size: 1.2 KB
RevLine 
[7767]1<table border="0" class="sequencewidget"
[7811]2  i18n:domain="waeup.kofa">
[7767]3  <tr tal:repeat="widget view/widgets">
4    <td>
5      <input class="editcheck" type="checkbox"
6             tal:attributes="
7                 name string:${view/name}.remove_${repeat/widget/index}"
8             tal:condition="view/need_delete" />
9    </td>
10    <td>
11      <span tal:define="error widget/error"
12            tal:replace="structure error" tal:condition="error" />
13      <input tal:replace="structure widget" />
14    </td>
15  </tr>
16  <tr>
17    <td colspan="2">
[7798]18      <p class="hint" i18n:translate="">
19      Don't forget to save the form after adding or deleting items.
20      </p>
[11103]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"
[7767]27             tal:condition="view/need_delete"
28             tal:attributes="name string:${view/name}.remove"
[11103]29             i18n:translate="remove-selected-items">Remove selected items</button>
[7767]30    </td>
31  </tr>
32</table>
33<input tal:replace="structure view/marker" />
Note: See TracBrowser for help on using the repository browser.