From 6c28ff00abf2ec5b7ea5e065a6b557e40c387fb0 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 10 Dec 2021 15:37:12 +0100 Subject: [PATCH] onthefly create thirdparty: use badge-entity for radio buttons label --- .../vuejs/_components/OnTheFly/ThirdParty.vue | 30 +++++++------------ .../views/ThirdParty/update.html.twig | 2 +- 2 files changed, 12 insertions(+), 20 deletions(-) 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 2d540530d..dc9025886 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -26,17 +26,19 @@
@@ -97,26 +99,16 @@ import ThirdPartyRenderBox from '../Entity/ThirdPartyRenderBox.vue'; import AddAddress from 'ChillMainAssets/vuejs/Address/components/AddAddress'; import { getThirdparty } from '../../_api/OnTheFly'; - -const i18n = { - messages: { - fr: { - tparty: { - contact: "Personne physique", - company: "Personne morale" - } - } - } -}; +import BadgeEntity from 'ChillMainAssets/vuejs/_components/BadgeEntity.vue'; export default { name: "OnTheFlyThirdParty", props: ['id', 'type', 'action'], components: { ThirdPartyRenderBox, - AddAddress + AddAddress, + BadgeEntity }, - i18n, data() { return { //context: {}, <-- diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig index 75e165270..2d9c39002 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/update.html.twig @@ -12,7 +12,7 @@ {% block crud_content_header %}

{{ 'Update third party %name%'|trans({ '%name%': thirdParty.name }) }} - {{ (thirdParty.active ? 'Active' : 'Inactive')|trans }}