mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-19 20:04:25 +02:00
25 lines
638 B
PHP
25 lines
638 B
PHP
<?php
|
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
|
use Icinga\Module\Director\Forms\DirectorDatafieldForm;
|
|
|
|
class Director_DataController extends ActionController
|
|
{
|
|
public function addfieldAction()
|
|
{
|
|
$title = $this->translate('Add field');
|
|
$this->getTabs()->add('addfield', array(
|
|
'url' => 'director/data/addfield',
|
|
'label' => $title,
|
|
))->activate('addfield');
|
|
|
|
$form = new DirectorDatafieldForm();
|
|
$form->setDb($this->db());
|
|
|
|
$form->handleRequest();
|
|
|
|
$this->view->title = $title;
|
|
$this->view->form = $form;
|
|
}
|
|
}
|