Browse Source

now the | in datefield is also hidden via css

master
alpcentaur 1 year ago
parent
commit
29cdd7b653
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      input/forms.py
  2. +9
    -0
      input/static/css/dateFieldNoNowShortcutInTravels.css

+ 1
- 1
input/forms.py View File

@ -82,7 +82,7 @@ class TravelForm(FdbForm):
class Media: class Media:
css = { css = {
'all': ('admin/css/dateFieldNoNowShortcutInTravels.css',)
'all': ('css/dateFieldNoNowShortcutInTravels.css',)
} }

+ 9
- 0
input/static/css/dateFieldNoNowShortcutInTravels.css View File

@ -1,5 +1,14 @@
/*
span.datetimeshortcuts > a:first-child { span.datetimeshortcuts > a:first-child {
visibility: hidden; visibility: hidden;
} }
*/
span.datetimeshortcuts {
visibility: hidden;
}
span.datetimeshortcuts > a:nth-child(2) {
visibility: visible;
}

Loading…
Cancel
Save