X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=eba42f6a97784022b21acc2b3299b3697ffb4f32;hb=dd70b2b0ab95ac40943e8562589a5542c815e4f4;hp=e835ed505971b8d540a968743b25175a40b20372;hpb=7b6a3af9cc51b982853b572028acc58c8349e2b6;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index e835ed505..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) %] @@ -157,15 +161,30 @@ - - [%- 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') %] - - + [% duplicate_fields = SELF.worker.get_duplicate_check_fields() %] + [% IF ( duplicate_fields.size ) %] + + [%- 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') %] + + + [% END %] [%- IF SELF.type == 'parts' %] [%- INCLUDE 'csv_import/_form_parts.html' %] @@ -225,4 +244,4 @@ --> - + \ No newline at end of file