From c440d8a2bd7b376d0ae3155d596bd2d1a22f6130 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 17 Sep 2021 15:32:36 +0200 Subject: [PATCH] tp: adapt variables for include _insert_vue_address --- .../Resources/views/ThirdParty/new.html.twig | 5 ----- .../Resources/views/ThirdParty/update.html.twig | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/new.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/new.html.twig index e6ab52be5..8b7a38fea 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/new.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/new.html.twig @@ -36,9 +36,7 @@ {{ form_label(form.address) }} {{ form_widget(form.address) }}
- 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 %}
diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig index f59f5d0cc..862eea893 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig @@ -53,9 +53,7 @@ {{ form_label(form.address) }} {{ form_widget(form.address) }}
- 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 %}