[web2py] Re: Bootstrap datepicker plugin

2016-07-10 Thread Michael Beller
I'm using bootstrap-datepicker.js also with these changes, not sure it's as robust but works and I use it for multiple date formats such as this: Field('origination_date', 'date', widget=datepicker_widget(format='mm/', min_view_mode='months' ), requires=IS_DATE('%m/%Y')), # exa

[web2py] Re: Bootstrap datepicker plugin

2016-07-06 Thread Donald McClymont
This now seems to be along the correct lines - the issue I had was a styling conflict with calendar.css file in web2py for the hour class being set to 2em and my hack for now to fix was to append the following to the std datetimepicker.css that can be downloaded however not sure if there is a

[web2py] Re: Bootstrap datepicker plugin

2016-07-06 Thread Donald McClymont
This is nice and a great improvement for dates. I thought I could easily replicate for datetime by using this which seems to be a fork of the original to allow time input as well http://www.malot.fr/bootstrap-datetimepicker/demo.php?utm_source=siteweb&utm_medium=demo&utm_campaign=Site%2BWeb ht

[web2py] Re: Bootstrap datepicker plugin

2016-07-04 Thread diego . doni
Hi Leonel and all, (first post here) Don't know if I'm reinveinting the wheel, but I was searching for a better datepicker and found your plugin. And liked so much that I modified it to make it work with a datepicker fork -> https://github.com/eternicode/bootstrap-datepicker To me works fine

[web2py] Re: Bootstrap datepicker plugin

2015-05-12 Thread Leonel Câmara
Villas is right, this function call returns the callable, it's this way so you can use bootstrap datepicker options. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report I

Re: [web2py] Re: Bootstrap datepicker plugin

2015-05-12 Thread Manuele Pesenti
Il 11/05/15 23:01, villas ha scritto: > Thanks Leonel. > > BTW in your first post you said: > Field('birthdate', 'date', widget=bsdatepicker_widget) > > It should be with brackets at the end: > Field('birthdate', 'date', widget=bsdatepicker_widget()) No it shouldn't the widget paramete

[web2py] Re: Bootstrap datepicker plugin

2015-05-11 Thread villas
Thanks Leonel. BTW in your first post you said: Field('birthdate', 'date', widget=bsdatepicker_widget) It should be with brackets at the end: Field('birthdate', 'date', widget=bsdatepicker_widget()) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:/

[web2py] Re: Bootstrap datepicker plugin

2015-05-11 Thread Leonel Câmara
Here's the latest version with this fixed -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Goo

[web2py] Re: Bootstrap datepicker plugin

2015-05-10 Thread villas
Hi Leonel I was trying out your widget but hit a problem... maybe there is a bug? Best regards, D Traceback (most recent call last): File "C:\Users\David\Documents\GitHub\web2py\gluon\restricted.py", line 227, in restricted exec ccode in environment File "C:/Users/David/Documents/Git

[web2py] Re: Bootstrap datepicker plugin

2014-07-24 Thread Leonel Câmara
New version supporting bootstrap picker options (weeekStart, viewMode, minViewMode) except for format which is automatically determined by w2p_ajax_date. This version is quite useful for stuff like birth dates where you want people to be able to choose the year easily. -- Resources: - http://

[web2py] Re: Bootstrap datepicker plugin

2014-07-24 Thread Leonel Câmara
I'm open to extending this plugin so it accepts some settings, one of those settings could be - html5_if_available - and then, in the javascript, I could use something like Modernizr.inputtypes.date to check for browser support. Otherwise I believe html5forms.js or webshim does what you want bu

[web2py] Re: Bootstrap datepicker plugin

2014-07-24 Thread Massimo Di Pierro
html5 has and . web2py does not use them because very few browsers support them. I am wondering is there is js library that adds support for those input types in browsers that do not support them. On Wednesday, 23 July 2014 19:05:44 UTC-5, Leonel Câmara wrote: > > Niphlod if you look at my plu

[web2py] Re: Bootstrap datepicker plugin

2014-07-23 Thread Leonel Câmara
Niphlod if you look at my plugin's code you'll see that I took some precautions so that internationalization would work using the format defined in web2py_ajax.html on the variable w2p_ajax_date_format so if that's your concern you can probably use it. -- Resources: - http://web2py.com - http:

[web2py] Re: Bootstrap datepicker plugin

2014-07-23 Thread Niphlod
the only problem with various datepickers is internationalization. I'm a big fan of ISO format but finding a datepicker that adapts itself to strftime behaviour always seems to "escape" js developers ^_^ On Wednesday, July 23, 2014 8:40:47 PM UTC+2, Leonel Câmara wrote: > > So web2py's datepicke