From 1bc7bc2cd90679cfef05be541507c70bf84bf2be Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 2 Aug 2015 15:02:55 +0200 Subject: [PATCH] Icinga*FieldForm: remove, obsolete --- application/forms/IcingaHostFieldForm.php | 29 -------------------- application/forms/IcingaServiceFieldForm.php | 28 ------------------- configuration.php | 1 - 3 files changed, 58 deletions(-) delete mode 100644 application/forms/IcingaHostFieldForm.php delete mode 100644 application/forms/IcingaServiceFieldForm.php diff --git a/application/forms/IcingaHostFieldForm.php b/application/forms/IcingaHostFieldForm.php deleted file mode 100644 index 5c7b8f08..00000000 --- a/application/forms/IcingaHostFieldForm.php +++ /dev/null @@ -1,29 +0,0 @@ -addElement('select', 'host_id', array( - 'label' => 'Host Tpl', - 'description' => 'Host Template', - 'multiOptions' => $this->optionalEnum($this->db->enumHostTemplates()) - )); - - $this->addElement('select', 'datafield_id', array( - 'label' => 'Field', - 'description' => 'Field to assign', - 'multiOptions' => $this->optionalEnum($this->db->enumDatafields()) - )); - - $this->optionalBoolean( - 'is_required', - $this->translate('Required'), - $this->translate('Whether this field should be required or not') - ); - } -} diff --git a/application/forms/IcingaServiceFieldForm.php b/application/forms/IcingaServiceFieldForm.php deleted file mode 100644 index 202b4fd7..00000000 --- a/application/forms/IcingaServiceFieldForm.php +++ /dev/null @@ -1,28 +0,0 @@ -addElement('select', 'service_id', array( - 'label' => 'Service template', - 'multiOptions' => $this->optionalEnum($this->db->enumServiceTemplates()) - )); - - $this->addElement('select', 'datafield_id', array( - 'label' => 'Field', - 'description' => 'Field to assign', - 'multiOptions' => $this->optionalEnum($this->db->enumDatafields()) - )); - - $this->optionalBoolean( - 'is_required', - $this->translate('Required'), - $this->translate('Whether this field should be required or not') - ); - } -} diff --git a/configuration.php b/configuration.php index 4ca0e9c8..fd2819cd 100644 --- a/configuration.php +++ b/configuration.php @@ -28,7 +28,6 @@ $section = $this->menuSection( $section->add($this->translate('Overview'))->setUrl('director/welcome')->setPriority(20); $section->add($this->translate('Global'))->setUrl('director/commands'); $section->add($this->translate('Hosts'))->setUrl('director/hosts'); -$section->add($this->translate('Fields'))->setUrl('director/field/host')->setPriority(903); $section->add($this->translate('Services'))->setUrl('director/services'); $section->add($this->translate('Users'))->setUrl('director/users'); $section->add($this->translate('Import / Sync'))