Restyle "Check now"

This commit is contained in:
Thomas Gelf 2014-03-08 17:02:14 +01:00
parent eb517f0a40
commit dc865df3c4
2 changed files with 18 additions and 14 deletions

View File

@ -1,6 +1,21 @@
<tr>
<?php
$cf = $this->getHelper('CommandForm');
?><tr>
<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>
<th><?= $this->translate('Next check') ?></th>

View File

@ -81,18 +81,7 @@
</a>
<?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>
<?php if ($objectState > 0): ?>