From f5e4831bef2375bb09f6ac8a8d984cdd70797903 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 23 Oct 2013 12:58:15 +0200 Subject: [PATCH] Fix layout of multi-detail view --- .../views/scripts/list/hostgroups.phtml | 3 + .../views/scripts/list/servicegroups.phtml | 5 +- .../scripts/multi/components/comments.phtml | 51 +++--- .../scripts/multi/components/downtimes.phtml | 15 +- .../scripts/multi/components/summary.phtml | 146 ++++++++---------- .../views/scripts/multi/host.phtml | 12 +- .../views/scripts/multi/service.phtml | 12 +- 7 files changed, 132 insertions(+), 112 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index c48cc23d4..3f75cc78d 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -16,9 +16,12 @@
+
paginationControl($hostgroups, null, null, array('preserve' => $this->preserve)); ?> +
+
selectionToolbar('single'); ?>
diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml index 54b20f238..ca0d23786 100644 --- a/modules/monitoring/application/views/scripts/list/servicegroups.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml @@ -16,9 +16,12 @@
- paginationControl($servicegroups, null, null, array('preserve' => $this->preserve)); ?> +
+ paginationControl($servicegroups, null, null, array('preserve' => $this->preserve)); ?> +
+
selectionToolbar('single'); ?>
diff --git a/modules/monitoring/application/views/scripts/multi/components/comments.phtml b/modules/monitoring/application/views/scripts/multi/components/comments.phtml index f89d5ce04..b24b7352f 100644 --- a/modules/monitoring/application/views/scripts/multi/components/comments.phtml +++ b/modules/monitoring/application/views/scripts/multi/components/comments.phtml @@ -1,6 +1,26 @@
Comments +
+ + + + + + + +
+

@@ -15,7 +35,7 @@ ) ); ?>"> - comments in the selected items. + There are comments assigned to the selected items. - 0 comments in the selected items. + There are 0 comments assigned to the selected items. -
- - - -
diff --git a/modules/monitoring/application/views/scripts/multi/components/downtimes.phtml b/modules/monitoring/application/views/scripts/multi/components/downtimes.phtml index 6d269ba9a..6c4e1cd60 100644 --- a/modules/monitoring/application/views/scripts/multi/components/downtimes.phtml +++ b/modules/monitoring/application/views/scripts/multi/components/downtimes.phtml @@ -1,6 +1,16 @@
- Downtimes + Downtimes + + + + +

@@ -26,7 +36,8 @@ 0 Selected items are currently in downtime.
- + + 10) { + $text = ' and ' . (count($objects) - 10) . ' more ...'; + } else { + $text = ' show all ...'; + } + if ($this->is_service) { + $link = 'monitoring/list/hosts'; + $target = array( + 'host' => implode(',', $hostnames) + ); + } else { + $link = 'monitoring/list/services'; + // TODO: Show multiple targets for services + $target = array(); + } + ?> + +
+
-The selected objects have problems ?> service problems.
- -
- Acknowledge - - - - Schedule Downtimes - - -
-
- - - Submit Passive Checkresults - - -
-
- - 10) { - $text = ' and ' . (count($objects) - 10) . ' more ...'; - } else { - $text = ' show all ...'; - } - if ($this->is_service) { - $link = 'monitoring/list/hosts'; - $target = array( - 'host' => implode(',', $hostnames) - ); - } else { - $link = 'monitoring/list/services'; - // TODO: Show multiple targets for services - $target = array(); - } - ?> - + The selected objects have problems ?> service problems.

+ + + Acknowledge Problems + + + + Schedule Downtimes +
diff --git a/modules/monitoring/application/views/scripts/multi/host.phtml b/modules/monitoring/application/views/scripts/multi/host.phtml index 856ee0a8a..165ece8ef 100644 --- a/modules/monitoring/application/views/scripts/multi/host.phtml +++ b/modules/monitoring/application/views/scripts/multi/host.phtml @@ -9,7 +9,17 @@ $this->target = array( tabs->render($this); ?>
- Hosts + Hosts ( objects) +
+ + + +

diff --git a/modules/monitoring/application/views/scripts/multi/service.phtml b/modules/monitoring/application/views/scripts/multi/service.phtml index 2e537fab8..f594dc836 100644 --- a/modules/monitoring/application/views/scripts/multi/service.phtml +++ b/modules/monitoring/application/views/scripts/multi/service.phtml @@ -12,7 +12,17 @@ $this->target = array(
- Services + Services ( objects ) +
+ + + +