[-] BO : Page header toolbar
This commit is contained in:
@@ -95,6 +95,18 @@ class AdminLanguagesControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Languages');
|
||||||
|
$this->page_header_toolbar_btn['new_language'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addlang&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new language'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderList()
|
public function renderList()
|
||||||
{
|
{
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
|
|||||||
@@ -135,6 +135,13 @@ class AdminLocalizationControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Localizations');
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
{
|
{
|
||||||
if (Tools::isSubmit('submitLocalizationPack'))
|
if (Tools::isSubmit('submitLocalizationPack'))
|
||||||
|
|||||||
@@ -79,6 +79,18 @@ class AdminStatesControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('States');
|
||||||
|
$this->page_header_toolbar_btn['new_state'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addstate&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new state'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderList()
|
public function renderList()
|
||||||
{
|
{
|
||||||
$this->_select = 'z.`name` AS zone';
|
$this->_select = 'z.`name` AS zone';
|
||||||
|
|||||||
@@ -65,6 +65,18 @@ class AdminTaxRulesGroupControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Tax rules groups');
|
||||||
|
$this->page_header_toolbar_btn['new_tax_rules_group'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addtax_rules_group&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new tax rules group'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderList()
|
public function renderList()
|
||||||
{
|
{
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
|
|||||||
@@ -60,6 +60,18 @@ class AdminZonesControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Zones');
|
||||||
|
$this->page_header_toolbar_btn['new_zone'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addzone&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new zone'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderList()
|
public function renderList()
|
||||||
{
|
{
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
|
|||||||
Reference in New Issue
Block a user