Icinga*FieldForm: remove, obsolete
This commit is contained in:
parent
94e777a390
commit
1bc7bc2cd9
|
@ -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')
|
||||
);
|
||||
}
|
||||
}
|
|
@ -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')
|
||||
);
|
||||
}
|
||||
}
|
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue