DataField: Add an action and a tab to config tabs

This commit is contained in:
Alexander Fuhr 2015-07-03 10:49:47 +02:00
parent c31b7c7fa4
commit ee44f461ab
2 changed files with 11 additions and 0 deletions

View File

@ -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(

View File

@ -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;
}