diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 2a72f99e..a12b038f 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -67,6 +67,28 @@ class ListController extends ActionController $this->prepareAndRenderTable('datalist'); } + public function datalistentryAction() + { + $listId = $this->params->get('list_id'); + $this->view->lastId = $listId; + + $this->view->addLink = $this->view->qlink( + $this->translate('Add entry'), + 'director/datalistentry/add' . '?list_id=' . $listId + ); + + $this->view->title = $this->translate('List entries'); + $this->getTabs()->add('editlist', array( + 'url' => 'director/datalist/edit' . '?id=' . $listId, + 'label' => $this->translate('Edit list'), + ))->add('datalistentry', array( + 'url' => 'director/datalistentry' . '?list_id=' . $listId, + 'label' => $this->view->title, + ))->activate('datalistentry'); + + $this->prepareAndRenderTable('datalistEntry'); + } + public function datafieldAction() { $this->view->addLink = $this->view->qlink(