mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
thirdparty: add address on kind = contact
This commit is contained in:
parent
3c1c07dc64
commit
d3127bed6d
@ -134,9 +134,6 @@ class ThirdPartyType extends AbstractType
|
|||||||
// Institutional ThirdParty (parent)
|
// Institutional ThirdParty (parent)
|
||||||
} else {
|
} else {
|
||||||
$builder
|
$builder
|
||||||
->add('address', PickAddressType::class, [
|
|
||||||
'label' => 'Address',
|
|
||||||
])
|
|
||||||
->add('nameCompany', TextType::class, [
|
->add('nameCompany', TextType::class, [
|
||||||
'label' => 'thirdparty.NameCompany',
|
'label' => 'thirdparty.NameCompany',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
@ -164,6 +161,9 @@ class ThirdPartyType extends AbstractType
|
|||||||
|
|
||||||
if (ThirdParty::KIND_CHILD !== $options['kind']) {
|
if (ThirdParty::KIND_CHILD !== $options['kind']) {
|
||||||
$builder
|
$builder
|
||||||
|
->add('address', PickAddressType::class, [
|
||||||
|
'label' => 'Address',
|
||||||
|
])
|
||||||
->add('typesAndCategories', PickThirdPartyTypeCategoryType::class, [
|
->add('typesAndCategories', PickThirdPartyTypeCategoryType::class, [
|
||||||
'label' => 'thirdparty.Categories',
|
'label' => 'thirdparty.Categories',
|
||||||
])
|
])
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
{{ form_widget(form.activeChildren) }}
|
{{ form_widget(form.activeChildren) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if thirdParty.kind != 'contact' and thirdParty.kind != 'child' %}
|
{% if form.address is defined %}
|
||||||
{{ form_row(form.address) }}
|
{{ form_row(form.address) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user