X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Fform.html;h=568324e28bedb3ae652ef1424ed4276d5292edcc;hb=1281896520473a475a2f21006481ac1f5bd4de40;hp=5b189ec77a013bbcd7e09d72436600e15e5054bf;hpb=1cc72c5b3b422fcd5970b3072d0d922d89fffc13;p=kivitendo-erp.git
diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html
index 5b189ec77..568324e28 100644
--- a/templates/webpages/csv_import/form.html
+++ b/templates/webpages/csv_import/form.html
@@ -2,16 +2,20 @@
[%- USE LxERP %]
[%- USE L %]
[%- USE T8 %]
-
-
[%- IF SELF.deferred %]
[%- PROCESS 'csv_import/_deferred_results.html' %]
- [%- ELSIF SELF.import_status %]
- [%- PROCESS 'csv_import/_results.html' %]
- [%- END %]
+ [%- END %][%# IF SELF.deferred %]
@@ -299,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() });
});
-->