add Zone option to Dependency Form
This commit is contained in:
parent
55c6657e29
commit
183ea4a949
|
@ -31,9 +31,30 @@ class IcingaDependencyForm extends DirectorObjectForm
|
||||||
->addAssignmentElements()
|
->addAssignmentElements()
|
||||||
->addEventFilterElements(['states'])
|
->addEventFilterElements(['states'])
|
||||||
->groupMainProperties()
|
->groupMainProperties()
|
||||||
|
->addZoneSection()
|
||||||
->setButtons();
|
->setButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addZoneSection()
|
||||||
|
{
|
||||||
|
$this->addZoneElement(true);
|
||||||
|
|
||||||
|
$elements = array(
|
||||||
|
'zone_id',
|
||||||
|
);
|
||||||
|
$this->addDisplayGroup($elements, 'clustering', array(
|
||||||
|
'decorators' => array(
|
||||||
|
'FormElements',
|
||||||
|
array('HtmlTag', array('tag' => 'dl')),
|
||||||
|
'Fieldset',
|
||||||
|
),
|
||||||
|
'order' => 80,
|
||||||
|
'legend' => $this->translate('Zone settings')
|
||||||
|
));
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function addNameElement()
|
protected function addNameElement()
|
||||||
{
|
{
|
||||||
$this->addElement('text', 'object_name', [
|
$this->addElement('text', 'object_name', [
|
||||||
|
|
Loading…
Reference in New Issue