[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-28 11:16:36 +02:00
parent 4a7e68ae05
commit 9d991f3474
2 changed files with 24 additions and 0 deletions

View File

@@ -50,6 +50,18 @@ class AdminRangePriceControllerCore extends AdminController
parent::__construct();
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Price ranges');
$this->page_header_toolbar_btn['new_price_range'] = array(
'href' => self::$currentIndex.'&addrange_price&token='.$this->token,
'desc' => $this->l('Add new price range'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function renderForm()
{
$currency = $this->context->currency;

View File

@@ -50,6 +50,18 @@ class AdminRangeWeightControllerCore extends AdminController
parent::__construct();
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Weight ranges');
$this->page_header_toolbar_btn['new_weight_range'] = array(
'href' => self::$currentIndex.'&addrange_weight&token='.$this->token,
'desc' => $this->l('Add new weight range'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function renderForm()
{
$carriers = Carrier::getCarriers($this->context->language->id, true, false, false, null, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE);