added service name to service form
This commit is contained in:
parent
e930939a40
commit
e0d18d60d5
|
@ -565,6 +565,15 @@ class IcingaServiceForm extends DirectorObjectForm
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if ($this->isObject()) {
|
||||||
|
$this->addElement('text', 'display_name', array(
|
||||||
|
'label' => $this->translate('Display name'),
|
||||||
|
'description' => $this->translate(
|
||||||
|
'Name for the Icinga service you are going to create'
|
||||||
|
)
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->object()->isApplyRule()) {
|
if ($this->object()->isApplyRule()) {
|
||||||
$this->eventuallyAddNameRestriction('director/service/apply/filter-by-name');
|
$this->eventuallyAddNameRestriction('director/service/apply/filter-by-name');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue