take into account form_show_centers parameters into thirdparty form type

This commit is contained in:
2021-11-15 13:14:08 +01:00
parent 77add46a70
commit 5fb7a6d0ae
3 changed files with 44 additions and 62 deletions

View File

@@ -30,38 +30,10 @@
{{ form_row(form.address) }}
{#
<div class="mb-3 row">
{{ form_label(form.address) }}
{{ form_widget(form.address) }}
<div class="col-sm-8">
{% if thirdParty.address %}
{# include vue_address component #
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
mode: 'edit',
addressId: thirdParty.address.id,
buttonSize: 'btn-sm',
} %}
{#
backUrl: path('chill_3party_3party_new'),
#
{% else %}
{# include vue_address component #
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
mode: 'new',
buttonSize: 'btn-sm',
buttonText: 'Create a new address',
modalTitle: 'Create a new address',
} %}
{% endif %}
</div>
</div>
#}
{{ form_row(form.comment) }}
{% if form.centers is defined %}
{{ form_row(form.centers) }}
{% endif %}
{{ form_row(form.active) }}