mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
c2b707697c
commit
b15b04257b
@ -349,8 +349,11 @@ class ConfigController extends Controller
|
|||||||
public function createresourceAction()
|
public function createresourceAction()
|
||||||
{
|
{
|
||||||
$this->assertPermission('config/application/resources');
|
$this->assertPermission('config/application/resources');
|
||||||
|
$this->getTabs()->add('resources/new', array(
|
||||||
|
'label' => $this->translate('New Resource'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
))->activate('resources/new');
|
||||||
$form = new ResourceConfigForm();
|
$form = new ResourceConfigForm();
|
||||||
$form->setTitle($this->translate('Create A New Resource'));
|
|
||||||
$form->addDescription($this->translate('Resources are entities that provide data to Icinga Web 2.'));
|
$form->addDescription($this->translate('Resources are entities that provide data to Icinga Web 2.'));
|
||||||
$form->setIniConfig(Config::app('resources'));
|
$form->setIniConfig(Config::app('resources'));
|
||||||
$form->setRedirectUrl('config/resource');
|
$form->setRedirectUrl('config/resource');
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs->showOnlyCloseButton() ?>
|
<?= $tabs ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?= $form; ?>
|
<?= $form ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user