- <tr class="listrow[% loop.count % 2 %]">
- [%- IF show_post_payments_button %]
- <input type="hidden" name="items[+].id" value="[% HTML.escape(item.id) %]">
- <input type="hidden" name="items[].sepa_export_id" value="[% HTML.escape(item.sepa_export_id) %]">
- <td align="center">
- [%- UNLESS item.executed %]
- <input type="checkbox" name="items[].selected" value="1">
- [%- END %]
- </td>
- [%- END %]
+ <tr class="listrow">
+ <td align="center">
+ [%- IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %]
+ [% L.hidden_tag("items[+].id", item.id) %]
+ [% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %]
+ [% L.checkbox_tag("ids[]", value=item.id) %]
+ [%- END %]
+ </td>