Better form target settings for more comfort

This commit is contained in:
Thomas Gelf 2014-03-20 16:33:06 +00:00
parent aed6d74ecd
commit 9517824b41
2 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ if ($object->service_description) {
if ($object instanceof Host && $object->host_acknowledged if ($object instanceof Host && $object->host_acknowledged
|| $object instanceof Service && $object->service_acknowledged): ?> || $object instanceof Service && $object->service_acknowledged): ?>
<th>Issue acknowledged</th> <th>Issue acknowledged</th>
<td><?= $cf->labelSubmitForm( <td data-base-target="_self"><?= $cf->labelSubmitForm(
'Remove Acknowledgement', 'Remove Acknowledgement',
'Remove problem acknowledgement', 'Remove problem acknowledgement',
'link-like', 'link-like',
@ -34,7 +34,7 @@ if ($object instanceof Host && $object->host_acknowledged
<a href="<?= $this->href( <a href="<?= $this->href(
'monitoring/command/acknowledgeproblem', 'monitoring/command/acknowledgeproblem',
$data $data
) ?>"><?= $this->icon('acknowledgement_petrol.png') ?> Acknowledge now</a> ) ?>"><?= $this->icon('acknowledgement_petrol.png') ?> Acknowledge</a>
</td> </td>
<?php endif ?> <?php endif ?>
</tr> </tr>

View File

@ -11,7 +11,7 @@ $data = array(
?> ?>
<tr> <tr>
<th>Passive Checks</th> <th>Passive Checks</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->passive_checks_enabled, $o->passive_checks_enabled,
'startacceptingpassivechecks', 'startacceptingpassivechecks',
@ -22,7 +22,7 @@ $data = array(
</tr> </tr>
<tr> <tr>
<th>Active Checks</th> <th>Active Checks</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->active_checks_enabled, $o->active_checks_enabled,
'enableactivechecks', 'enableactivechecks',
@ -33,7 +33,7 @@ $data = array(
</tr> </tr>
<tr> <tr>
<th>Notifications</th> <th>Notifications</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->notifications_enabled, $o->notifications_enabled,
'enablenotifications', 'enablenotifications',
@ -44,7 +44,7 @@ $data = array(
</tr> </tr>
<tr> <tr>
<th>Event Handler</th> <th>Event Handler</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->event_handler_enabled, $o->event_handler_enabled,
'enableeventhandler', 'enableeventhandler',
@ -55,7 +55,7 @@ $data = array(
</tr> </tr>
<tr> <tr>
<th>Flap Detection</th> <th>Flap Detection</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->flap_detection_enabled, $o->flap_detection_enabled,
'enableflapdetection', 'enableflapdetection',
@ -66,7 +66,7 @@ $data = array(
</tr> </tr>
<tr> <tr>
<th>Obsessing</th> <th>Obsessing</th>
<td><?= $cf->toggleSubmitForm( <td data-base-target="_self"><?= $cf->toggleSubmitForm(
'', '',
$o->obsessing, $o->obsessing,
'startobsessing', 'startobsessing',