[% PROCESS "elements.html"; %]
[% text('Income 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') }; %]
[% income_classes.push({}); PROCESS select element_data = { default_values = [pic_id] options = income_classes name = 'pic_id', text_attr = 'label', value_attr = 'id', label = text('Income 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' label = text('Control Code') #' }; %]
[% PROCESS input element_data = { name = 'unit' value = unit type = 'text' size = '10' class = 'unit' label = text('Unit') }; %]
[% PROCESS input element_data = { name = 'default_amount' value = default_amount type = 'text' size = '25' class = 'amount' label = text('Default amount') #' } %]
[% PROCESS button element_data = { name = '__action' value = 'show_income_type' class = 'submit' type = 'submit' text = text('Update') }; PROCESS button element_data = { name = '__action' value = 'save_income_type' class = 'submit' type = 'submit' text = text('Save') 'data-lsmb-doing' = text('Saving...') 'data-lsmb-done' = text('Saved') }; %]