diff --git a/web/snapshots/brass_web__endpoints__assignment__post_new__tests__inner_response_produces_updated_template.snap b/web/snapshots/brass_web__endpoints__assignment__post_new__tests__inner_response_produces_updated_template.snap
index 60c58d4d..7cf8e584 100644
--- a/web/snapshots/brass_web__endpoints__assignment__post_new__tests__inner_response_produces_updated_template.snap
+++ b/web/snapshots/brass_web__endpoints__assignment__post_new__tests__inner_response_produces_updated_template.snap
@@ -30,7 +30,12 @@ snapshot_kind: text
-
+
diff --git a/web/src/endpoints/assignment/mod.rs b/web/src/endpoints/assignment/mod.rs
index 97d76f46..93a4603a 100644
--- a/web/src/endpoints/assignment/mod.rs
+++ b/web/src/endpoints/assignment/mod.rs
@@ -1,6 +1,7 @@
use askama::Template;
use crate::filters;
+use crate::utils::DateTimeFormat::{DayMonthYearHourMinute, HourMinute};
use brass_db::models::{Availability, AvailabilityAssignmentState, Event};
pub mod delete;
diff --git a/web/static/utils.js b/web/static/utils.js
index 4bac5e33..0ed13c6a 100644
--- a/web/static/utils.js
+++ b/web/static/utils.js
@@ -11,30 +11,6 @@ document.addEventListener("htmx:afterSwap", () => {
document.querySelectorAll("button[hx-trigger='confirmed']").forEach((value) => value.addEventListener("click", fireConfirmModal));
});
-// dropdown activation / deactivation
-const toggleDropdown = (event) => {
- const classList = event.target.closest('.dropdown').classList
- if (!classList.contains('is-active')) {
- Array.from(document.querySelectorAll('.dropdown')).forEach((d) => d.classList.remove('is-active'));
- }
- classList.toggle('is-active');
-};
-
-const closeDropdownsIfClickedOutside = (event) => {
- const dropdowns = Array.from(document.querySelectorAll('.dropdown'));
- if (dropdowns.every((v) => !v.contains(event.target))) {
- dropdowns.forEach((d) => d.classList.remove('is-active'))
- }
-}
-
-document.querySelectorAll(".dropdown-trigger .button").forEach((value) => value.addEventListener("click", toggleDropdown));
-document.addEventListener("click", closeDropdownsIfClickedOutside);
-
-document.addEventListener("htmx:afterSwap", () => {
- document.querySelectorAll(".dropdown-trigger .button").forEach((value) => value.addEventListener("click", toggleDropdown));
- document.addEventListener("click", closeDropdownsIfClickedOutside);
-});
-
// light / dark mode interpretation for first load and switch behaviour respecting localStorage and CSS prefers-color-scheme
const getCurrentTheme = () => {
let current = localStorage.getItem("theme");
diff --git a/web/templates/events/plan_personal_table.html b/web/templates/events/plan_personal_table.html
index edae46b4..88edb888 100644
--- a/web/templates/events/plan_personal_table.html
+++ b/web/templates/events/plan_personal_table.html
@@ -27,14 +27,20 @@
{{ u.function|show_tree|safe }}
|
- {{ availability.start.format("%R") }} bis {{ availability.end.format("%d.%m.%Y %R") }}
+ {{ availability.start|fmt_datetime(HourMinute) }} bis {{ availability.end|fmt_datetime(DayMonthYearHourMinute)
+ }}
|
- {{ availability.comment.as_deref().unwrap_or("") }}
+ {{ availability.comment.as_deref().unwrap_or_default() }}
|
|