From 29cdd7b6536834ccd92deb45010492f642ab76f8 Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Mon, 27 Feb 2023 17:09:29 +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; +}