[% WRAPPER "ui-header.html" stylesheet="ledgersmb.css" include_stylesheet=["system/setup.css"] %] [% PROCESS elements.html %]

## [% text('Database Management Console') %]

[% title %]
Pre-defined Chart-of-Accounts selection
[% IF coa_lc; INCLUDE input element_data = { name = 'coa_lc' type = 'hidden' value = coa_lc } ; %]

The selected country ('[% coa_lc %]') has the following charts predefined.

[% ELSE %]

Please select a country from the list of countries with predefined charts of accounts, or select Skip and define or import accounts and headings later. Please do take note that you want to load a chart for evaluation purposes as many functions depend on accounts of certain types being defined.

[% END %]
[% IF coa_lc; INCLUDE select element_data = { options = charts name = 'chart' text_attr = 'name' value_attr = 'name' label = text('Chart of accounts') }; IF gifis.size > 0; -%]
[% INCLUDE select element_data = { options = gifis name = 'gifi' text_attr = 'name' value_attr = 'name' label = text('GIFI') }; END; IF sics.size > 0; -%]
[% INCLUDE select element_data = { options = sics name = 'sic' text_attr = 'name' value_attr = 'name' label = text('SIC') }; END; ELSE; INCLUDE select element_data = { options = coa_lcs name = 'coa_lc' text_attr = 'name' value_attr = 'code' label = text('Country') #' }; END %]
[% INCLUDE input element_data = { name = 'database' value = database type = 'hidden' } %]
[% INCLUDE button element_data = { name = '__action' value = 'select_coa' type = 'submit' class = 'submit' text = text('Next') } %]
[% INCLUDE button element_data = { name = '__action' value = 'skip_coa' type = 'submit' class = 'submit' text = text('Skip') } %]
[% END %]