From 7db8a371fcc586b2cfd8834da52088fcaa5de66b Mon Sep 17 00:00:00 2001 From: LenaertsJ Date: Mon, 8 Sep 2025 13:47:14 +0000 Subject: [PATCH] Resolve "Absence user: add end date" --- .../unreleased/Feature-20250811-152154.yaml | 6 ++ .../unreleased/Feature-20250908-101258.yaml | 6 ++ .../unreleased/Fixed-20250811-155212.yaml | 6 ++ .../Resources/public/vuejs/Calendar/App.vue | 2 + .../public/vuejs/MyCalendarRange/App2.vue | 28 +++++++-- .../Controller/AbsenceController.php | 1 + src/Bundle/ChillMainBundle/Entity/User.php | 33 ++++++++++- .../ChillMainBundle/Form/AbsenceType.php | 7 ++- src/Bundle/ChillMainBundle/Form/UserType.php | 5 ++ .../Resources/public/chill/js/date.ts | 14 +++-- .../Resources/views/Menu/absence.html.twig | 58 +++++++++---------- .../Resources/views/layout.html.twig | 2 +- .../Serializer/Normalizer/UserNormalizer.php | 9 +++ .../ChillMainBundle/Tests/Entity/UserTest.php | 32 ++++++++++ .../Normalizer/UserNormalizerTest.php | 6 ++ .../migrations/Version20250722140048.php | 34 +++++++++++ .../translations/messages+intl-icu.fr.yaml | 4 ++ .../translations/messages.fr.yml | 4 +- .../translations/validators.fr.yml | 4 ++ 19 files changed, 218 insertions(+), 43 deletions(-) create mode 100644 .changes/unreleased/Feature-20250811-152154.yaml create mode 100644 .changes/unreleased/Feature-20250908-101258.yaml create mode 100644 .changes/unreleased/Fixed-20250811-155212.yaml create mode 100644 src/Bundle/ChillMainBundle/migrations/Version20250722140048.php diff --git a/.changes/unreleased/Feature-20250811-152154.yaml b/.changes/unreleased/Feature-20250811-152154.yaml new file mode 100644 index 000000000..391ab92c1 --- /dev/null +++ b/.changes/unreleased/Feature-20250811-152154.yaml @@ -0,0 +1,6 @@ +kind: Feature +body: Add 45 and 60 min calendar ranges +time: 2025-08-11T15:21:54.209009751+02:00 +custom: + Issue: "409" + SchemaChange: No schema change diff --git a/.changes/unreleased/Feature-20250908-101258.yaml b/.changes/unreleased/Feature-20250908-101258.yaml new file mode 100644 index 000000000..21f0604f8 --- /dev/null +++ b/.changes/unreleased/Feature-20250908-101258.yaml @@ -0,0 +1,6 @@ +kind: Feature +body: Add an absence end date +time: 2025-09-08T10:12:58.281765116+02:00 +custom: + Issue: "412" + SchemaChange: Add columns or tables diff --git a/.changes/unreleased/Fixed-20250811-155212.yaml b/.changes/unreleased/Fixed-20250811-155212.yaml new file mode 100644 index 000000000..5d0981f91 --- /dev/null +++ b/.changes/unreleased/Fixed-20250811-155212.yaml @@ -0,0 +1,6 @@ +kind: Fixed +body: fix date formatting in calendar range display +time: 2025-08-11T15:52:12.949078671+02:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue index 794f05657..27acb901a 100644 --- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue +++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue @@ -70,6 +70,8 @@ + +