WIP: WIP
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace App\Form;
|
||||
|
||||
use App\Entity\Assignment;
|
||||
use App\Entity\BpnDate;
|
||||
use App\Entity\Destination;
|
||||
use App\Entity\Fee;
|
||||
use App\Entity\JobProfile;
|
||||
use App\Entity\User;
|
||||
@@ -28,11 +28,9 @@ class AssignmentType extends AbstractType
|
||||
])
|
||||
->add('destination', AutocompleteEntityType::class, [
|
||||
'label' => 'Destination',
|
||||
'class' => BpnDate::class,
|
||||
'class' => Destination::class,
|
||||
'label_property' => 'product',
|
||||
'label_function' => function (BpnDate $date) {
|
||||
return (string) $date;
|
||||
},
|
||||
'label_function' => fn(Destination $destination) => (string) $destination,
|
||||
'endpoint_route' => 'app_admin_autocomplete_bpndate',
|
||||
])
|
||||
->add('jobProfile', EntityType::class, [
|
||||
|
||||
@@ -24,7 +24,7 @@ class TeamerProfileType extends AbstractType
|
||||
->add('gender', ChoiceType::class, [
|
||||
'label' => 'Geschlecht',
|
||||
'choices' => [
|
||||
'weiblich' => 'W',
|
||||
'weiblich' => 'F',
|
||||
'männlich' => 'M',
|
||||
'divers' => 'D',
|
||||
],
|
||||
@@ -50,6 +50,7 @@ class TeamerProfileType extends AbstractType
|
||||
->add('dateOfBirth', BirthdayType::class, [
|
||||
'label' => 'Geburtsdatum',
|
||||
'input_format' => 'datetime_immutable',
|
||||
'widget' => 'choice',
|
||||
])
|
||||
->add('nationality', BpnCountryType::class, [
|
||||
'label' => 'Nationalität',
|
||||
|
||||
Reference in New Issue
Block a user