From b5062dcc28eb3a6a66f83d852214e902a20bbc22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benni=20B=C3=A4rmann?= Date: Wed, 7 Dec 2022 14:08:23 +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 %}