From b7e13e2e7fd6da5b33cee745d30ac50dd58cc562 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 8 Oct 2013 11:54:57 +0200 Subject: [PATCH] // Code cleaning --- .../controllers/products/combinations.tpl | 94 +++++++++---------- .../controllers/products/informations.tpl | 2 +- .../controllers/products/input_text_lang.tpl | 2 +- .../controllers/products/virtualproduct.tpl | 2 +- admin-dev/themes/default/template/header.tpl | 6 +- 5 files changed, 49 insertions(+), 57 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/combinations.tpl b/admin-dev/themes/default/template/controllers/products/combinations.tpl index cb3f2ec44..58c4b8fdc 100644 --- a/admin-dev/themes/default/template/controllers/products/combinations.tpl +++ b/admin-dev/themes/default/template/controllers/products/combinations.tpl @@ -22,48 +22,57 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} +{if isset($product->id) && !$product->is_virtual}
+ - {if isset($product->id) && !$product->is_virtual} - - + -

{l s='Add or modify combinations for this product.'}

-
- {l s='Or use the'}  {l s='Product combinations generator'} {l s='in order to automatically create a set of combinations.'} -
- - {if $combination_exists} -
- {l s='Some combinations already exist. If you want to generate new combinations, the quantities for the existing combinations will be lost.'}
- {l s='You can add a combination by clicking the link "Add new combination" on the toolbar.'} -
- {/if} - {if isset($display_multishop_checkboxes) && $display_multishop_checkboxes} -
- {include file="controllers/products/multishop/check_fields.tpl" product_tab="Combinations"} - {/if} +

{l s='Add or modify combinations for this product.'}

+
+ {l s='Or use the'}  {l s='Product combinations generator'} {l s='in order to automatically create a set of combinations.'} +
+ + {if $combination_exists} +
+ {l s='Some combinations already exist. If you want to generate new combinations, the quantities for the existing combinations will be lost.'}
+ {l s='You can add a combination by clicking the link "Add new combination" on the toolbar.'} +
+ {/if} + {if isset($display_multishop_checkboxes) && $display_multishop_checkboxes} +
+ {include file="controllers/products/multishop/check_fields.tpl" product_tab="Combinations"} + {/if} - - -
@@ -163,8 +166,6 @@
- -
\ No newline at end of file + +{/if} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/products/informations.tpl b/admin-dev/themes/default/template/controllers/products/informations.tpl index de610cab1..006082bf1 100644 --- a/admin-dev/themes/default/template/controllers/products/informations.tpl +++ b/admin-dev/themes/default/template/controllers/products/informations.tpl @@ -350,7 +350,7 @@
- {l s='Do you want an image associated with the product in your description?'} + {l s='Would you like to add an image in your description?'} {l s='Click here'}.
diff --git a/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl b/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl index c1255702e..1080a4f7f 100644 --- a/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl +++ b/admin-dev/themes/default/template/controllers/products/input_text_lang.tpl @@ -40,7 +40,7 @@ onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();" onblur="updateLinkRewrite();" {if isset($maxchar)} data-maxchar="{$maxchar}"{/if} - {if isset($maxlength)} maxlength="{$maxlength}"{/if}> + {if isset($maxlength)} maxlength="{$maxlength}"{/if} /> {if isset($maxchar)}
{/if} diff --git a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl index 2ad6848ee..7c2800213 100644 --- a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl +++ b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl @@ -26,7 +26,7 @@