[% PROCESS elements.html %] [% PROCESS 'dynatable.html' %]
[% name %]
[% PROCESS 'dynatable' tbody = { rows = rows } attributes = { width = "100%" } %]
[% FOREACH hidden IN hiddens.keys; PROCESS input element_data={ type => 'hidden', name => hidden, value => hiddens.item(hidden) }; END %] [% PROCESS select element_data={ name='curr' label=text('Currency') options=currencies text_attr='curr' value_attr='curr' required=1 default_blank=1 } %] [% PROCESS select element_data={ name='rate_type' label=text('Rate type') options=exchangerate_types text_attr='description' value_attr='id' required=1 default_values=[form.rate_type] } %] [% PROCESS input element_data={ label=text('Valid from') name='valid_from' type='date' required=1 value=form.valid_from } %] [% PROCESS input element_data={ label=text('Rate') name='rate' type='text' size = '5' maxlength = '20' required=1 } %] [% PROCESS button element_data={ text = text('Add/Update'), class="submit" type="submit" name="__action" value="save_exchangerate" } %] [% FOREACH button IN buttons; PROCESS button element_data=button; END %]

[% PROCESS input element_data = { name = "import_file" type = "file" label = text('From File') class = "file" } %] [% PROCESS button element_data={ text = text('Upload'), 'data-lsmb-doing' = text('Uploading...') 'data-lsmb-done' = text('Uploaded') class="submit" type="submit" name="__action" value="upload_exchangerates" } %]