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; return $this;
} }
$this->addElement('text', 'imports', [
$this->addElement('select', 'imports', [
'label' => $this->translate('Service'), 'label' => $this->translate('Service'),
'description' => $this->translate( 'description' => $this->translate('Choose a service template'),
'Choose a service template'
),
'required' => true, 'required' => true,
'multiOptions' => $this->optionalEnum($enum), 'data-suggestion-context' => 'servicetemplates',
'class' => 'autosubmit' 'class' => 'autosubmit director-suggest'
]); ]);
return $this; 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 Override button when all Fields belong to Field Categories (#2303)
* FIX: show Services applied with Rules involving applied Hostgroups (#2313) * FIX: show Services applied with Rules involving applied Hostgroups (#2313)
* FEATURE: show "deprecated" flag on object attribute inspection (#2312) * 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) next patch release (will be 1.8.1)
---------------------------------- ----------------------------------