From ee44f461ab80916a902cf66445605978ff7c107b Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Fri, 3 Jul 2015 10:49:47 +0200 Subject: [PATCH] DataField: Add an action and a tab to config tabs --- application/controllers/ListController.php | 8 ++++++++ library/Director/Web/Controller/ActionController.php | 3 +++ 2 files changed, 11 insertions(+) diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 99e535f8..7030b619 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -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( diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index 0fcaae8f..5dbc7b5c 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -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; }