tp: adapt _insert_vue_address include parameters

This commit is contained in:
2021-09-15 18:21:18 +02:00
parent 546a2e4fa1
commit 9725970c56
6 changed files with 16 additions and 93 deletions

View File

@@ -40,23 +40,25 @@
{% if thirdParty.address %}
edit address
{# include vue_address component #}
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
backUrl: path('chill_3party_3party_new')
mode: 'edit',
address_id: thirdParty.address.id,
addressId: thirdParty.address.id,
buttonSize: 'btn-sm',
binModalStep1: false,
backUrl: path('chill_3party_3party_new')
} %}
{% else %}
create address
{# include vue_address component #}
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'thirdparty', id: thirdParty.id },
backUrl: path('chill_3party_3party_new')
mode: 'create',
buttonSize: 'btn-sm',
buttonText: 'Create a new address',
modalTitle: 'Create a new address',
binModalStep1: false,
backUrl: path('chill_3party_3party_new')
} %}
{% endif %}
</div>

View File

@@ -57,16 +57,20 @@
{% if thirdParty.address %}
edit address
{# include vue_address component #}
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
{% 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: 'edit',
address_id: thirdParty.address.id,
addressId: thirdParty.address.id,
buttonSize: 'btn-sm',
binModalStep1: false
} %}
{% else %}
create address
{# include vue_address component #}
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
{% 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: 'create',
buttonSize: 'btn-sm',
binModalStep1: false