Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried
-
the unobtrusive date picker plugin but it breaks with the latest release of Rails.
-
calendar date select plugin uses prototype which I have removed from my app and don't want to add back.
-
active calendar plugin - broken with latest Rails and hacked to fix but doesn't fill out the text fields when a model is loaded.
Thanks very much.
Source: Tips4all, CCNA FINAL EXAM
http://trentrichardson.com/examples/timepicker/
ReplyDeleteThis is the best date time picker I've seen. milesich is not actively maintained anymore. There're bugs if the input field is blank. Sure there're solutions(in the comments), but if you look at the code, its one ugly hack.
Trent's implementation is much cleaner. Shorter, easy to understand and mimimal CSS to add. I highly recommend his work
Here is a good write up on one option.
ReplyDeletehttp://milesich.com/timepicker/
There is another post here on StackOverflow on a similar topic. You are looking for something more specific to rails than the OP of this one, but it still has some good info.
The Any+Time(TM) Datepicker/Timepicker AJAX Calendar Widget uses jQuery and should work seamlessly with Rails. It provides many date/time formatting options and requires only a single line of your own JS code to attach to any text field. It also aims to minimize the number of mouse clicks necessary to select a date and/or time, and provides WAI-ARIA keyboard accessibility for users without a mouse. Did I mention Time Zone support and custom Styles/Themes using CSS and/or jQuery UI? :-)
ReplyDeleteIf you happen to be using Twitter bootstrap, here's a great datepicker to go along with it:
ReplyDeletehttps://github.com/eternicode/bootstrap-datepicker