mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 10:57:41 +02:00
parent
57e4c441bd
commit
984740db9a
@ -46,11 +46,32 @@ class IcingaUserForm extends DirectorObjectForm
|
|||||||
->addDisplayNameElement()
|
->addDisplayNameElement()
|
||||||
->addEnableNotificationsElement()
|
->addEnableNotificationsElement()
|
||||||
->addDisabledElement()
|
->addDisabledElement()
|
||||||
|
->addZoneElements()
|
||||||
->addEventFilterElements()
|
->addEventFilterElements()
|
||||||
->groupMainProperties()
|
->groupMainProperties()
|
||||||
->setButtons();
|
->setButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addZoneElements()
|
||||||
|
{
|
||||||
|
if (! $this->isTemplate()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->addZoneElement();
|
||||||
|
$this->addDisplayGroup(array('zone_id'), 'clustering', array(
|
||||||
|
'decorators' => array(
|
||||||
|
'FormElements',
|
||||||
|
array('HtmlTag', array('tag' => 'dl')),
|
||||||
|
'Fieldset',
|
||||||
|
),
|
||||||
|
'order' => 80,
|
||||||
|
'legend' => $this->translate('Zone settings')
|
||||||
|
));
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function addEnableNotificationsElement()
|
protected function addEnableNotificationsElement()
|
||||||
{
|
{
|
||||||
$this->optionalBoolean(
|
$this->optionalBoolean(
|
||||||
|
@ -17,7 +17,25 @@ class IcingaUserGroupForm extends DirectorObjectForm
|
|||||||
));
|
));
|
||||||
|
|
||||||
$this->addGroupDisplayNameElement()
|
$this->addGroupDisplayNameElement()
|
||||||
|
->addZoneElements()
|
||||||
|
->groupMainProperties()
|
||||||
->setButtons();
|
->setButtons();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function addZoneElements()
|
||||||
|
{
|
||||||
|
$this->addZoneElement();
|
||||||
|
$this->addDisplayGroup(array('zone_id'), 'clustering', array(
|
||||||
|
'decorators' => array(
|
||||||
|
'FormElements',
|
||||||
|
array('HtmlTag', array('tag' => 'dl')),
|
||||||
|
'Fieldset',
|
||||||
|
),
|
||||||
|
'order' => 80,
|
||||||
|
'legend' => $this->translate('Zone settings')
|
||||||
|
));
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user