icingaweb2/modules/monitoring/application/views/scripts/show/components/flags.phtml

78 lines
2.0 KiB
PHTML
Raw Normal View History

<?php
2013-10-15 18:09:16 +02:00
2014-03-08 09:23:48 +01:00
$o = $this->object;
$cf = $this->getHelper('CommandForm');
2014-03-08 09:23:48 +01:00
$data = array(
'host' => $o->host_name,
'service' => $o->service_description
);
?>
<tr class="newsection">
<th><?= $this->translate('Passive Checks') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->passive_checks_enabled,
'startacceptingpassivechecks',
'stopacceptingpassivechecks',
$o->passive_checks_enabled_changed === '1',
$data
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Active Checks') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->active_checks_enabled,
'enableactivechecks',
'disableactivechecks',
$o->active_checks_enabled_changed === '1',
$data
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Notifications') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->notifications_enabled,
'enablenotifications',
'disablenotifications',
$o->notifications_enabled_changed === '1',
$data
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Event Handler') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->event_handler_enabled,
'enableeventhandler',
'disableeventhandler',
$o->event_handler_enabled_changed === '1',
$data
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Flap Detection') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->flap_detection_enabled,
'enableflapdetection',
'disableflapdetection',
$o->flap_detection_enabled_changed === '1',
$data
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Obsessing') ?></th>
<td data-base-target="_self"><?= $cf->toggleSubmitForm(
2014-03-08 09:23:48 +01:00
'',
$o->obsessing,
'startobsessing',
'stopobsessing',
$o->obsessing_changed === '1',
$data
) ?></td>
</tr>