diff --git a/modules/monitoring/application/controllers/CommandController.php b/modules/monitoring/application/controllers/CommandController.php
index 756d4c3f8..47372f193 100644
--- a/modules/monitoring/application/controllers/CommandController.php
+++ b/modules/monitoring/application/controllers/CommandController.php
@@ -36,6 +36,7 @@ use Icinga\Module\Monitoring\DataView\ServiceStatus;
use Icinga\Module\Monitoring\Form\Command\DisableNotificationWithExpireForm;
use Icinga\Module\Monitoring\Form\Command\SingleArgumentCommandForm;
use Icinga\Web\Form;
+use Icinga\Web\Url;
use Icinga\Web\Controller\ActionController;
use Icinga\Protocol\Commandpipe\CommandPipe;
use Icinga\Exception\ConfigurationError;
@@ -94,6 +95,14 @@ class Monitoring_CommandController extends ActionController
return $this->form !== null && ($this->form instanceof Form);
}
+ protected function addTitleTab($action)
+ {
+ $this->getTabs()->add($action, array(
+ 'title' => ucfirst($action),
+ 'url' => Url::fromRequest()
+ ))->activate($action);
+ }
+
/**
* Post dispatch method
*
@@ -927,6 +936,7 @@ class Monitoring_CommandController extends ActionController
*/
public function acknowledgeproblemAction()
{
+ $this->addTitleTab('Acknowledge Problem');
$this->setSupportedParameters(array('host', 'service'));
$form = new AcknowledgeForm();
$form->setRequest($this->getRequest());
diff --git a/modules/monitoring/application/views/scripts/command/renderform.phtml b/modules/monitoring/application/views/scripts/command/renderform.phtml
index c049b78ac..cd15854ac 100644
--- a/modules/monitoring/application/views/scripts/command/renderform.phtml
+++ b/modules/monitoring/application/views/scripts/command/renderform.phtml
@@ -1,35 +1,25 @@
-
+
objects) && !empty($this->objects) && isset($this->objects[0]->host_name)): ?>
-
-
+
- |
-
- Host Name
- |
-
-
- Service Name
- |
+ = $this->img('img/icons/host.png') ?> Host |
+ = $this->img('img/icons/service.png') ?> Service |
objects as $object): ?>
| = $object->host_name; ?> |
- = (isset($object->service_description) ? $object->service_description : ''); ?> |
+ = (isset($object->service_description) ? $object->service_description : '') ?> |
-
-
-form): ?>
-
- = $this->form; ?>
-
+
+= $this->form ?>
-
-
diff --git a/public/css/icinga/main-content.less b/public/css/icinga/main-content.less
index 9d1f24840..8cfd89e93 100644
--- a/public/css/icinga/main-content.less
+++ b/public/css/icinga/main-content.less
@@ -129,3 +129,11 @@ table.perfdata th {
text-align: left;
padding-right: 0.5em;
}
+
+table.objectlist {
+ min-width: 28em;
+ th {
+ text-align: left;
+ }
+}
+