-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing the datepicker with bootstrap-datepicker #1551
Comments
@jasonm23 +1 to this idea. Any progress on the pull request or should someone else give it a go? Did you get stuck somewhere? Let's get this working. |
What about this one: http://tarruda.github.io/bootstrap-datetimepicker/? One of the possible advantages is that this datetimepicker in theory could be used directly on date fields (without the hacks with the generated date and time fields in ra.datetimepicker). update: I've found at least 1 serious problem: this version can't output month names in dates. |
Also we can leave the same 2-inputs layout for date and time if we'd use: The only drawback is that it would require the same kind of 'magic' with In the end, what would be the optimal way of doing things? (I'm messing with the both plugins right now, but I'm going to write rails_admin integration in 2-3 days. So, it would be great to have some definitive views on this issue.) |
Ideal? I think a choice is better, and allowing a field directive to select ie.
Or
Or
(Using current default.) My 2c |
I suppose the other way around legacy usability would be to allow the old date picker as an optional, so devs with "uncomfortable" users could roll back. Just food for thought. I think making the new ones optional will be a better way to go though. Perhaps deprecating the current default later? |
@jasonm23 👍 Right on, I think that sounds great! Keep it as it is with options to use the new features. Later on we can depreciate the current default when we feel it's appropriate. |
@jasonm23, @jgrevich Sounds good to me. For example, I can name them: bootstrap_datepicker, bootstrap_timepicker |
@scarfacedeb sounds good, will that significantly impact time to re-integrate when these externals are updated? |
@jasonm23 I think, replacing a couple of strings in |
If there's support in ra for the other plugins already(?) that could pose a I'm assuming you'd use just the bootstrap_datetime plugin, and supply the Sent from Gmail Mobile |
@jasonm23 no, I'm implementing it the same way as it's now - 2 separate inputs for date and time using There's |
Sounds good. Sent from Gmail Mobile |
Look forward to the pull request, in the mean time it looks as if we can close this issue. |
Did this ever wind up in a PR? I couldn't find one, but maybe I missed it? |
Unfortunately, it turned out more difficult, than I expected. |
Gotcha. Thanks for the update! |
@scarfacedeb perhaps it would be useful to post what you have in a PR so someone can pickup where you left off. |
http://www.eyecon.ro/bootstrap-datepicker/
(improved in this fork.)
https://github.com/eternicode/bootstrap-datepicker
It would be good if the old JQueryUI datepicker was replaced with the bootstrap-datepicker, I am currently looking at this in the source, and will issue a pull request if I get it working.
I'm posting this in case anyone else is already working on this / or has thoughts.
The text was updated successfully, but these errors were encountered: