[+] BO : Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-28 09:37:49 +02:00
parent 068da6f87c
commit 967fc98693
6 changed files with 73 additions and 0 deletions
@@ -83,6 +83,18 @@ class AdminAddressesControllerCore extends AdminController
);
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Addresses');
$this->page_header_toolbar_btn['new_address'] = array(
'href' => self::$currentIndex.'&addaddress&token='.$this->token,
'desc' => $this->l('Add new address'),
'icon' => 'process-icon-new'
);
parent::initPageHeaderToolbar();
}
public function renderForm()
{
$this->fields_form = array(
@@ -130,6 +142,8 @@ class AdminAddressesControllerCore extends AdminController
'label' => $this->l('Other'),
'name' => 'other',
'required' => false,
'cols' => 15,
'rows' => 3,
'hint' => $this->l('Forbidden characters:').' <>;=#{}'
),
),