add Zone option to Dependency Form

This commit is contained in:
Marc DeTrano 2017-12-29 11:24:51 -06:00 committed by Thomas Gelf
parent 55c6657e29
commit 183ea4a949
1 changed files with 21 additions and 0 deletions

View File

@ -31,9 +31,30 @@ class IcingaDependencyForm extends DirectorObjectForm
->addAssignmentElements()
->addEventFilterElements(['states'])
->groupMainProperties()
->addZoneSection()
->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()
{
$this->addElement('text', 'object_name', [