mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Restyle "Check now"
This commit is contained in:
parent
eb517f0a40
commit
dc865df3c4
@ -1,6 +1,21 @@
|
|||||||
<tr>
|
<?php
|
||||||
|
|
||||||
|
$cf = $this->getHelper('CommandForm');
|
||||||
|
|
||||||
|
?><tr>
|
||||||
<th><?= $this->translate('Last check') ?></th>
|
<th><?= $this->translate('Last check') ?></th>
|
||||||
<td><a href="#"><?= $this->img('img/icons/refresh_petrol.png') ?> <?= $this->translate('Check now') ?></a> <?= $this->timeSince($object->last_check) ?></td>
|
<td><?= $this->img('img/icons/refresh_petrol.png') ?> <?= $cf->labelSubmitForm(
|
||||||
|
'Check now',
|
||||||
|
'Reschedule next check immediately',
|
||||||
|
'link-like',
|
||||||
|
'reschedulenextcheck',
|
||||||
|
array(
|
||||||
|
'host' => $this->object->host_name,
|
||||||
|
'service' => $this->object->service_description,
|
||||||
|
'checktime' => time(),
|
||||||
|
'forcecheck' => '1'
|
||||||
|
)
|
||||||
|
) ?> <?= $this->timeSince($object->last_check) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->translate('Next check') ?></th>
|
<th><?= $this->translate('Next check') ?></th>
|
||||||
|
@ -81,18 +81,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?= $cf->labelSubmitForm(
|
|
||||||
'Recheck',
|
|
||||||
'Reschedule next check immediately',
|
|
||||||
'btn-cta ' . (($objectState > 0) ? 'btn-half-right' : 'btn-wide'),
|
|
||||||
'reschedulenextcheck',
|
|
||||||
array(
|
|
||||||
'host' => $this->object->host_name,
|
|
||||||
'service' => $this->object->service_description,
|
|
||||||
'checktime' => time(),
|
|
||||||
'forcecheck' => '1'
|
|
||||||
)
|
|
||||||
) ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($objectState > 0): ?>
|
<?php if ($objectState > 0): ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user