tp: adapt variables for include _insert_vue_address

This commit is contained in:
Mathieu Jaumotte 2021-09-17 15:32:36 +02:00
parent 210d819125
commit c440d8a2bd
2 changed files with 0 additions and 10 deletions

View File

@ -36,9 +36,7 @@
{{ form_label(form.address) }}
{{ form_widget(form.address) }}
<div class="col-sm-8">
new tp =>
{% if thirdParty.address %}
edit address
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
@ -46,10 +44,8 @@
mode: 'edit',
addressId: thirdParty.address.id,
buttonSize: 'btn-sm',
openPanesInModal: false,
} %}
{% else %}
create address
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
@ -58,7 +54,6 @@
buttonSize: 'btn-sm',
buttonText: 'Create a new address',
modalTitle: 'Create a new address',
openPanesInModal: false,
} %}
{% endif %}
</div>

View File

@ -53,9 +53,7 @@
{{ form_label(form.address) }}
{{ form_widget(form.address) }}
<div class="col-sm-8">
update tp =>
{% if thirdParty.address %}
edit address
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
@ -63,17 +61,14 @@
mode: 'edit',
addressId: thirdParty.address.id,
buttonSize: 'btn-sm',
openPanesInModal: false
} %}
{% else %}
create address
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
backUrl: path('chill_3party_3party_update', { thirdparty_id: thirdParty.id }),
mode: 'new',
buttonSize: 'btn-sm',
openPanesInModal: false
} %}
{% endif %}
</div>