X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f74b0dac7a8e55cc7a67c4a03a3ee229415b3fbd..a0d9f09a2e63f0be9eda333ab7fa78679ea55759:/templates/webpages/csv_import/form.html diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index 792aa2086..9b8fd1a84 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -292,6 +292,38 @@
+[%- UNLESS SELF.worker.is_multiplexed %] +

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

+ + + +
+[%- END %] [% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] [% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %] @@ -314,7 +346,14 @@ return true; alert('[% LxERP.t8('Please enter a profile name.') %]'); return false; - }) + }); + $('#add_empty_mapping_line').click(function(){ + $.get('controller.pl', { action: 'CsvImport/add_empty_mapping_line', 'profile.type': $('#profile_type').val() }, kivi.eval_json_result); + }); + $('#add_mapping_from_upload').click(function(){ + $.get('controller.pl?action_add_mapping_from_upload=1', $('form').serialize() , kivi.eval_json_result); + }); + $('#csv_import_mappings').on('click', '.remove_line', function(){ $(this).closest('tr').remove(); if (1==$('#csv_import_mappings tr:visible').length) $('#mapping_empty').show() }); }); -->