thecartercenter / nemo

NEMO is a mobile data collection and analysis web application.
https://getnemo.org
Apache License 2.0
60 stars 63 forks source link

9548: Upgrade date time picker #946

Closed plastichotsprings closed 1 year ago

plastichotsprings commented 1 year ago

The original issue this PR fixes is that previously, in form submissions, dates and times had to be manually selected from a dropdown and the starting year was in the 1800s. Rather than just changing the start and end dates for the dropdown, this PR adds a new gem, flatpickr. Now users can choose dates and times from an interactive element that appears upon clicking the field.

Note: because flatpickr css has to be integrated into the theme files, you have to run bundle exec rake theme:preprocess otherwise it won't work!

Other associated changes:

plastichotsprings commented 1 year ago

what do you think about merging this without the webdrivers change for now, and making that change separately?

This makes sense to me!