From 3034ac52575590a7d921958918d0e1eddc3f50c6 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 23 Sep 2014 22:34:19 -0700 Subject: [PATCH] monitoring/commands: Show affected objects in command forms refs #6593 --- .../views/scripts/partials/command-form.phtml | 21 +++++++++++++++++++ .../views/scripts/service/command.phtml | 4 ---- 2 files changed, 21 insertions(+), 4 deletions(-) delete mode 100644 modules/monitoring/application/views/scripts/service/command.phtml diff --git a/modules/monitoring/application/views/scripts/partials/command-form.phtml b/modules/monitoring/application/views/scripts/partials/command-form.phtml index 5bff418e3..0aae10046 100644 --- a/modules/monitoring/application/views/scripts/partials/command-form.phtml +++ b/modules/monitoring/application/views/scripts/partials/command-form.phtml @@ -1,4 +1,25 @@

+ + + + + + + + + getObjects() as $object): /** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */ ?> + + getType() === $object::TYPE_HOST): ?> + + + + + + + + +
img('img/icons/host.png') ?> translate('Host') ?>img('img/icons/service.png') ?> translate('Service') ?>
escape($object->getName()) ?>escape($object->getHost()->getName()) ?>escape($object->getName()) ?>
+
diff --git a/modules/monitoring/application/views/scripts/service/command.phtml b/modules/monitoring/application/views/scripts/service/command.phtml deleted file mode 100644 index 5bff418e3..000000000 --- a/modules/monitoring/application/views/scripts/service/command.phtml +++ /dev/null @@ -1,4 +0,0 @@ -
-

- -