diff --git a/admin-dev/themes/template/helper/form/form.tpl b/admin-dev/themes/template/helper/form/form.tpl index 76befe06b..41cb4f276 100644 --- a/admin-dev/themes/template/helper/form/form.tpl +++ b/admin-dev/themes/template/helper/form/form.tpl @@ -72,15 +72,33 @@ {block name="start_field_block"}
{/block} - {if $input.type == 'text'} + {if $input.type == 'text' || $input.type == 'tags'} {if isset($input.lang)}
{foreach $languages as $language}
+ + {if $input.type == 'tags'} + {literal} + + {/literal} + {/if} {else} + {if $input.type == 'tags'} + {literal} + + {/literal} + {/if} addJqueryUi('ui.widget'); + $this->addJqueryPlugin('tagify'); + } public function initList() { @@ -259,7 +266,7 @@ class AdminCategoriesControllerCore extends AdminController 'hint' => $this->l('Forbidden characters:').' <>;=#{}' ), array( - 'type' => 'text', + 'type' => 'tags', 'label' => $this->l('Meta keywords:'), 'name' => 'meta_keywords', 'lang' => true, diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index a9070d1d2..9e4bcb808 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -89,7 +89,13 @@ class AdminManufacturersControllerCore extends AdminController parent::__construct(); } - + + public function setMedia() + { + parent::setMedia(); + $this->addJqueryUi('ui.widget'); + $this->addJqueryPlugin('tagify'); + } public function initListManufacturer() { @@ -284,7 +290,7 @@ class AdminManufacturersControllerCore extends AdminController 'hint' => $this->l('Forbidden characters:').' <>;=#{}' ), array( - 'type' => 'text', + 'type' => 'tags', 'label' => $this->l('Meta keywords:'), 'name' => 'meta_keywords', 'lang' => true, diff --git a/controllers/admin/AdminMetaController.php b/controllers/admin/AdminMetaController.php index 894f019fc..74d309a3d 100644 --- a/controllers/admin/AdminMetaController.php +++ b/controllers/admin/AdminMetaController.php @@ -76,7 +76,14 @@ class AdminMetaControllerCore extends AdminController $this->options['routes']['submit'] = array(); } } - + + public function setMedia() + { + parent::setMedia(); + $this->addJqueryUi('ui.widget'); + $this->addJqueryPlugin('tagify'); + } + public function addFieldRoute($routeID, $title) { $keywords = array(); @@ -122,7 +129,6 @@ class AdminMetaControllerCore extends AdminController 'desc' => $this->l('Name of the related page'), 'required' => true, 'empty_message' => '

'.$this->l('There is no page available!').'

', - 'size' => 30 ), array( 'type' => 'text', @@ -143,7 +149,7 @@ class AdminMetaControllerCore extends AdminController 'size' => 50 ), array( - 'type' => 'text', + 'type' => 'tags', 'label' => $this->l('Meta keywords:'), 'name' => 'keywords', 'lang' => true, diff --git a/controllers/admin/AdminSuppliersController.php b/controllers/admin/AdminSuppliersController.php index 88babcd42..ea955fb22 100644 --- a/controllers/admin/AdminSuppliersController.php +++ b/controllers/admin/AdminSuppliersController.php @@ -53,7 +53,14 @@ class AdminSuppliersControllerCore extends AdminController parent::__construct(); } - + + public function setMedia() + { + parent::setMedia(); + $this->addJqueryUi('ui.widget'); + $this->addJqueryPlugin('tagify'); + } + public function initForm() { $this->fields_form = array( @@ -101,7 +108,7 @@ class AdminSuppliersControllerCore extends AdminController 'hint' => $this->l('Forbidden characters:').' <>;=#{}' ), array( - 'type' => 'text', + 'type' => 'tags', 'label' => $this->l('Meta keywords:'), 'name' => 'meta_keywords', 'lang' => true,