[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-27 18:42:24 +02:00
parent 083eba3431
commit 62b4a3cd5e
6 changed files with 82 additions and 0 deletions
@@ -97,6 +97,23 @@ class AdminManufacturersControllerCore extends AdminController
$this->addJqueryPlugin('tagify');
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Manufacturers');
$this->page_header_toolbar_btn['new_manufacturer'] = array(
'href' => self::$currentIndex.'&addmanufacturer&token='.$this->token,
'desc' => $this->l('Add new manufacturer'),
'icon' => 'process-icon-new'
);
$this->page_header_toolbar_btn['new_manufacturer_address'] = array(
'href' => self::$currentIndex.'&addaddress&token='.$this->token,
'desc' => $this->l('Add new manufacturer address'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function initListManufacturer()
{
$this->addRowAction('view');