From 81042db718ed31cdbbec8524b83633e81d0f638d Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 21 Oct 2013 11:24:56 +0200 Subject: [PATCH] // CSV import uploader bootstraping --- .../controllers/import/helpers/form/form.tpl | 69 ++++++++++++++----- 1 file changed, 50 insertions(+), 19 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl index 0304773f7..0930d0edc 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl @@ -25,27 +25,46 @@
{block name="leadin"}{/block}
{if $module_confirmation} -
- {l s='Your .CSV file has been sucessfully imported into your shop.'} -
+
+ {l s='Your .CSV file has been sucessfully imported into your shop.'} +
{/if}
-
-
 
-
- -
- -

- {l s='You can also upload your file via FTP to the following directory:'} {$path_import}. -

-
- -
- -

- {l s='Only UTF-8 and ISO-8859-1 encoding are allowed'} -

+
+
{l s='Only UTF-8 and ISO-8859-1 encoding are allowed'}
+ +
+
+ +
+
+
+ +
+ + + + + +
+
+
+
+
+

+ {l s='You can also upload your file via FTP to the following directory:'} {$path_import}. +

+
+
+
+
+
+
+ +
+
@@ -328,5 +347,17 @@ showTitle: false }); }; + + $('#file-selectbutton').click(function(e){ + $('#file').trigger('click'); + }); + $('#file-name').click(function(e){ + $('#file').trigger('click'); + }); + $('#file').change(function(e){ + var val = $(this).val(); + var file = val.split(/[\\/]/); + $('#file-name').val(file[file.length-1]); + }); });