[+] 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
@@ -70,6 +70,18 @@ class AdminSuppliersControllerCore extends AdminController
$this->addJqueryPlugin('tagify');
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Suppliers');
$this->page_header_toolbar_btn['new_supplier'] = array(
'href' => self::$currentIndex.'&addsupplier&token='.$this->token,
'desc' => $this->l('Add new supplier'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function renderForm()
{
// loads current warehouse