DataField: Add an action and a tab to config tabs
This commit is contained in:
parent
c31b7c7fa4
commit
ee44f461ab
|
@ -20,6 +20,14 @@ class Director_ListController extends ActionController
|
|||
$this->render('table');
|
||||
}
|
||||
|
||||
public function datafieldAction()
|
||||
{
|
||||
$this->setConfigTabs()->activate('datafield');
|
||||
$this->view->title = $this->translate('Data fields');
|
||||
$this->view->table = $this->loadTable('datafield')->setConnection($this->db());
|
||||
$this->render('table');
|
||||
}
|
||||
|
||||
public function generatedconfigAction()
|
||||
{
|
||||
$this->view->addLink = $this->view->qlink(
|
||||
|
|
|
@ -45,6 +45,9 @@ abstract class ActionController extends Controller
|
|||
)->add('datalist', array(
|
||||
'label' => $this->translate('Data lists'),
|
||||
'url' => 'director/list/datalist')
|
||||
)->add('datafield', array(
|
||||
'label' => $this->translate('Data fields'),
|
||||
'url' => 'director/list/datafield')
|
||||
);
|
||||
return $this->view->tabs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue