parent
a077472226
commit
f91ce0cfa1
|
@ -173,6 +173,18 @@ class Monitoring_HostsController extends Controller
|
||||||
$this->handleCommandForm($form);
|
$this->handleCommandForm($form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete a comment
|
||||||
|
*/
|
||||||
|
public function deleteCommentAction()
|
||||||
|
{
|
||||||
|
$this->assertPermission('monitoring/command/comment/delete');
|
||||||
|
|
||||||
|
$form = new DeleteCommentCommandForm();
|
||||||
|
$form->setTitle($this->translate('Delete Host Comments'));
|
||||||
|
$this->handleCommandForm($form);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Acknowledge host problems
|
* Acknowledge host problems
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,8 +14,8 @@ use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
|
||||||
$listAllLink
|
$listAllLink
|
||||||
); ?>
|
); ?>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<?= $this->render('partials/host/objects-header.phtml'); ?>
|
<?= $this->render('partials/host/objects-header.phtml'); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -23,7 +23,7 @@ use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
|
||||||
<?= $this->icon('reschedule') ?>
|
<?= $this->icon('reschedule') ?>
|
||||||
<?= $this->translate('Commands') ?>
|
<?= $this->translate('Commands') ?>
|
||||||
</h3>
|
</h3>
|
||||||
<?= sprintf(t('Issue commands on all %d selected services:'), count($objects)) ?>
|
<?= sprintf(t('Issue commands on all %d selected hosts:'), count($objects)) ?>
|
||||||
|
|
||||||
<?php if (($hostCount = count($objects)) === 0): ?>
|
<?php if (($hostCount = count($objects)) === 0): ?>
|
||||||
<?= $this->translate('No hosts matching the filter'); ?>
|
<?= $this->translate('No hosts matching the filter'); ?>
|
||||||
|
@ -192,7 +192,7 @@ use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
|
||||||
);
|
);
|
||||||
$delCommentForm->setAction(
|
$delCommentForm->setAction(
|
||||||
$this->url(
|
$this->url(
|
||||||
'monitoring/service/delete-comment',
|
'monitoring/host/delete-comment',
|
||||||
array('host' => $service->getName())
|
array('host' => $service->getName())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue