From 02be8a37a56df0382995b0dbf783dbe75c5ec689 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 14 Mar 2025 18:19:58 +0100 Subject: [PATCH] Implement editing of time slots Render the timeslots as an editable table of times with associated event. When the event it's linked to is edited the time slot is removed from the original event it belonged to and added to the possibly new event it now belongs to. This gives a somewhat intutive editing experience when editing time slots linked to events with multiple times. --- assets/global.css | 4 +- components/ScheduleTable.vue | 676 +++++++++++++++++++++++++++++++++++ pages/edit.vue | 43 +++ 3 files changed, 721 insertions(+), 2 deletions(-) create mode 100644 components/ScheduleTable.vue diff --git a/assets/global.css b/assets/global.css index f7a3fca..4512628 100644 --- a/assets/global.css +++ b/assets/global.css @@ -53,7 +53,7 @@ a { } } -button, input, textarea { +button, input, textarea, select { font-family: inherit; font-size: inherit; } @@ -71,7 +71,7 @@ label>* { margin-inline-start: 0.5rem; } -:is(p, form, fieldset, pre) + :is(p, form, fieldset, pre) { +:is(p, form, fieldset, pre, ul) + :is(p, form, fieldset, pre, ul) { margin-block-start: 0.5rem; } diff --git a/components/ScheduleTable.vue b/components/ScheduleTable.vue new file mode 100644 index 0000000..989fc58 --- /dev/null +++ b/components/ScheduleTable.vue @@ -0,0 +1,676 @@ + + + + + diff --git a/pages/edit.vue b/pages/edit.vue index 9d15202..5310043 100644 --- a/pages/edit.vue +++ b/pages/edit.vue @@ -3,15 +3,58 @@

Edit

Locations

+

Schedule

+ +