From a80402d019a9bffd451eeffef8660fad223b0a5d Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 16 Feb 2012 16:48:07 +0000 Subject: [PATCH] [-] FO : #PSTEST-771 - Add description to supplier's product list --- controllers/admin/AdminSuppliersController.php | 5 +++-- themes/default/supplier.tpl | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminSuppliersController.php b/controllers/admin/AdminSuppliersController.php index c25fb92f7..d805bfc84 100644 --- a/controllers/admin/AdminSuppliersController.php +++ b/controllers/admin/AdminSuppliersController.php @@ -86,10 +86,11 @@ class AdminSuppliersControllerCore extends AdminController 'hint' => $this->l('Invalid characters:').' <>;=#{}', ), array( - 'type' => 'text', + 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', - 'size' => 33, + 'cols' => 60, + 'rows' => 10, 'lang' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'desc' => $this->l('Will appear in supplier list') diff --git a/themes/default/supplier.tpl b/themes/default/supplier.tpl index 0214e7f8a..50493859d 100644 --- a/themes/default/supplier.tpl +++ b/themes/default/supplier.tpl @@ -30,6 +30,11 @@ {if !isset($errors) OR !sizeof($errors)}

{l s='List of products by supplier:'} {$supplier->name|escape:'htmlall':'UTF-8'}

+ {if !empty($supplier->description)} +
+

{$supplier->description}

+
+ {/if} {if $products}