From 1a07c9d71a960db53a032bfea1e7ffccf0d19740 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 13 Jan 2022 16:30:52 +0100 Subject: [PATCH] v-model added so data is taken from the form for all fields + modal title correction --- .../Resources/public/vuejs/OnTheFly/components/OnTheFly.vue | 4 ++-- .../ChillMainBundle/Resources/public/vuejs/OnTheFly/i18n.js | 2 +- src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | 1 + 3 files changed, 4 insertions(+), 3 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 2dddd51be..6ac2bb728 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -186,8 +186,8 @@ export default { this.modal.showModal = false; }, openModal() { - //console.log('## OPEN ON THE FLY MODAL'); - //console.log('## type:', this.type, ', action:', this.action); + // console.log('## OPEN ON THE FLY MODAL'); + // console.log('## type:', this.type, ', action:', this.action); this.modal.showModal = true; this.$nextTick(function() { //this.$refs.search.focus(); diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/i18n.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/i18n.js index 04035a521..178203807 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/i18n.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/i18n.js @@ -18,7 +18,7 @@ const ontheflyMessages = { thirdparty: "un nouveau tiers professionnel" }, addContact: { - title: "Créer un contact pour ..." + title: "Créer un contact pour {q}" } resource_comment_title: "Un commentaire est associé à cet interlocuteur" addContact: { diff --git a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php index 6f01363fb..97d18ae62 100644 --- a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php @@ -133,6 +133,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface /** * @ORM\Column(name="comment", type="text", nullable=true) + * @Groups({"read", "write"}) */ private ?string $comment = null;