IcingaAddServiceForm: import -> autocomplete

fixes #1974
This commit is contained in:
Thomas Gelf 2021-04-23 11:42:46 +02:00
parent 9387ede99a
commit ebe1af13ea
2 changed files with 5 additions and 7 deletions

View File

@ -100,15 +100,12 @@ class IcingaAddServiceForm extends DirectorObjectForm
return $this;
}
$this->addElement('select', 'imports', [
$this->addElement('text', 'imports', [
'label' => $this->translate('Service'),
'description' => $this->translate(
'Choose a service template'
),
'description' => $this->translate('Choose a service template'),
'required' => true,
'multiOptions' => $this->optionalEnum($enum),
'class' => 'autosubmit'
'data-suggestion-context' => 'servicetemplates',
'class' => 'autosubmit director-suggest'
]);
return $this;

View File

@ -25,6 +25,7 @@ next (will be 1.9.0)
* FIX: show Override button when all Fields belong to Field Categories (#2303)
* FIX: show Services applied with Rules involving applied Hostgroups (#2313)
* FEATURE: show "deprecated" flag on object attribute inspection (#2312)
* FEATURE: Service Template for single Host services provides auto-completion (#1974)
next patch release (will be 1.8.1)
----------------------------------