[%# HTML Snippet, for import only %]
[% 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_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 } %]
[% INCLUDE input element_data = { type="text" title = text('BIC/SWIFT Code') label = "_none_" name="bic" value=request.bic size=20 } #' %]
[% PROCESS input element_data = { type="text" title = text('Bank Account') label = "_none_" name="iban" value=request.iban size=20 required = 'true' } #' %]
[% PROCESS input element_data = { type="text" title = text('Remark') label = "_none_" name="remark" value=request.remark size=30 } # %]
[% PROCESS button element_data = { name="action" value="save_bank_account" class="submit" text = text('Save') } %]