mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge pull request #8153 from silverbackdan/patch-1
Use appropriate labels and placeholders
This commit is contained in:
commit
1897556597
1 changed files with 3 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ final class BuildAddressFormSubscriber implements EventSubscriberInterface
|
|||
return $this->formFactory->createNamed('provinceCode', ProvinceCodeChoiceType::class, $provinceCode, [
|
||||
'country' => $country,
|
||||
'auto_initialize' => false,
|
||||
'label' => 'sylius.form.address.province',
|
||||
'placeholder' => 'sylius.form.province.select',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -150,6 +152,7 @@ final class BuildAddressFormSubscriber implements EventSubscriberInterface
|
|||
return $this->formFactory->createNamed('provinceName', TextType::class, $provinceName, [
|
||||
'required' => false,
|
||||
'auto_initialize' => false,
|
||||
'label' => 'sylius.form.address.province',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue