From 3c6d3f30d2894d5d76ce73bdd2fa0e46cdf6de4d Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sun, 16 May 2021 09:54:27 +0200 Subject: [PATCH] teleport toggle flags in header --- .../Resources/public/vuejs/_js/i18n.js | 5 ++ .../components/AccompanyingCourse.vue | 48 +++++++++---------- .../components/ToggleFlags.vue | 26 +++++----- .../vuejs/AccompanyingCourse/js/i18n.js | 2 + 4 files changed, 42 insertions(+), 39 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js index 4f5c64e30..e36cbda79 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js @@ -7,6 +7,11 @@ const datetimeFormats = { month: "numeric", day: "numeric" }, + text: { + year: "numeric", + month: "long", + day: "numeric", + }, long: { year: "numeric", month: "short", diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue index 3573ce6e2..80e75414b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue @@ -3,11 +3,8 @@

{{ $t('course.title') }}

{{ $t('course.id') }}
-
{{ accompanyingCourse.id }}
+
{{ accompanyingCourse.id }}
-
{{ $t('course.user') }}
-
{{ accompanyingCourse.user.username }}
-
{{ $t('course.status') }}
-
{{ $t('course.flags') }}
-
- - - - - - - -
- -
{{ $t('course.opening_date') }}
-
{{ $d(accompanyingCourse.openingDate.datetime, 'short') }}
-
{{ $t('course.closing_date') }}
-
{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}
+
{{ $d(accompanyingCourse.closingDate.datetime, 'short') }}
{{ $t('course.closing_motive') }}
-
{{ accompanyingCourse.closingMotive.name.fr }}
- -
{{ $t('course.remark') }}
-
{{ accompanyingCourse.remark }}
- +
{{ accompanyingCourse.closingMotive.name.fr }}
+ + + + + + + +

+ + {{ $t('course.open_at') }}{{ $d(accompanyingCourse.openingDate.datetime, 'text') }} +
+ + {{ $t('course.by') }}{{ accompanyingCourse.user.username }} + +

+
+ diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/ToggleFlags.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/ToggleFlags.vue index 169233641..12c372f12 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/ToggleFlags.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/ToggleFlags.vue @@ -1,17 +1,17 @@