X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=b146465a8bbba692c061b74106c9aa65218d35a9;hb=8a2d9daf01083e1271cf6118591bb2c242734261;hp=32e91dbd12a6bd64240b0f3850d14ee040c996b1;hpb=1abd784542136a7ce095ae97c754aae088acf1bb;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index 32e91dbd1..b146465a8 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -5,7 +5,7 @@ [%- INCLUDE 'common/flash.html' %] -
+ [% L.hidden_tag('action', 'CsvImport/dispatch') %] [% L.hidden_tag('profile.type', SELF.profile.type) %] @@ -45,11 +45,59 @@
+

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

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

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

- + @@ -125,12 +173,36 @@ [%- INCLUDE 'csv_import/_form_customers_vendors.html' %] [%- END %] + + + + + + [%- IF SELF.file.exists %] + + + + + [%- END %] +
[%- LxERP.t8('Number format') %]:[%- LxERP.t8('Number Format') %]: [% SET options = L.options_for_select([ '1.000,00', '1000,00', '1,000.00', '1000.00' ], default => SELF.profile.get('numberformat')) %] [% L.select_tag('settings.numberformat', options, style => 'width: 300px') %] @@ -112,9 +160,9 @@
[%- LxERP.t8('Check for duplicates') %]: - [% opts = [ [ 'no_check', LxERP.t8('Do not check for duplicates') ], + [% opts = [ [ 'no_check', LxERP.t8('Do not check for duplicates') ], [ 'check_csv', LxERP.t8('Discard duplicate entries in CSV file') ], - [ 'check_db', LxERP.t8('Discard entries with duplicates in database and CSV file') ] ] %] + [ 'check_db', LxERP.t8('Discard entries with duplicates in database or CSV file') ] ] %] [% L.select_tag('settings.duplicates', L.options_for_select(opts, default => SELF.profile.get('duplicates')), style => 'width: 300px') %]
[%- LxERP.t8('Import file') %]:[% L.input_tag('file', '', type => 'file', accept => '*') %]
[%- LxERP.t8('Existing file on server') %]:[%- LxERP.t8('Uploaded on #1, size #2 kB', SELF.file.displayable_mtime, LxERP.format_amount(SELF.file.size / 1024, 2)) %]
- [% L.submit_tag('action_test', LxERP.t8('Gogogo')) %] + [% 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 %]
+ [%- IF SELF.import_status %] + [%- IF SELF.errors %] + [%- PROCESS 'csv_import/_errors.html' %] + [%- END %] + + [%- PROCESS 'csv_import/_result.html' %] + [%- PROCESS 'csv_import/_preview.html' %] + [%- END %] +