ListController: re-introduce datalistentryAction

This commit is contained in:
Thomas Gelf 2015-11-11 00:20:19 +01:00
parent bee2544028
commit 05edb871dc
1 changed files with 22 additions and 0 deletions

View File

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