[% PROCESS "elements.html"; %]
[% text('Deduction Type') %]
[% countries.push({}); PROCESS select_country element_data = { default_values = [country_id] options = countries name = 'country_id', text_attr = 'name', value_attr = 'id', label = text('Country') }; %]
[% deduction_classes.push({}); PROCESS select element_data = { default_values = [pdc_id] options = deduction_classes name = 'pdc_id', text_attr = 'label', value_attr = 'id', label = text('Deduction Class') #' }; %]
[% accounts.push({}); FOREACH a IN accounts; a.label = a.accno _ '--' _ a.description; END; PROCESS select element_data = { default_values = [account_id] options = accounts name = 'account_id', text_attr = 'label', value_attr = 'id', label = text('Account') }; %]
[% PROCESS input element_data = { name = 'label' value = label type = 'text' size = '20' class = 'control_code' }; %]
[% PROCESS input element_data = { name = 'unit' value = unit type = 'text' size = '10' class = 'unit' }; %]
[% PROCESS input element_data = { name = 'default_amount' value = default_amount type = 'text' size = '25' class = 'amount' } %]
[% PROCESS button element_data = { name = '__action' value = 'show_deduction_type' class = 'submit' type = 'submit' text = text('Update') }; PROCESS button element_data = { name = '__action' value = 'save_deduction_type' class = 'submit' type = 'submit' text = text('Save') 'data-lsmb-doing' = text('Saving...') 'data-lsmb-done' = text('Saved') }; %]