From 9725970c56458a66087c84242fda618f5ad5b925 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 15 Sep 2021 18:21:18 +0200 Subject: [PATCH] tp: adapt _insert_vue_address include parameters --- .../components/CourseLocation.vue | 1 - .../Resources/views/Address/list.html.twig | 6 +- .../views/Household/addresses.html.twig | 3 - .../Address/_insert_vue_address.html.twig | 77 ------------------- .../Resources/views/ThirdParty/new.html.twig | 12 +-- .../views/ThirdParty/update.html.twig | 10 ++- 6 files changed, 16 insertions(+), 93 deletions(-) delete mode 100644 src/Bundle/ChillThirdPartyBundle/Resources/views/Address/_insert_vue_address.html.twig diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue index 8538db3bc..fab49a20b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue @@ -4,7 +4,6 @@ {{ $t('courselocation.title') }} -
{{ error }}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Address/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Address/list.html.twig index 2c2da145f..811858f97 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Address/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Address/list.html.twig @@ -66,8 +66,8 @@ {% if address.validTo is not empty and address.validTo < previousRowFrom %}
- {# include vue_address component #} {{ 'Insert an address'|trans }}
+ {# include vue_address component #} {# {% include '@ChillMain/Address/_insert_vue_address.html.twig' with { targetEntity: { name: 'person', id: person.id }, @@ -82,8 +82,8 @@
- {# include vue_address component #} {{ 'Insert an address'|trans }}
+ {# include vue_address component #} {# {% include '@ChillMain/Address/_insert_vue_address.html.twig' with { targetEntity: { name: 'person', id: person.id }, @@ -115,7 +115,6 @@ }) }} @@ -166,7 +165,6 @@
  • - {# include vue_address component #} {{ 'Add an address'|trans }} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/addresses.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/addresses.html.twig index 087e8be11..7f35b7ae9 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/addresses.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/addresses.html.twig @@ -42,7 +42,6 @@
    @@ -65,7 +64,6 @@
    diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig index 340ecf15b..b2cc7f56d 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig @@ -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