From 160383e3a3a378ff39ce6a930b8474e864e98315 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 17 Aug 2021 16:23:16 +0200 Subject: [PATCH] AccompanyingCourse: precise address person locator + minors stuffs --- .../public/vuejs/AccompanyingCourse/components/Banner.vue | 3 ++- .../AccompanyingCourse/components/CourseLocation.vue | 7 +++++-- .../Resources/public/vuejs/AccompanyingCourse/js/i18n.js | 1 + .../views/AccompanyingCourse/_warning_address.html.twig | 8 +++----- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Banner.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Banner.vue index eda06b285..9fe6fe87c 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Banner.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Banner.vue @@ -5,7 +5,8 @@ - + {{ $t('course.step.draft') }} 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 df9ded5c5..220b2ea91 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/CourseLocation.vue @@ -15,8 +15,11 @@ :address="accompanyingCourse.location"> -
+
+ {{ $t('courselocation.person_locator', [ accompanyingCourse.personLocation.text ]) }} +
+ +

{{ $t('courselocation.temporary_address_must_be_changed') }}

diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/js/i18n.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/js/i18n.js index 31fd73d25..c690534ba 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/js/i18n.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/js/i18n.js @@ -74,6 +74,7 @@ const appMessages = { sure: "Êtes-vous sûr ?", sure_description: "Voulez-vous faire de cette adresse l'adresse du parcours ?", ok: "Désigner comme adresse du parcours", + person_locator: "Parcours localisé auprès de {0}", }, referrer: { title: "Référent du parcours", diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig index 301a3a9cf..d56ed6442 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig @@ -1,7 +1,5 @@ -
-
-
- {{ 'This course is located at a temporarily address. You should locate this course to an user'|trans }} -
+
+
+ {{ 'This course is located at a temporarily address. You should locate this course to an user'|trans }}