mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
IcingaZoneForm: improve descriptions
This commit is contained in:
parent
0a022644b4
commit
42b668d4ae
@ -11,14 +11,20 @@ class IcingaZoneForm extends DirectorObjectForm
|
|||||||
$this->addHidden('object_type', 'object');
|
$this->addHidden('object_type', 'object');
|
||||||
|
|
||||||
$this->addElement('text', 'object_name', array(
|
$this->addElement('text', 'object_name', array(
|
||||||
'label' => $this->translate('Zone (template) name'),
|
'label' => $this->translate('Zone name'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'description' => $this->translate('Name for the Icinga zone (templat) you are going to create')
|
'description' => $this->translate(
|
||||||
|
'Name for the Icinga zone you are going to create'
|
||||||
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('select', 'is_global', array(
|
$this->addElement('select', 'is_global', array(
|
||||||
'label' => 'Global zone',
|
'label' => $this->translate('Global zone'),
|
||||||
'description' => 'Whether this zone should be available everywhere',
|
'description' => $this->translate(
|
||||||
|
'Whether this zone should be available everywhere. Please note that'
|
||||||
|
. ' it rarely leads to the desired result when you try to distribute'
|
||||||
|
. ' global zones in distrubuted environments'
|
||||||
|
),
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
'n' => $this->translate('No'),
|
'n' => $this->translate('No'),
|
||||||
'y' => $this->translate('Yes'),
|
'y' => $this->translate('Yes'),
|
||||||
@ -32,7 +38,6 @@ class IcingaZoneForm extends DirectorObjectForm
|
|||||||
'multiOptions' => $this->optionalEnum($this->db->enumZones()),
|
'multiOptions' => $this->optionalEnum($this->db->enumZones()),
|
||||||
));
|
));
|
||||||
|
|
||||||
// $this->addImportsElement();
|
|
||||||
$this->setButtons();
|
$this->setButtons();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user