[%- USE HTML %] [%- USE LxERP %] [%- USE L %] [%- USE T8 %]

[% FORM.title %]

[%- INCLUDE 'common/flash.html' %]
[% L.hidden_tag('form_sent', '1') %] [% L.hidden_tag('action', 'CsvImport/dispatch') %] [% L.hidden_tag('profile.type', SELF.profile.type) %]

[%- LxERP.t8('Import profiles') %]

[%- IF SELF.profile.id %] [%- END %] [%- IF SELF.all_profiles.size %] [%- END %]
[%- LxERP.t8('Current profile') %]: [%- HTML.escape(SELF.profile.name) %]
[%- LxERP.t8('Existing profiles') %]: [% L.select_tag('profile.id', SELF.all_profiles, title_key = 'name', default = SELF.profile.id, style = 'width: 300px') %] [% L.submit_tag('action_new', LxERP.t8('Load profile')) %] [% L.submit_tag('action_destroy', LxERP.t8('Delete profile'), confirm => LxERP.t8('Do you really want to delete this object?')) %]
[%- LxERP.t8('Save settings as') %]: [% L.input_tag('profile.name', '', style => 'width: 300px') %]
[% L.checkbox_tag('profile.is_default', label => LxERP.t8('Make default profile')) %]
[% L.submit_tag('action_save', LxERP.t8('Save profile')) %]

[%- LxERP.t8('Help on column names') %]

[% LxERP.t8("Show help text") %]

[%- LxERP.t8('Settings') %]


[% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] [% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %]
[%- IF SELF.deferred %] [%- PROCESS 'csv_import/_deferred_results.html' %] [%- ELSIF SELF.import_status %] [%- PROCESS 'csv_import/_results.html' %] [%- END %]