From 3d591a39f77403b266366e70dda2bd5f79d1044a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benni=20B=C3=A4rmann?= Date: Fri, 9 Dec 2022 17:20:03 +0000 Subject: [PATCH] now the | in datefield is also hidden via css --- input/forms.py | 2 +- input/static/css/dateFieldNoNowShortcutInTravels.css | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/input/forms.py b/input/forms.py index 3951955..79fa58c 100755 --- a/input/forms.py +++ b/input/forms.py @@ -82,7 +82,7 @@ class TravelForm(FdbForm): class Media: css = { - 'all': ('admin/css/dateFieldNoNowShortcutInTravels.css',) + 'all': ('css/dateFieldNoNowShortcutInTravels.css',) } diff --git a/input/static/css/dateFieldNoNowShortcutInTravels.css b/input/static/css/dateFieldNoNowShortcutInTravels.css index 0c0c7f2..08c9cd0 100644 --- a/input/static/css/dateFieldNoNowShortcutInTravels.css +++ b/input/static/css/dateFieldNoNowShortcutInTravels.css @@ -1,5 +1,14 @@ +/* span.datetimeshortcuts > a:first-child { visibility: hidden; } +*/ +span.datetimeshortcuts { + visibility: hidden; +} + +span.datetimeshortcuts > a:nth-child(2) { + visibility: visible; +}