mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-16 13:24:31 +02:00
Implement a user friendly part select element.
This commit is contained in:
parent
c78bc01d23
commit
670dd76ef5
5 changed files with 175 additions and 3 deletions
|
@ -4,6 +4,7 @@ namespace App\Form\ProjectSystem;
|
|||
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\ProjectSystem\ProjectBOMEntry;
|
||||
use App\Form\Type\PartSelectType;
|
||||
use Svg\Tag\Text;
|
||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
|
@ -23,9 +24,7 @@ class ProjectBOMEntryType extends AbstractType
|
|||
'label' => 'project.bom.quantity',
|
||||
])
|
||||
|
||||
->add('part', EntityType::class, [
|
||||
'class' => Part::class,
|
||||
'choice_label' => 'name',
|
||||
->add('part', PartSelectType::class, [
|
||||
'required' => false,
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue