mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
thirdparty form: clean builder, and test if this kind input address
This commit is contained in:
parent
5526790d42
commit
985d8f0eae
@ -137,12 +137,6 @@ class ThirdPartyType extends AbstractType
|
|||||||
->add('address', PickAddressType::class, [
|
->add('address', PickAddressType::class, [
|
||||||
'label' => 'Address',
|
'label' => 'Address',
|
||||||
])
|
])
|
||||||
->add('address2', PickAddressType::class, [
|
|
||||||
'label' => 'Address',
|
|
||||||
'use_valid_from' => true,
|
|
||||||
'use_valid_to' => true,
|
|
||||||
'mapped' => false,
|
|
||||||
])
|
|
||||||
->add('nameCompany', TextType::class, [
|
->add('nameCompany', TextType::class, [
|
||||||
'label' => 'thirdparty.NameCompany',
|
'label' => 'thirdparty.NameCompany',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
@ -28,7 +28,9 @@
|
|||||||
{{ form_widget(form.activeChildren) }}
|
{{ form_widget(form.activeChildren) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ form_row(form.address) }}
|
{% if thirdParty.kind != 'contact' and thirdParty.kind != 'child' %}
|
||||||
|
{{ form_row(form.address) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ form_row(form.comment) }}
|
{{ form_row(form.comment) }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user