[+] BO : Products page header toolbar
This commit is contained in:
1 parent
f60fe74336
commit
4f022c48f8
3 files changed
+41
No files matched your search
@@ -467,6 +467,23 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Products');
|
||||||
|
$this->page_header_toolbar_btn['new_attribute_group'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addattribute_group&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new attribute'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
$this->page_header_toolbar_btn['new_value'] = array(
|
||||||
|
'href' => self::$currentIndex.'&updateattribute&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new value'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function initToolbar()
|
public function initToolbar()
|
||||||
{
|
{
|
||||||
switch ($this->display)
|
switch ($this->display)
|
||||||
|
|||||||
@@ -155,6 +155,18 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Categories');
|
||||||
|
$this->page_header_toolbar_btn['new_category'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addcategory&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new category'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
if ($this->action == 'select_delete')
|
if ($this->action == 'select_delete')
|
||||||
|
|||||||
@@ -2400,6 +2400,18 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$this->tpl_form_vars['draft_warning'] = $content;
|
$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()
|
public function initToolbar()
|
||||||
{
|
{
|
||||||
parent::initToolbar();
|
parent::initToolbar();
|
||||||
|
|||||||
Reference in new issue
Block a user