Browse Source

custom css is now only applied to travel form, not to all forms

master
alpcentaur 1 year ago
parent
commit
1d9811b0ff
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      input/forms.py
  2. +1
    -1
      input/templates/input/extern.html

+ 6
- 0
input/forms.py View File

@ -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:

+ 1
- 1
input/templates/input/extern.html View File

@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/base.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/dateFieldNoNowShortcutInTravels.css' %}" />
{% load i18n %}
{% block content %}

Loading…
Cancel
Save