From 12f3a150a72fd15dd2132e8cae0639c09a0adc3f Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Wed, 20 Nov 2013 17:29:35 +0100 Subject: [PATCH] // bootraping of import csv view --- .../controllers/import/helpers/form/form.tpl | 78 +++++++------ .../controllers/import/helpers/view/view.tpl | 108 +++++++++++------- 2 files changed, 106 insertions(+), 80 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 f6d4c2012..846e132a1 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 @@ -29,45 +29,44 @@ {l s='Your .CSV file has been sucessfully imported into your shop. Don\'t forget to Re-build the products search index.'} {/if} -
-
-
{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}. -

+ {* Import fieldset *} @@ -93,6 +92,7 @@ {/foreach} +
 
{/if} @@ -132,10 +132,10 @@

-
- + {if empty($files_to_import)}
{l s='You must upload a file in order to proceed to the next step'}
{/if} @@ -274,7 +274,11 @@ $("a#upload_file_import_link").fancybox({ 'titleShow' : false, 'transitionIn' : 'elastic', - 'transitionOut' : 'elastic' + 'transitionOut' : 'elastic', + 'autoDimensions' : false, + 'autoSize' : false, + 'width' : 700, + 'height' : 300 }); $('#preview_import').submit(function(e){ diff --git a/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl index 97abf07a2..9f25e6e44 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/view/view.tpl @@ -51,7 +51,7 @@ var btn_submit_import = $('#import'); if (btn_save_import.length > 0 && btn_submit_import.length > 0) { - btn_submit_import.hide(); + btn_submit_import.closest('.form-group').hide(); btn_save_import.find('span').removeClass('process-icon-save-import'); btn_save_import.find('span').addClass('process-icon-save'); btn_save_import.click(function(){ @@ -62,31 +62,43 @@ showTable(current); }); -
-

{l s='View your data'}

-
- {l s='Save and load your configuration for importing files'} :

- - {l s='Save'}

-
- - {l s='Load'} - {l s='Delete'} +
+

{l s='View your data'}

+
+
+ +
+ +
+ +
+
+ +
+ +
+
-

{l s='Please set the value type of each column'}

-