mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
CommandArgument: list and objecct controller action
This commit is contained in:
parent
5e21301eb5
commit
c90bf45dd1
@ -26,6 +26,17 @@ class Director_ListController extends ActionController
|
|||||||
$this->render('table');
|
$this->render('table');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function commandargumentsAction()
|
||||||
|
{
|
||||||
|
$this->view->addLink = $this->view->qlink(
|
||||||
|
$this->translate('Add Command Argument'),
|
||||||
|
'director/object/commandargument'
|
||||||
|
);
|
||||||
|
$this->view->title = $this->translate('Icinga Command Arguments');
|
||||||
|
$this->view->table = $this->loadTable('icingaCommandArgument')->setConnection($this->db());
|
||||||
|
$this->render('table');
|
||||||
|
}
|
||||||
|
|
||||||
public function zonesAction()
|
public function zonesAction()
|
||||||
{
|
{
|
||||||
$this->view->addLink = $this->view->qlink(
|
$this->view->addLink = $this->view->qlink(
|
||||||
|
@ -36,6 +36,22 @@ class Director_ObjectController extends ActionController
|
|||||||
$this->render('form');
|
$this->render('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function commandargumentAction()
|
||||||
|
{
|
||||||
|
$this->view->form = $this->loadForm('icingaCommandArgument')
|
||||||
|
->setDb($this->db())
|
||||||
|
->setSuccessUrl('director/list/commandargument');
|
||||||
|
|
||||||
|
if ($id = $this->params->get('id')) {
|
||||||
|
$this->view->form->loadObject($id);
|
||||||
|
$this->view->title = $this->translate('Modify Icinga Command Argument');
|
||||||
|
} else {
|
||||||
|
$this->view->title = $this->translate('Add new Icinga Command Argument');
|
||||||
|
}
|
||||||
|
$this->view->form->handleRequest();
|
||||||
|
$this->render('form');
|
||||||
|
}
|
||||||
|
|
||||||
public function zoneAction()
|
public function zoneAction()
|
||||||
{
|
{
|
||||||
$this->view->form = $this->loadForm('icingaZone')
|
$this->view->form = $this->loadForm('icingaZone')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user