Icinga*FieldForm: remove, obsolete

This commit is contained in:
Thomas Gelf 2015-08-02 15:02:55 +02:00
parent 94e777a390
commit 1bc7bc2cd9
3 changed files with 0 additions and 58 deletions

View File

@ -1,29 +0,0 @@
<?php
namespace Icinga\Module\Director\Forms;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
class IcingaHostFieldForm extends DirectorObjectForm
{
public function setup()
{
$this->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')
);
}
}

View File

@ -1,28 +0,0 @@
<?php
namespace Icinga\Module\Director\Forms;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
class IcingaServiceFieldForm extends DirectorObjectForm
{
public function setup()
{
$this->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')
);
}
}

View File

@ -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'))