[%- 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) %] [% L.hidden_tag('tmp_profile_id', SELF.profile.id) %] [%- IF SELF.profile.get('dont_edit_profile') %] [% L.hidden_tag('force_profile', 1) %] [% L.hidden_tag('profile.id', SELF.profile.id) %] [%- ELSE %][%# IF SELF.profile.get('dont_edit_profile') %]

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

[%- IF SELF.profile.id %] [%- END %][%# IF SELF.profile.id %] [%- IF SELF.all_profiles.size %] [%- END %][%# IF SELF.all_profiles.size %]
[%- 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") %]

[%- L.submit_tag('action_download_sample', LxERP.t8('Download sample file')) %]


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


[%- UNLESS SELF.worker.is_multiplexed %]

[% 'Mappings (csv_import)' | $T8 %]


[%- END %][%# UNLESS SELF.worker.is_multiplexed %] [%- END %][%# IF SELF.profile.get('dont_edit_profile') %]
[%- IF SELF.deferred %] [%- PROCESS 'csv_import/_deferred_results.html' %] [%- END %][%# IF SELF.deferred %]