X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=3796ced6e66dbd98c9b9a9404e98b0b295187af2;hb=c364e43efab3ac6f0f0c20cd6f8f89a85ab45280;hp=7157dda9bca88fb9c44e0bef77e96765584c1fc7;hpb=3e3652cbf6f9ffb9b75a4252df4a2546c0bef081;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index 7157dda9b..3796ced6e 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -1,14 +1,20 @@ -[% USE HTML %][% USE LxERP %][% USE L %] - - -
[% FORM.title %]
+[%- 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) %] + [%- IF SELF.profile.get('dont_edit_profile') %] + [% L.hidden_tag('force_profile', 1) %] + [% L.hidden_tag('profile.id', SELF.profile.id) %] + [%- ELSE %]

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

@@ -23,7 +29,7 @@
[%- LxERP.t8('Existing profiles') %]: - [% L.select_tag('profile.id', L.options_for_select(SELF.all_profiles, title => 'name', default => SELF.profile.id), style => 'width: 300px') %] + [% 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')) %] @@ -54,47 +60,125 @@

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

+ + + +
+ +[%- UNLESS SELF.worker.is_multiplexed %] +

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

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