From 747adf7c697bfc774bce21cb9bf9aaeb59b1ca24 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Thu, 7 Nov 2024 09:16:38 +0100 Subject: [PATCH] Calendar edit Modal --- .../club/calendar/CreateCalendarModal.vue | 10 +- .../club/calendar/DeleteCalendarModal.vue | 22 ++ .../club/calendar/UpdateCalendarModal.vue | 282 ++++++++++++++++++ src/stores/admin/calendar.ts | 2 +- src/viewmodels/admin/calendar.models.ts | 4 +- src/views/admin/club/calendar/Calendar.vue | 4 +- 6 files changed, 316 insertions(+), 8 deletions(-) create mode 100644 src/components/admin/club/calendar/UpdateCalendarModal.vue diff --git a/src/components/admin/club/calendar/CreateCalendarModal.vue b/src/components/admin/club/calendar/CreateCalendarModal.vue index 4273b8a..8f2734f 100644 --- a/src/components/admin/club/calendar/CreateCalendarModal.vue +++ b/src/components/admin/club/calendar/CreateCalendarModal.vue @@ -89,11 +89,17 @@
- +
- +
diff --git a/src/components/admin/club/calendar/DeleteCalendarModal.vue b/src/components/admin/club/calendar/DeleteCalendarModal.vue index 1771a62..07fc72f 100644 --- a/src/components/admin/club/calendar/DeleteCalendarModal.vue +++ b/src/components/admin/club/calendar/DeleteCalendarModal.vue @@ -4,6 +4,28 @@

Termin {{ calendar?.title }} löschen?


+

+ {{ + new Date(calendar?.starttime ?? "").toLocaleString("de-De", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + }) + }} + bis + {{ + new Date(calendar?.endtime ?? "").toLocaleString("de-De", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + }) + }} +

+