[% PROCESS elements.html %]
[% # This form is also rendered when form.script contains 'is.pl' # or 'ir.pl'; however, submission really must be taken to 'am.pl' # so we have no option but to hard-code it %]

[% text('Recurring Transactions') %]
[% FOREACH column IN columns %] [% IF heading.$column.text.defined %] [% heading.$column.text %] [% ELSE; heading.$column; END %] [% END %]
[% FOREACH transaction_type IN transactions %]
[% transaction_type.title %]
[% FOREACH transaction IN transaction_type.transactions %]
[% FOREACH column IN columns %] [% IF transaction.$column.delimiter.defined; transaction.$column.text.replace(transaction.$column.delimiter, ' '); ELSIF transaction.$column.href.defined; ''; transaction.$column.text; ''; ELSIF transaction.$column.type.defined; PROCESS input element_data=transaction.$column; ELSE; transaction.$column; END %] [% END %]
[% END %] [% END %]

[% FOREACH hidden IN hiddens.keys; PROCESS input element_data={ type => 'hidden', name => hidden, value => hiddens.item(hidden) }; END; PROCESS button element_data={name => '__action', value => 'process_transactions' text => text('Process Transactions')} %]