X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=568324e28bedb3ae652ef1424ed4276d5292edcc;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=745ef161c7f09238e7a16f3c62d1d0f973f47c11;hpb=a87694dc525b4eabff11029f1e5401621e2bd3bc;p=kivitendo-erp.git
diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html
index 745ef161c..568324e28 100644
--- a/templates/webpages/csv_import/form.html
+++ b/templates/webpages/csv_import/form.html
@@ -6,11 +6,16 @@
[%- INCLUDE 'common/flash.html' %]
-
[%- IF SELF.deferred %]
[%- PROCESS 'csv_import/_deferred_results.html' %]
- [%- ELSIF SELF.import_status %]
- [%- PROCESS 'csv_import/_results.html' %]
- [%- END %]
+ [%- END %][%# IF SELF.deferred %]
@@ -314,7 +360,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() });
});
-->