From 1d9811b0ff67019843e033110c4a5f19a2787800 Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Mon, 27 Feb 2023 17:09:29 +0000 Subject: [PATCH] custom css is now only applied to travel form, not to all forms --- input/forms.py | 6 ++++++ input/templates/input/extern.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/input/forms.py b/input/forms.py index f4bf805..262f376 100755 --- a/input/forms.py +++ b/input/forms.py @@ -74,6 +74,12 @@ class TravelForm(FdbForm): 'checkout': AdminDateWidget(),} fields = ['project_name', 'transport', 'travelcost', 'checkin', 'checkout', 'hotel', 'notes'] + class Media: + css = { + 'all': ('admin/css/dateFieldNoNowShortcutInTravels.css',) + } + + class LibraryForm(FdbForm): class Meta: diff --git a/input/templates/input/extern.html b/input/templates/input/extern.html index 13dcb6a..d0721bf 100755 --- a/input/templates/input/extern.html +++ b/input/templates/input/extern.html @@ -9,7 +9,7 @@ - + {% load i18n %} {% block content %}