added service name to service form

This commit is contained in:
moreamazingnick 2022-03-28 09:57:54 +02:00 committed by GitHub
parent e930939a40
commit e0d18d60d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -564,7 +564,16 @@ class IcingaServiceForm extends DirectorObjectForm
'Name for the Icinga service you are going to create'
)
));
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()) {
$this->eventuallyAddNameRestriction('director/service/apply/filter-by-name');
}