mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
IcingaHostForm: use display groups
This commit is contained in:
parent
adbb69907b
commit
764d9e4d77
@ -39,17 +39,24 @@ class IcingaHostForm extends DirectorObjectForm
|
|||||||
));
|
));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$elements = array(
|
||||||
|
'object_name',
|
||||||
|
'display_name',
|
||||||
|
'address',
|
||||||
|
'address6',
|
||||||
|
'imports',
|
||||||
|
);
|
||||||
|
$this->addDisplayGroup($elements, 'object_definition', array(
|
||||||
|
'decorators' => array(
|
||||||
|
'FormElements',
|
||||||
|
'DtDdWrapper',
|
||||||
|
'Fieldset',
|
||||||
|
),
|
||||||
|
'order' => 20,
|
||||||
|
'legend' => $this->translate('Host properties')
|
||||||
|
));
|
||||||
|
|
||||||
if ($this->isTemplate()) {
|
if ($this->isTemplate()) {
|
||||||
$this->addElement('text', 'address', array(
|
|
||||||
'label' => $this->translate('Host address'),
|
|
||||||
'description' => $this->translate('Host address. Usually an IPv4 address, but may be any kind of address your check plugin is able to deal with')
|
|
||||||
));
|
|
||||||
|
|
||||||
$this->addElement('text', 'address6', array(
|
|
||||||
'label' => $this->translate('IPv6 address'),
|
|
||||||
'description' => $this->translate('Usually your hosts main IPv6 address')
|
|
||||||
));
|
|
||||||
|
|
||||||
$this->addCheckExecutionElements();
|
$this->addCheckExecutionElements();
|
||||||
} else {
|
} else {
|
||||||
$this->getElement('imports')->setRequired();
|
$this->getElement('imports')->setRequired();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user