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 7186f2e76..f6d4c2012 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 @@ -201,11 +201,11 @@

-
- + @@ -228,22 +228,22 @@
- -
- +
+
+
+ + {if empty($files_to_import)} +
{l s='You must upload a file in order to proceed to the next step'}
+ {/if} - {if empty($files_to_import)} -
{l s='You must upload a file in order to proceed to the next step'}
- {/if} - -
-

{l s='Note that the category import does not support categories of the same name.'}

-

{l s='Note that you can have several products with the same reference.'}

-
-
-

{l s='Importing Supply Order Details will reset products ordered, if there are any.'}

-
+
+

{l s='Note that the category import does not support categories of the same name.'}

+

{l s='Note that you can have several products with the same reference.'}

+
+
+

{l s='Importing Supply Order Details will reset products ordered, if there are any.'}

+
{if !count($files_to_import)}

{l s='There is no CSV file available. Please upload one using the \'Upload\' button above.'}

@@ -305,9 +305,9 @@ $('input[name=multiple_value_separator]').val('{if isset($multiple_value_separator_selected)}{$multiple_value_separator_selected}{else},{/if}'); } if ($("#entity > option:selected").val() == 1) - $("label[for=match_ref], #match_ref").show(); + $("#match_ref").closest('.form-group.').show(); else - $("label[for=match_ref], #match_ref").hide(); + $("#match_ref").closest('.form-group.').hide(); if ($("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 0) $(".import_products_categories").show(); @@ -316,14 +316,14 @@ if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6) - $("label[for=regenerate], #regenerate").show() + $("#regenerate").closest('.form-group.').show(); else - $("label[for=regenerate], #regenerate").hide(); + $("#regenerate").closest('.form-group.').hide(); if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 3 || $("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6 || $("#entity > option:selected").val() == 7) - $("label[for=forceIDs], #forceIDs").show(); + $("#forceIDs").closest('.form-group.').show(); else - $("label[for=forceIDs], #forceIDs").hide(); + $("#forceIDs").closest('.form-group.').hide(); $("#entitie").html($("#entity > option:selected").text().toLowerCase()); $.ajax({ url: 'ajax.php',