[+] BO : Products page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-27 18:23:38 +02:00
parent f60fe74336
commit 4f022c48f8
3 changed files with 41 additions and 0 deletions
@@ -2400,6 +2400,18 @@ class AdminProductsControllerCore extends AdminController
$this->tpl_form_vars['draft_warning'] = $content;
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Products');
$this->page_header_toolbar_btn['new_product'] = array(
'href' => self::$currentIndex.'&addproduct&token='.$this->token,
'desc' => $this->l('Add new product'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function initToolbar()
{
parent::initToolbar();