mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-22 17:39:34 +00:00
Merge branch 'autofocus-fields'
This commit is contained in:
commit
f024c4b09e
4 changed files with 12 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ class BaseEntityAdminForm extends AbstractType
|
|||
'label' => 'name.label',
|
||||
'attr' => [
|
||||
'placeholder' => 'part.name.placeholder',
|
||||
'autofocus' => $is_new,
|
||||
],
|
||||
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ class PartBaseType extends AbstractType
|
|||
'label' => 'part.edit.name',
|
||||
'attr' => [
|
||||
'placeholder' => 'part.edit.name.placeholder',
|
||||
'autofocus' => $new_part,
|
||||
],
|
||||
])
|
||||
->add('description', RichTextEditorType::class, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue