mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
tp: adapt variables for include _insert_vue_address
This commit is contained in:
parent
210d819125
commit
c440d8a2bd
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user