[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-27 18:42:24 +02:00
parent 083eba3431
commit 62b4a3cd5e
6 changed files with 82 additions and 0 deletions
@@ -55,6 +55,18 @@ class AdminAttachmentsControllerCore extends AdminController
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()
{
$this->fields_form = array(