mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-17 15:09:35 +00:00
Autofocus for frequently used input fields
Fixes #1157. - Focus `name` field on new part - Focus `amount` on add/withdraw modal - Focus first "number type" input on any newly added collectionType table row... (debatable) It would be even more favorable if the user could configure if they want to use autofocus and/or for which fields/dialogs it should be enabled.
This commit is contained in:
parent
41252d8bb9
commit
76f0b05a09
4 changed files with 11 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ class BaseEntityAdminForm extends AbstractType
|
|||
'label' => 'name.label',
|
||||
'attr' => [
|
||||
'placeholder' => 'part.name.placeholder',
|
||||
'autofocus' => true,
|
||||
],
|
||||
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue