From 730fb9ca496534ce871ef5523a2a740b406dac81 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 14 Dec 2011 10:05:49 +0000 Subject: [PATCH] // Press "enter" is now blocked for AdminProductsController templates --- .../themes/template/products/accounting.tpl | 12 +++++++ .../themes/template/products/associations.tpl | 12 +++++++ .../themes/template/products/attachments.tpl | 12 +++++++ .../themes/template/products/combinations.tpl | 12 +++++++ .../template/products/customization.tpl | 13 +++++++ .../themes/template/products/features.tpl | 12 +++++++ admin-dev/themes/template/products/form.tpl | 6 +++- admin-dev/themes/template/products/images.tpl | 12 +++++++ .../themes/template/products/informations.tpl | 12 +++++++ admin-dev/themes/template/products/prices.tpl | 35 +++++++++++++------ .../themes/template/products/quantities.tpl | 12 +++++++ .../themes/template/products/shipping.tpl | 12 +++++++ .../themes/template/products/suppliers.tpl | 12 +++++++ .../themes/template/products/warehouses.tpl | 12 +++++++ 14 files changed, 174 insertions(+), 12 deletions(-) diff --git a/admin-dev/themes/template/products/accounting.tpl b/admin-dev/themes/template/products/accounting.tpl index ae82abf5b..594325385 100644 --- a/admin-dev/themes/template/products/accounting.tpl +++ b/admin-dev/themes/template/products/accounting.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)}

{l s='Accounting'}

diff --git a/admin-dev/themes/template/products/associations.tpl b/admin-dev/themes/template/products/associations.tpl index 1bdd818b1..28132ebb4 100644 --- a/admin-dev/themes/template/products/associations.tpl +++ b/admin-dev/themes/template/products/associations.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + +

{l s='Product price'}

diff --git a/admin-dev/themes/template/products/attachments.tpl b/admin-dev/themes/template/products/attachments.tpl index 0c2d27f29..0dcd3034c 100644 --- a/admin-dev/themes/template/products/attachments.tpl +++ b/admin-dev/themes/template/products/attachments.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($obj->id)}

{l s='Attachment'}

diff --git a/admin-dev/themes/template/products/combinations.tpl b/admin-dev/themes/template/products/combinations.tpl index f3e12cf12..aa1ac4c7f 100644 --- a/admin-dev/themes/template/products/combinations.tpl +++ b/admin-dev/themes/template/products/combinations.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)} + {if isset($obj->id)}

{l s='Add or modify customizable properties'}

diff --git a/admin-dev/themes/template/products/features.tpl b/admin-dev/themes/template/products/features.tpl index 50f7ab40e..440970fa0 100644 --- a/admin-dev/themes/template/products/features.tpl +++ b/admin-dev/themes/template/products/features.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)}

{l s='Assign features to this product:'}

diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index b4b24e265..3417e57d5 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -142,9 +142,11 @@ else $('#desc-product-newCombination').hide(); }); + {if $show_product_tab_content} $("div.productTabs a[id$=-{$show_product_tab_content}]").click(); {/if} + }); @@ -279,7 +281,9 @@ {foreach $product_tabs key=numStep item=tab}
- {if $tab.selected}{$custom_form}{/if} + {if $tab.selected} + {$custom_form} + {/if}
{/foreach}
diff --git a/admin-dev/themes/template/products/images.tpl b/admin-dev/themes/template/products/images.tpl index f256f0c6b..00791bfb5 100644 --- a/admin-dev/themes/template/products/images.tpl +++ b/admin-dev/themes/template/products/images.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($id_product) && isset($product)}

2. {l s='Images'} ({$countImages})

{if isset($id_image)}{l s='Edit this product image'}{else}{l s='Add a new image to this product'}{/if}


diff --git a/admin-dev/themes/template/products/informations.tpl b/admin-dev/themes/template/products/informations.tpl index da6c2b03a..9b854d8e2 100644 --- a/admin-dev/themes/template/products/informations.tpl +++ b/admin-dev/themes/template/products/informations.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + +

1. {l s='Info.'}

{l s='Product global information'}

diff --git a/admin-dev/themes/template/products/prices.tpl b/admin-dev/themes/template/products/prices.tpl index 78d284f33..4db6d334e 100644 --- a/admin-dev/themes/template/products/prices.tpl +++ b/admin-dev/themes/template/products/prices.tpl @@ -24,7 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} - + +

{l s='Product price'}

@@ -209,15 +220,17 @@
@@ -284,4 +297,4 @@ calcPriceTI(); unitPriceWithTax('unit'); - {/if} \ No newline at end of file + {/if} \ No newline at end of file diff --git a/admin-dev/themes/template/products/quantities.tpl b/admin-dev/themes/template/products/quantities.tpl index 9ee668f9e..38013ea13 100644 --- a/admin-dev/themes/template/products/quantities.tpl +++ b/admin-dev/themes/template/products/quantities.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)}

{l s='Available quantities for sale'}

diff --git a/admin-dev/themes/template/products/shipping.tpl b/admin-dev/themes/template/products/shipping.tpl index 9293bdcb5..2e9d6074e 100644 --- a/admin-dev/themes/template/products/shipping.tpl +++ b/admin-dev/themes/template/products/shipping.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + +

1. {l s='Info.'}

{l s='Shipping'}

diff --git a/admin-dev/themes/template/products/suppliers.tpl b/admin-dev/themes/template/products/suppliers.tpl index 018b62134..9c7d42f31 100644 --- a/admin-dev/themes/template/products/suppliers.tpl +++ b/admin-dev/themes/template/products/suppliers.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)}

{l s='Suppliers of the current product'}

diff --git a/admin-dev/themes/template/products/warehouses.tpl b/admin-dev/themes/template/products/warehouses.tpl index afedfed50..6eb0e1ffc 100644 --- a/admin-dev/themes/template/products/warehouses.tpl +++ b/admin-dev/themes/template/products/warehouses.tpl @@ -24,6 +24,18 @@ * International Registered Trademark & Property of PrestaShop SA *} + + {if isset($product->id)}

{l s='Product location in warehouses'}