mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 12:40:08 +02:00
Allow to set and view the owner of a part lot
This commit is contained in:
parent
5f5541ca12
commit
447b54fa4b
4 changed files with 37 additions and 9 deletions
|
@ -27,6 +27,7 @@ use App\Entity\Parts\PartLot;
|
|||
use App\Entity\Parts\Storelocation;
|
||||
use App\Form\Type\SIUnitType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Form\Type\UserSelectType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
||||
|
@ -98,6 +99,12 @@ class PartLotType extends AbstractType
|
|||
'required' => false,
|
||||
'empty_data' => '',
|
||||
]);
|
||||
|
||||
$builder->add('owner', UserSelectType::class, [
|
||||
'label' => 'part_lot.owner',
|
||||
'required' => false,
|
||||
'help' => 'part_lot.owner.help',
|
||||
]);
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue