mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-21 19:34:54 +02:00
Allow to create new parts.
This commit is contained in:
parent
813e7dc85b
commit
76abef57be
3 changed files with 23 additions and 8 deletions
|
@ -93,10 +93,10 @@ class PartBaseType extends AbstractType
|
|||
->add('category', StructuralEntityType::class, ['class' => Category::class,
|
||||
'label' => 'category.label', 'disable_not_selectable' => true,
|
||||
'disabled' => !$this->security->isGranted('move', $part), ])
|
||||
->add('footprint', StructuralEntityType::class, ['class' => Footprint::class,
|
||||
->add('footprint', StructuralEntityType::class, ['class' => Footprint::class, 'required' => false,
|
||||
'label' => 'footprint.label', 'disable_not_selectable' => true,
|
||||
'disabled' => !$this->security->isGranted('move', $part), ])
|
||||
->add('tags', TextType::class, ['required' => false, 'label' => 'part.tags',
|
||||
->add('tags', TextType::class, ['required' => false, 'label' => 'part.tags', 'empty_data' => "",
|
||||
'attr' => ['data-role' => 'tagsinput'],
|
||||
'disabled' => !$this->security->isGranted('edit', $part) ])
|
||||
->add('comment', CKEditorType::class, ['required' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue