From 5b203cf789302268b2bbad635216cdc11089d80c Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 4 Oct 2013 13:51:38 +0200 Subject: [PATCH] // Remove languages select when only one language --- .../controllers/cart_rules/informations.tpl | 30 +++++++++++-------- .../template/helpers/options/options.tpl | 8 +++++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/cart_rules/informations.tpl b/admin-dev/themes/default/template/controllers/cart_rules/informations.tpl index 715bb7079..249aa3fbe 100644 --- a/admin-dev/themes/default/template/controllers/cart_rules/informations.tpl +++ b/admin-dev/themes/default/template/controllers/cart_rules/informations.tpl @@ -7,25 +7,29 @@
{foreach from=$languages item=language} + {if $languages|count > 1}
-
+
+ {/if} -
- - -
+ {if $languages|count > 1}
+
+ + +
+ {/if} {/foreach}
diff --git a/admin-dev/themes/default/template/helpers/options/options.tpl b/admin-dev/themes/default/template/helpers/options/options.tpl index be76e0a16..42ede4696 100644 --- a/admin-dev/themes/default/template/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/helpers/options/options.tpl @@ -230,13 +230,18 @@
{foreach $field['languages'] AS $id_lang => $value} + {if $field['languages']|count > 1}
+ {else} +
+ {/if} + {if $field['languages']|count > 1}
+ {else} +
+ {/if} {/foreach}