Fix: Use form labels in favour of placeholders to avois issues on mob.
This commit is contained in:
@@ -18,24 +18,18 @@ class AssignmentFilterType extends AbstractType
|
||||
{
|
||||
$builder
|
||||
->add('dateFrom', DatepickerType::class, [
|
||||
'label' => false,
|
||||
'label' => 'Zeitraum von',
|
||||
'min_date' => $options['min_date'],
|
||||
'max_date' => $options['max_date'],
|
||||
'attr' => [
|
||||
'placeholder' => 'von',
|
||||
],
|
||||
])
|
||||
->add('dateTo', DatepickerType::class, [
|
||||
'label' => false,
|
||||
'label' => 'Zeitraum bis',
|
||||
'min_date' => $options['min_date'],
|
||||
'max_date' => $options['max_date'],
|
||||
'attr' => [
|
||||
'placeholder' => 'bis',
|
||||
],
|
||||
])
|
||||
->add('duration', ChoiceType::class, [
|
||||
'label' => false,
|
||||
'placeholder' => 'Einsatzdauer',
|
||||
'label' => 'Einsatzdauer',
|
||||
'required' => false,
|
||||
'choices' => [
|
||||
'Wochenende (2-4 Tage)' => AssignmentFilterDto::DURATION_WEEKEND,
|
||||
'Midweek (5-6 Tage)' => AssignmentFilterDto::DURATION_MID_WEEK,
|
||||
@@ -54,9 +48,9 @@ class AssignmentFilterType extends AbstractType
|
||||
if (0 < count($options['job_profiles'])) {
|
||||
$builder
|
||||
->add('jobProfile', EntityType::class, [
|
||||
'label' => false,
|
||||
'placeholder' => 'Job-Profil',
|
||||
'label' => 'Job-Profil',
|
||||
'class' => JobProfile::class,
|
||||
'required' => false,
|
||||
'choice_label' => 'name',
|
||||
'choices' => $options['job_profiles'],
|
||||
])
|
||||
@@ -65,9 +59,9 @@ class AssignmentFilterType extends AbstractType
|
||||
if (0 < count($options['destinations'])) {
|
||||
$builder
|
||||
->add('destination', EntityType::class, [
|
||||
'label' => false,
|
||||
'placeholder' => 'Destination',
|
||||
'label' => 'Destination',
|
||||
'class' => Destination::class,
|
||||
'required' => false,
|
||||
'choice_label' => function (Destination $destination) {
|
||||
return $destination->getProduct();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user