[icinga-checkins] icinga.org: icingaweb2-module-director/feature/nested-apply-rules-12033: IcingaServiceForm: move hint to custom vars group

git at icinga.org git at icinga.org
Fri Oct 21 10:08:07 CEST 2016


Module: icingaweb2-module-director
Branch: feature/nested-apply-rules-12033
Commit: 32790dbedc9af7ea8bcc17eadf0dd0b419af3fe1
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=32790dbedc9af7ea8bcc17eadf0dd0b419af3fe1

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Oct 20 01:35:36 2016 +0000

IcingaServiceForm: move hint to custom vars group

---

 application/forms/IcingaServiceForm.php |   13 ++++++++++++-
 public/css/module.less                  |    2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/application/forms/IcingaServiceForm.php b/application/forms/IcingaServiceForm.php
index 2ba934d..d138251 100644
--- a/application/forms/IcingaServiceForm.php
+++ b/application/forms/IcingaServiceForm.php
@@ -136,7 +136,18 @@ class IcingaServiceForm extends DirectorObjectForm
             array('data-base-target' => '_next')
         );
 
-        $this->addHtmlHint(sprintf($msg, $link));
+        $this->addHtmlHint(
+            sprintf($msg, $link),
+            array('name' => 'inheritance_hint')
+        );
+
+        $this->addElementsToGroup(
+            array('inheritance_hint'),
+            'custom_fields',
+            50,
+            $this->translate('Custom properties')
+        );
+
         $this->setSubmitLabel(
             $this->translate('Override vars')
         );
diff --git a/public/css/module.less b/public/css/module.less
index 697a55a..4628269 100644
--- a/public/css/module.less
+++ b/public/css/module.less
@@ -587,7 +587,7 @@ fieldset {
             margin: 0;
         }
 
-        dd, dt, ul {
+        dd, dt, ul, div {
             display: none;
         }
 



More information about the icinga-checkins mailing list