Add input type = "date" to DateFilters. #1568
LewisFletcher
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be as simple as modifying the widgets that use dates to default to the DateInput widget, with the input_class = "date" specified. Here is an example:
Digging into filters.py, we can find the 'DateFromToRangeFilter'
It's base widget (in widgets.py) is the 'RangeWidget', which includes this init code:
If we modified this code to use a DateInput with a specified input type, it would look like this:
And would render with much better default styling, including a calander drop down for selecting the date:
(Original date selector without added code below)
Beta Was this translation helpful? Give feedback.
All reactions