From dc865df3c4118cf4dad4b8b4e74c08f14b52955c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 8 Mar 2014 17:02:14 +0100 Subject: [PATCH] Restyle "Check now" --- .../show/components/checkstatistics.phtml | 19 +++++++++++++++++-- .../scripts/show/components/status.phtml | 13 +------------ 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml index 08e8c7d9c..287a86482 100644 --- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -1,6 +1,21 @@ - +getHelper('CommandForm'); + +?> translate('Last check') ?> - img('img/icons/refresh_petrol.png') ?> translate('Check now') ?> timeSince($object->last_check) ?> + img('img/icons/refresh_petrol.png') ?> 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' + ) + ) ?> timeSince($object->last_check) ?> translate('Next check') ?> diff --git a/modules/monitoring/application/views/scripts/show/components/status.phtml b/modules/monitoring/application/views/scripts/show/components/status.phtml index 40105631c..d1b69f230 100644 --- a/modules/monitoring/application/views/scripts/show/components/status.phtml +++ b/modules/monitoring/application/views/scripts/show/components/status.phtml @@ -81,18 +81,7 @@ - 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' - ) - ) ?> + 0): ?>