X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=eba42f6a97784022b21acc2b3299b3697ffb4f32;hb=280cbfe97461e08c8dbc604dd487b08b79ffd8ed;hp=bc23d54c2eb849637eb74e346c7a30753905652b;hpb=f87763cd84d89aafc4c4110ba42d041b02ce4371;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index bc23d54c2..eba42f6a9 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -1,4 +1,7 @@ -[% USE HTML %][% USE LxERP %][% USE L %] +[%- USE HTML %] +[%- USE LxERP %] +[%- USE L %] +[%- USE T8 %]
[% FORM.title %]
@@ -6,6 +9,7 @@ [%- INCLUDE 'common/flash.html' %]
+ [% L.hidden_tag('form_sent', '1') %] [% L.hidden_tag('action', 'CsvImport/dispatch') %] [% L.hidden_tag('profile.type', SELF.profile.type) %] @@ -45,6 +49,54 @@
+

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

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

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

@@ -109,15 +161,30 @@ - - - - + [% duplicate_fields = SELF.worker.get_duplicate_check_fields() %] + [% IF ( duplicate_fields.size ) %] + + + + + + + + + + + + [% END %] [%- IF SELF.type == 'parts' %] [%- INCLUDE 'csv_import/_form_parts.html' %] @@ -125,6 +192,15 @@ [%- INCLUDE 'csv_import/_form_customers_vendors.html' %] [%- END %] + + + + + @@ -140,14 +216,19 @@
[%- LxERP.t8('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 or CSV file') ] ] %] - [% L.select_tag('settings.duplicates', L.options_for_select(opts, default => SELF.profile.get('duplicates')), style => 'width: 300px') %] -
[%- LxERP.t8('Check for duplicates') %]: + [% FOREACH key = duplicate_fields.keys %] + + + [% END %] +
+ [% 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 or CSV file') ] ] %] + [% L.select_tag('settings.duplicates', L.options_for_select(opts, default => SELF.profile.get('duplicates')), style => 'width: 300px') %] +
[%- LxERP.t8('Preview Mode') %]: + [% L.radio_button_tag('settings.full_preview', value=2, checked=SELF.profile.get('full_preview')==2, label=LxERP.t8('Full Preview')) %] + [% L.radio_button_tag('settings.full_preview', value=1, checked=SELF.profile.get('full_preview')==1, label=LxERP.t8('Only Warnings and Errors')) %] + [% L.radio_button_tag('settings.full_preview', value=0, checked=!SELF.profile.get('full_preview'), label=LxERP.t8('First 20 Lines')) %] +
[%- LxERP.t8('Import file') %]: [% L.input_tag('file', '', type => 'file', accept => '*') %]
[% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] - [% IF SELF.import_status && SELF.data.size %] + [% IF (SELF.import_status == 'tested') && SELF.num_importable %] [% L.submit_tag('action_import', LxERP.t8('Import')) %] [%- END %]
[%- IF SELF.import_status %] - [%- PROCESS 'csv_import/_data.html' %] + [%- IF SELF.errors %] + [%- PROCESS 'csv_import/_errors.html' %] + [%- END %] + + [%- PROCESS 'csv_import/_result.html' %] + [%- PROCESS 'csv_import/_preview.html' %] [%- END %] - + \ No newline at end of file