[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-28 14:14:04 +02:00
parent c8d9b9bf3a
commit 1fd6540574
6 changed files with 53 additions and 0 deletions
@@ -147,6 +147,23 @@ class AdminSupplyOrdersControllerCore extends AdminController
}
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Supply orders');
$this->page_header_toolbar_btn['new_supply_order'] = array(
'href' => self::$currentIndex.'&addsupply_order&token='.$this->token,
'desc' => $this->l('Add new supply order'),
'icon' => 'process-icon-new'
);
$this->page_header_toolbar_btn['new_supply_order_template'] = array(
'href' => self::$currentIndex.'&addsupply_order&mod=template&token='.$this->token,
'desc' => $this->l('Add new supply order template'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
/**
* AdminController::renderForm() override
* @see AdminController::renderForm()