Allow to set and view the owner of a part lot

This commit is contained in:
Jan Böhmer 2023-04-02 23:17:24 +02:00
parent 5f5541ca12
commit 447b54fa4b
4 changed files with 37 additions and 9 deletions

View file

@ -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