date, time, datetime alternatives on 3.1

62 views
Skip to first unread message

Hernan Astudillo

unread,
Oct 12, 2011, 3:08:31 PM10/12/11
to activescaffold
Hi,

so, volker's datepicker is stuck on rails 3.0, which looks like it
needs only tweaking the assets install stuff, but not sure.

unobtrusive_date_picker, need same stuff, but not sure, is a year old,
that doesn't even seem to fit with anything further than 2.3.8

are any other alternatives?

Atastor

unread,
Oct 13, 2011, 4:44:34 AM10/13/11
to actives...@googlegroups.com
Well..without any further configuration the date classed attributes just work in one of my current 3.1 projects:

datetime is NOT working.

Regards
Michael


Sergio Cambra .:: entreCables S.L. ::.

unread,
Oct 18, 2011, 3:41:00 AM10/18/11
to actives...@googlegroups.com
On Jueves, 13 de Octubre de 2011 10:44:34 Atastor escribió:
> Well..without any further configuration the date classed attributes just
> work in one of my current 3.1 projects:
>
> <https://lh4.googleusercontent.com/-upSmxoNu4lM/TpaktFVhuRI/AAAAAAAAAX4/y0c
> 5ip_aDdo/Bildschirmfoto%2525202011-10-13%252520um%25252010.42.10.png>

>
> datetime is NOT working.
>
> Regards
> Michael

date picker works in 3.1 (with jquery)
Unobtrusived date picker is for prototype, I haven't used prototype with rails
3.x, but I can help someone trying to fix it.

Which is not working for datetime? Is picker displayed?

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

Nick Rogers

unread,
Oct 18, 2011, 9:22:33 AM10/18/11
to actives...@googlegroups.com
Can anyone confirm if calendar_date_select still works, or does not work, in 3.1?


--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to actives...@googlegroups.com.
To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.


Atastor

unread,
Nov 8, 2011, 4:28:51 AM11/8/11
to actives...@googlegroups.com
Sorry, oversaw your question *BLUSH*

Nope, picker is not shown in date time fields.

RM

Sergio Cambra .:: entreCables S.L. ::.

unread,
Nov 8, 2011, 6:17:01 AM11/8/11
to actives...@googlegroups.com

I have added it for next version.
You can put jquery-ui-timepicker-addon in vendor/assets/javascripts directory,
and add it to your application.js below require active_scaffold line:

//= require jquery-ui-timepicker-addon

Download it from here:
http://trentrichardson.com/examples/timepicker/js/jquery-ui-timepicker-addon.js

Hernan Astudillo

unread,
Nov 8, 2011, 5:56:27 PM11/8/11
to actives...@googlegroups.com
awesome!!
i had to set
conf.column[:some].form_ui = :datetime_picker
to grab it, shouldn't it be default for timestamps?

thanks sergio

Sergio Cambra .:: entreCables S.L. ::.

unread,
Nov 9, 2011, 3:11:12 AM11/9/11
to actives...@googlegroups.com
On Martes, 8 de Noviembre de 2011 23:56:27 Hernan Astudillo escribió:
> awesome!!
> i had to set
> conf.column[:some].form_ui = :datetime_picker
> to grab it, shouldn't it be default for timestamps?

I have tried with created_at and it's set by default
Is column type :datetime?

Atastor

unread,
Nov 24, 2011, 7:45:19 AM11/24/11
to actives...@googlegroups.com
This looks good at first, but using german locale the value javascript-inserted in the formfield isn't parsable. I guess there must be a time picker-addon specific locale-value, which has to be set differently.

ser...@entrecables.com

unread,
Nov 25, 2011, 3:48:00 AM11/25/11
to actives...@googlegroups.com

How does it look a german date? I tried to fix it for localized dates,
at least for spanish it's working.

>
> --
> You received this message because you are subscribed to the Google
> Groups "ActiveScaffold : Ruby on Rails plugin" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/activescaffold/-/3KwPnCrUcmUJ [1].


> To post to this group, send email to actives...@googlegroups.com.
> To unsubscribe from this group, send email to
> activescaffol...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>

> Links:
> ------
> [1] https://groups.google.com/d/msg/activescaffold/-/3KwPnCrUcmUJ

Atastor

unread,
Nov 25, 2011, 3:51:49 AM11/25/11
to actives...@googlegroups.com
Search field gets "Fr, 25 Nov 2011  09:50:29" choosing "jetzt" (=now), working would be "25.11.2011 09:50:29".

RM

Atastor

unread,
Dec 7, 2011, 7:01:11 AM12/7/11
to actives...@googlegroups.com
Ok, found the hook, published a pull request.

Regards
Michael

Reply all
Reply to author
Forward
0 new messages