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

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

[% # notice, message, and operation are all localized. %] [% INCLUDE 'setup/ui-db-credentials.html' %]
[% text('Confirm Operation') %]
[% notice %]
[% message %]
[% operation %]
[% INCLUDE input element_data = { name = 'database' type = 'hidden' value = database } %]
[% INCLUDE button element_data = { name = '__action' value = next_action type = 'submit' class = 'submit' text = text('Yes') } %]
[% text('Other Actions') %]
[% IF next_action == 'rebuild_modules' %]
[% INCLUDE input element_data = { name = 'new_name' type = 'text' class = 'dbname' label = text('Copy to New Name') #' }; %] [% INCLUDE button element_data = { name = '__action' value = 'copy_db' type = 'submit' class = 'submit' text = text('Copy') #' }; %]
[% text('Users') %]
[% INCLUDE button element_data = { name = '__action' value = 'add_user' type = 'submit' class = 'submit' text = text('Add User') #' }; %] [% INCLUDE button element_data = { name = '__action' value = 'list_users' type = 'submit' class = 'submit' text = text('List Users') #' }; %]
[% text('Templates') %]
[% INCLUDE button element_data = { name = '__action' value = 'load_templates' type = 'submit' class = 'submit' text = text('Load Templates') #' }; INCLUDE input element_data = { name = "only_templates" value = "1" type = "hidden" }; %]
[% END %] [% IF next_action != 'create_db' %]
[% text('Backup') %]
[% INCLUDE button element_data = { name = '__action' value = 'backup_db' type = 'submit' class = 'submit' text = text('Backup DB') #' } %] [% INCLUDE button element_data = { name = '__action' value = 'backup_roles' type = 'submit' class = 'next' text = text('Backup Roles') #' } %]
[% text('System diagnostics') %]
[% INCLUDE button element_data = { name = '__action' value = 'system_info' type = 'submit' class = 'submit' text = text('System Info') #' } %] [% INCLUDE button element_data = { name = '__action' value = 'consistency' type = 'submit' class = 'submit' text = text('Check consistency') #' } %]
[% END %]
[% IF lsmb_info %]
[% text('LedgerSMB Database Statistics') %]
[% text('Row counts') %]
[% text('AP') %][% lsmb_info.ap_count %]
[% text('AR') %][% lsmb_info.ar_count %]
[% text('GL') %][% lsmb_info.gl_count %]
[% text('Journal Lines') %][% lsmb_info.acc_trans_count %]
[% text('Orders') %][% lsmb_info.oe_count %]
[% text('Customer/Vendor Accounts') %][% lsmb_info.eca_count %]
[% text('Transactions') %][% lsmb_info.transactions_count %]
[% text('Users') %][% lsmb_info.users_count %]
[% END %]
[% end_html %]