[% text('Bank Accounts') %]
[% href_base = request.script _ '?&entity_id=' _ entity_id _ '&target_div=bank_act_div' _ '&form_id=' _ form_id _ '&credit_id=' _ credit_id _ '&id='; FOREACH ba IN bank_account; # Note that the href will be URL encoded when inserted in the template ba.iban_href_suffix = '&bic=' _ ba.bic _ '&iban=' _ ba.iban _ '&__action=edit' _ '&id=' _ ba.id; ba.delete_href_suffix=ba.id _ '&__action=delete_bank_account'; ba.delete = '[' _ text('Delete') _ ']'; END; PROCESS dynatable attributes = { id = 'bank_account_list', width = '100%' } tbody = {rows = bank_account} columns = [ { col_id='bic', type='text', name=text('BIC/SWIFT Code') } #' { col_id='iban', type='href', href_base=href_base, name=text('Account Number')}#' { col_id='remark', type='text', name=text('Remark') } { col_id='delete', type='href', href_base=href_base, name=' ' } ]; %] [% PROCESS input element_data = { type = "hidden" name = "form_id" value = form_id }; PROCESS input element_data = { type="hidden" name="entity_class" value=entity_class }; PROCESS input element_data = { type="hidden" name="entity_id" value=entity_id }; PROCESS input element_data = { type="hidden" name="credit_id" value=credit_id }; PROCESS input element_data = { type="hidden" name="bank_account_id" value=request.id }; %]
[% PROCESS button element_data = { name="__action" value="save_bank_account" class="submit" text = text('Save') } %]