From 72b046d5f005e2440ddd3ab6daf2c8b61ff10e0c Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Fri, 26 Jul 2013 10:21:23 +0200 Subject: [PATCH] [+] BO Manufacturers --- .../themes/default/template/helpers/form/form.tpl | 3 ++- controllers/admin/AdminManufacturersController.php | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/form/form.tpl b/admin-dev/themes/default/template/helpers/form/form.tpl index 327a63d5c..3f61c0af5 100644 --- a/admin-dev/themes/default/template/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/helpers/form/form.tpl @@ -47,7 +47,8 @@
{$field}
{elseif $key == 'input'} {foreach $field as $input} -
+ +
{if $input.type == 'hidden'} {else} diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index cec7599b8..7a8738bc6 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -223,7 +223,7 @@ class AdminManufacturersControllerCore extends AdminController 'tinymce' => true, 'legend' => array( 'title' => $this->l('Manufacturers:'), - 'image' => '../img/admin/manufacturers.gif' + 'icon' => 'icon-certificate' ), 'input' => array( array( @@ -275,11 +275,13 @@ class AdminManufacturersControllerCore extends AdminController 'label' => $this->l('Meta keywords:'), 'name' => 'meta_keywords', 'lang' => true, - 'hint' => $this->l('Forbidden characters:').' <>;=#{}', - 'desc' => $this->l('To add "tags," click inside the field, write something, and then press "Enter."') + 'hint' => array( + $this->l('Forbidden characters:').' <>;=#{}', + $this->l('To add "tags," click inside the field, write something, and then press "Enter."') + ) ), array( - 'type' => 'radio', + 'type' => 'switch', 'label' => $this->l('Enable:'), 'name' => 'active', 'required' => false, @@ -356,7 +358,7 @@ class AdminManufacturersControllerCore extends AdminController $form = array( 'legend' => array( 'title' => $this->l('Addresses'), - 'image' => '../img/admin/contact.gif' + 'icon' => 'icon-building' ) );