From 5f52a9e1716eaac5e098eb5aa6f60d5dc0708be1 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Fri, 18 Oct 2013 18:38:02 +0200 Subject: [PATCH] // fix products --- admin-dev/themes/default/css/admin-theme.css | 6 ++ .../default/css/admin-theme/_admin-tree.sass | 7 +- .../controllers/products/associations.tpl | 15 ++- .../controllers/products/customization.tpl | 8 +- .../products/helpers/form/form.tpl | 11 +- .../helpers/tree/tree_associated_header.tpl | 6 +- .../products/helpers/tree/tree_toolbar.tpl | 6 +- .../controllers/products/informations.tpl | 15 +-- .../template/controllers/products/prices.tpl | 81 ++++++++------ .../controllers/products/quantities.tpl | 100 ++++++++++-------- .../template/controllers/products/seo.tpl | 32 +++--- .../controllers/products/shipping.tpl | 36 +++---- .../helpers/tree/tree_toolbar_link.tpl | 2 +- .../helpers/tree/tree_toolbar_search.tpl | 9 +- controllers/admin/AdminProductsController.php | 47 ++++---- js/admin-products.js | 18 ++-- js/admin.js | 6 +- 17 files changed, 220 insertions(+), 185 deletions(-) diff --git a/admin-dev/themes/default/css/admin-theme.css b/admin-dev/themes/default/css/admin-theme.css index b6553f1ee..762e201f5 100644 --- a/admin-dev/themes/default/css/admin-theme.css +++ b/admin-dev/themes/default/css/admin-theme.css @@ -8390,6 +8390,12 @@ td.actions { padding-bottom: 4px; display: inline-block; } +/* line 36, admin-theme/_admin-tree.sass */ +.tree-panel-heading-controls { + margin: -20px -20px 20px; + padding: 5px; + border-bottom: solid 1px #dfdfdf; } + /* line 2, admin-theme/_admin-forms.sass */ label.control-label { font-size: 13px; diff --git a/admin-dev/themes/default/css/admin-theme/_admin-tree.sass b/admin-dev/themes/default/css/admin-theme/_admin-tree.sass index 87f46d24f..e035b405a 100644 --- a/admin-dev/themes/default/css/admin-theme/_admin-tree.sass +++ b/admin-dev/themes/default/css/admin-theme/_admin-tree.sass @@ -31,4 +31,9 @@ background-color: none .tree-actions padding-bottom: 4px - display: inline-block \ No newline at end of file + display: inline-block + +.tree-panel-heading-controls + margin: -20px -20px 20px + padding: 5px + border-bottom: solid 1px #DFDFDF \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/products/associations.tpl b/admin-dev/themes/default/template/controllers/products/associations.tpl index b34ecba58..56e4981b0 100644 --- a/admin-dev/themes/default/template/controllers/products/associations.tpl +++ b/admin-dev/themes/default/template/controllers/products/associations.tpl @@ -70,15 +70,20 @@
- +
+ + +
+
- {* @todo : donot use 3 foreach, but assign var *} {foreach from=$accessories item=accessory} +
+ {$accessory.name|escape:'htmlall':'UTF-8'}{if !empty($accessory.reference)}{$accessory.reference}{/if} - - - +
{/foreach}
diff --git a/admin-dev/themes/default/template/controllers/products/customization.tpl b/admin-dev/themes/default/template/controllers/products/customization.tpl index 86f8c6f6b..cdf0ddbd7 100644 --- a/admin-dev/themes/default/template/controllers/products/customization.tpl +++ b/admin-dev/themes/default/template/controllers/products/customization.tpl @@ -30,7 +30,7 @@ {include file="controllers/products/multishop/check_fields.tpl" product_tab="Customization"} -
+
-
+