This MR updates HuntForm to use input type datetime-local for the hunt start and end times. In modern browsers (I tested in Chrome and Microsoft Edge), this input will validate, submit the value in ISO format (minus seconds), and provide a calendar datepicker.
myus/views.py was getting rather long, so I also moved all of the forms logic to its own file, myus/forms.py. It's possible we'll want to continue breaking up the views into separate files in the future.
This MR updates
HuntForm
to use input typedatetime-local
for the hunt start and end times. In modern browsers (I tested in Chrome and Microsoft Edge), this input will validate, submit the value in ISO format (minus seconds), and provide a calendar datepicker.myus/views.py
was getting rather long, so I also moved all of the forms logic to its own file,myus/forms.py
. It's possible we'll want to continue breaking up the views into separate files in the future.