PuzzleTechHub / myus

A public hassle free puzzlehunt hosting tool
https://www.puzzlehuntmy.us/
MIT License
1 stars 9 forks source link

#39: Use datetime-local inputs for hunt start/end times #45

Closed madjaqk closed 2 months ago

madjaqk commented 4 months ago

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.

image image

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.