mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Implemented attachment autocomplete for internal ressources using tom-select
This commit is contained in:
parent
b731b2529c
commit
0c785d1a37
2 changed files with 62 additions and 1 deletions
|
@ -114,7 +114,8 @@ class AttachmentFormType extends AbstractType
|
|||
'label' => 'attachment.edit.url',
|
||||
'required' => false,
|
||||
'attr' => [
|
||||
'data-autocomplete' => $this->urlGenerator->generate('typeahead_builtInRessources', ['query' => 'QUERY']),
|
||||
'data-controller' => 'elements--attachment-autocomplete',
|
||||
'data-autocomplete' => $this->urlGenerator->generate('typeahead_builtInRessources', ['query' => '__QUERY__']),
|
||||
//Disable browser autocomplete
|
||||
'autocomplete' => 'off',
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue