From 89edf508f5e9f12482fd06caf56c22663e923f1c Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 12 Jan 2022 17:38:24 +0100 Subject: [PATCH] button added to add contact to personne morale (styling not correct yet) + opening of onTheFly thirdparty, but conditions and parameters not yet correct --- .../vuejs/OnTheFly/components/OnTheFly.vue | 12 ++ .../_components/AddPersons/TypeThirdParty.vue | 85 +++++++------- .../vuejs/_components/OnTheFly/ThirdParty.vue | 107 ++++++++++-------- 3 files changed, 118 insertions(+), 86 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue index 7b06776ba..c348e308f 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -51,6 +51,16 @@ + + @@ -48,36 +53,36 @@ const i18n = { }; export default { - name: 'SuggestionThirdParty', - components: { - OnTheFly, - BadgeEntity - }, - props: ['item'], - i18n, - computed: { - hasAddress() { - if (this.$props.item.result.address !== null) { - return true; - } - if (this.$props.item.result.parent !== null) { - this.$props.item.result.parent.address !== null; - } - }, - hasParent() { - return this.$props.item.result.parent !== null; - }, - getAddress() { - if (this.$props.item.result.address !== null) { - return this.$props.item.result.address; - } - if (this.$props.item.result.parent.address !== null) { - return this.$props.item.result.parent.address; - } + name: 'SuggestionThirdParty', + components: { + OnTheFly, + BadgeEntity + }, + props: ['item'], + i18n, + computed: { + hasAddress() { + if (this.$props.item.result.address !== null) { + return true; + } + if (this.$props.item.result.parent !== null) { + this.$props.item.result.parent.address !== null; + } + }, + hasParent() { + return this.$props.item.result.parent !== null; + }, + getAddress() { + if (this.$props.item.result.address !== null) { + return this.$props.item.result.address; + } + if (this.$props.item.result.parent.address !== null) { + return this.$props.item.result.parent.address; + } - return null; - } - } + return null; + } + } } diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue index 49249b8a1..366df4559 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -20,58 +20,73 @@
- -
-
- - -
-
- - -
-
-
-

Contact de :

- +
+ + +
+
+ + +
+
+
+

Contact de :

+ + -
+
- +