From 6f2358a0dabfa83f1cd91e69721f02be684d1d4a Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 7 Oct 2013 14:16:41 +0200 Subject: [PATCH] // Manufacturer view bootstraped --- .../manufacturers/helpers/view/view.tpl | 38 +++++++++---------- .../admin/AdminManufacturersController.php | 3 ++ 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/manufacturers/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/manufacturers/helpers/view/view.tpl index 96021a35d..00f822257 100644 --- a/admin-dev/themes/default/template/controllers/manufacturers/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/manufacturers/helpers/view/view.tpl @@ -26,20 +26,23 @@ {extends file="helpers/view/view.tpl"} {block name="override_tpl"} -
-

{$manufacturer->name}

- {l s='Total addresses'} {count($addresses)} +
+

{l s='Addresses'} {count($addresses)}

{if !count($addresses)} {l s='No address has been found for this manufacturer.'} {else} {foreach $addresses AS $addresse} +
+
+ {$addresse.firstname} {$addresse.lastname} + +
+ - - - - - - - - - -
{$addresse.firstname} {$addresse.lastname} -
@@ -56,20 +59,13 @@
- - - {l s='Edit'} -
+
{/foreach} {/if} - - {l s='Total products'} {count($products)} +
+
+

{l s='Products'} {count($products)}

{foreach $products AS $product} {if !$product->hasAttributes()} @@ -146,5 +142,5 @@
{/if} {/foreach} - + {/block} diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index 9ca07b529..f854ee81c 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -596,6 +596,9 @@ class AdminManufacturersControllerCore extends AdminController 'href' => $this->context->link->getAdminLink('AdminManufacturers').'&addaddress=1&id_manufacturer='.(int)$manufacturer->id, 'desc' => $this->l('Add address') ); + + $this->toolbar_title = is_array($this->breadcrumbs) ? array_unique($this->breadcrumbs) : array($this->breadcrumbs); + $this->toolbar_title[] = $manufacturer->name; $addresses = $manufacturer->getAddresses($this->context->language->id);