From ff1ed128eff9801c245f850885a30970a0b4ca0c Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 20 Aug 2013 12:18:51 +0200 Subject: [PATCH] Remove filter boxes from monitoring' list views since they're not working refs #4583 --- .../views/scripts/list/downtimes.phtml | 1 - .../views/scripts/list/hosts.phtml | 13 ++++---- .../views/scripts/list/notifications.phtml | 5 ++- .../views/scripts/list/services-compact.phtml | 33 +++---------------- .../views/scripts/list/services.phtml | 11 +++---- 5 files changed, 18 insertions(+), 45 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/downtimes.phtml b/modules/monitoring/application/views/scripts/list/downtimes.phtml index ca28045bf..de4ef74b2 100644 --- a/modules/monitoring/application/views/scripts/list/downtimes.phtml +++ b/modules/monitoring/application/views/scripts/list/downtimes.phtml @@ -41,7 +41,6 @@ $downtimes = $downtimes->fetchAll(); 'downtime_duration' => 'Duration', ) ) ?> - getHelper('Trim'); 'host_name' => 'Host', ) ) ?> - paginationControl($hosts, null, null, array('preserve' => $this->preserve)) ?> @@ -45,14 +44,14 @@ $trimArea = $this->getHelper('Trim'); end(); ?> - +
start(); ?> host_handled && $host->host_state > 0): ?> - - host_acknowledged && !$host->host_in_downtime): ?> + + host_acknowledged && !$host->host_in_downtime): ?> @@ -61,7 +60,7 @@ $trimArea = $this->getHelper('Trim'); - + host_notifications_enabled): ?> @@ -72,7 +71,7 @@ $trimArea = $this->getHelper('Trim'); - end(); ?>
+ end(); ?>
@@ -92,7 +91,7 @@ $trimArea = $this->getHelper('Trim');
- + host_last_comment !== null): ?> diff --git a/modules/monitoring/application/views/scripts/list/notifications.phtml b/modules/monitoring/application/views/scripts/list/notifications.phtml index fd3aebf5f..41bf12f3b 100644 --- a/modules/monitoring/application/views/scripts/list/notifications.phtml +++ b/modules/monitoring/application/views/scripts/list/notifications.phtml @@ -22,8 +22,7 @@ $formatter = $this->getHelper('MonitoringProperties'); 'notification_start_time' => 'Time' ) ); -?> - +?> @@ -89,4 +88,4 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t - \ No newline at end of file + diff --git a/modules/monitoring/application/views/scripts/list/services-compact.phtml b/modules/monitoring/application/views/scripts/list/services-compact.phtml index 93486257a..1ce5a87a5 100644 --- a/modules/monitoring/application/views/scripts/list/services-compact.phtml +++ b/modules/monitoring/application/views/scripts/list/services-compact.phtml @@ -11,29 +11,6 @@ $trimArea = $this->getHelper('Trim'); - -
- Sort by formSelect( - 'sort', - $this->sort, - array('class' => 'autosubmit'), - array( - 'service_severity' => 'Severity', - 'service_last_state_change' => 'Last state change', - 'service_last_time_unknown' => 'Last UNKNOWN', - 'service_last_time_critical' => 'Last CRITICAL', - 'service_last_time_warning' => 'Last WARNING', - 'service_last_time_ok' => 'Last OK', - 'service_description' => 'Service', - ) - ) ?> - - -
paginationControl($paginator, null, null, array('preserve' => $this->preserve)) ?> @@ -56,14 +33,14 @@ $trimArea = $this->getHelper('Trim'); end(); ?> - diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index 2fb224e75..2b2ff07e7 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -33,7 +33,6 @@ $trimArea = $this->getHelper('Trim'); 'service_description' => 'Service', ) ) ?> - paginationControl($paginator, null, null, array('preserve' => $this->preserve)) ?> @@ -59,14 +58,14 @@ $trimArea = $this->getHelper('Trim'); end(); ?> -
+
start(); ?> service_handled && $service->service_state > 0): ?> - - service_acknowledged && !$service->service_in_downtime): ?> + + service_acknowledged && !$service->service_in_downtime): ?> @@ -72,7 +49,7 @@ $trimArea = $this->getHelper('Trim'); - + service_notifications_enabled): ?> @@ -83,7 +60,7 @@ $trimArea = $this->getHelper('Trim'); - end(); ?>
+ end(); ?>
+
start(); ?> service_handled && $service->service_state > 0): ?> - - service_acknowledged && !$service->service_in_downtime): ?> + + service_acknowledged && !$service->service_in_downtime): ?> @@ -75,7 +74,7 @@ $trimArea = $this->getHelper('Trim'); - + service_notifications_enabled): ?> @@ -86,7 +85,7 @@ $trimArea = $this->getHelper('Trim'); - end(); ?>
+ end(); ?>