From 507e5b43cc2f639d17e19dd21e009828400ded2a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 3 Mar 2015 14:52:45 +0100 Subject: [PATCH] Show a form based autosubmit warning when toggling object features refs #7935 --- .../forms/Command/Object/ToggleObjectFeaturesCommandForm.php | 3 +++ modules/monitoring/public/css/module.less | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/modules/monitoring/application/forms/Command/Object/ToggleObjectFeaturesCommandForm.php b/modules/monitoring/application/forms/Command/Object/ToggleObjectFeaturesCommandForm.php index 5caacb5f8..a6c20f630 100644 --- a/modules/monitoring/application/forms/Command/Object/ToggleObjectFeaturesCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/ToggleObjectFeaturesCommandForm.php @@ -18,7 +18,10 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm */ public function init() { + $this->setUseFormAutosubmit(); + $this->setTitle('Feature Commands'); $this->setAttrib('class', 'inline object-features'); + $this->loadDefaultDecorators()->getDecorator('description')->setTag('h4'); } /** diff --git a/modules/monitoring/public/css/module.less b/modules/monitoring/public/css/module.less index 936c6c5de..6c205cd04 100644 --- a/modules/monitoring/public/css/module.less +++ b/modules/monitoring/public/css/module.less @@ -170,6 +170,10 @@ form.instance-features span.description, form.object-features span.description { } } +table.avp form.object-features div.header h4 { + margin: 0; +} + table.avp .customvar ul { list-style-type: none; margin: 0;