[+] BO : Page header toolbar
This commit is contained in:
@@ -55,6 +55,18 @@ class AdminAttachmentsControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Attachments');
|
||||||
|
$this->page_header_toolbar_btn['new_attachment'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addattachment&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new attachment'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
$this->fields_form = array(
|
$this->fields_form = array(
|
||||||
|
|||||||
@@ -212,6 +212,23 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
return parent::renderForm();
|
return parent::renderForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Features');
|
||||||
|
$this->page_header_toolbar_btn['new_feature'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addfeature&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new feature'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
$this->page_header_toolbar_btn['new_feature_value'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addfeature_value&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new feature value'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdminController::initToolbar() override
|
* AdminController::initToolbar() override
|
||||||
* @see AdminController::initToolbar()
|
* @see AdminController::initToolbar()
|
||||||
|
|||||||
@@ -97,6 +97,23 @@ class AdminManufacturersControllerCore extends AdminController
|
|||||||
$this->addJqueryPlugin('tagify');
|
$this->addJqueryPlugin('tagify');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Manufacturers');
|
||||||
|
$this->page_header_toolbar_btn['new_manufacturer'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addmanufacturer&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new manufacturer'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
$this->page_header_toolbar_btn['new_manufacturer_address'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addaddress&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new manufacturer address'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function initListManufacturer()
|
public function initListManufacturer()
|
||||||
{
|
{
|
||||||
$this->addRowAction('view');
|
$this->addRowAction('view');
|
||||||
|
|||||||
@@ -112,6 +112,18 @@ class AdminScenesControllerCore extends AdminController
|
|||||||
return parent::renderForm();
|
return parent::renderForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Scenes');
|
||||||
|
$this->page_header_toolbar_btn['new_scene'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addscene&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new scene'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function initToolbar()
|
public function initToolbar()
|
||||||
{
|
{
|
||||||
parent::initToolbar();
|
parent::initToolbar();
|
||||||
|
|||||||
@@ -70,6 +70,18 @@ class AdminSuppliersControllerCore extends AdminController
|
|||||||
$this->addJqueryPlugin('tagify');
|
$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()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
// loads current warehouse
|
// loads current warehouse
|
||||||
|
|||||||
@@ -64,6 +64,18 @@ class AdminTagsControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Tags');
|
||||||
|
$this->page_header_toolbar_btn['new_tag'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addtag&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new tag'),
|
||||||
|
'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