mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
ListController: re-introduce datalistentryAction
This commit is contained in:
parent
bee2544028
commit
05edb871dc
@ -67,6 +67,28 @@ class ListController extends ActionController
|
|||||||
$this->prepareAndRenderTable('datalist');
|
$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()
|
public function datafieldAction()
|
||||||
{
|
{
|
||||||
$this->view->addLink = $this->view->qlink(
|
$this->view->addLink = $this->view->qlink(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user