Hi

I've found some issues testing an existing app

1.- Not bs3 related

db.define_table("parent", Field('name'), format='%(name)s')
db.define_table("child", Field('parent', 'reference parent'))

In current version when I create/edit the child using SQLFORM the field 
parent becomes a dropdown of parent names
In trunk the field parent is an input field (not select)

If I set this in trunk:
 
db.child.parent.requires=IS_IN_DB(db, db.parent.id, db.parent._format, 
zero=T('choose one'))

the dropdown is ok but after that if on some other controler/function I set 
db.child.parent.writable=False the field only shows the ID, not the name 
(well the format...)


2.- bootstrap3 and SQLFORM.grid
There is a problem when showing the hidden fields of search because the 
hidden class on bs3 uses !important...
bs3
.hidden {
    display: none !important;
    visibility: hidden !important;
}

My workaround here is override this class in my own css
.hidden {
    visibility: visible !important;
}

And adding/redefining this js function (found on so)
$.fn.show = function() {
                    this.attr("style", "display: block !important");
                    return show.call(this);
                };

The problem here is that some elements are display:inline and others are 
display:block and I don't know how to handle both...

Maybe is better to use 
jQuery(elem).removeClass('hidden').addClass('something')  than using 
jQuery.hide() / show()
Or another solution could be using a web2py custom class for the hidden 
elements used in grid (without the !important please...), so the 
jQuery.show() will work again

3.- formstyle bootstrap3 and date picker
The date fields don't have the css class date so the datepicker is not 
working.

I'm new to web2py and developing my first app with tag R-2.9.5 from github, 
but using bs3 (copied views and static folder from default app from trunk 
over my existing app, there is a migration path for existing apps?), and 
I'm checking out the master branch whenever there are new commits to keep 
testing, and waiting for the bs3 release :)

Oh, and I forget, I love it, thanks !!!

Miki
(learning web2py and english at the same time...)

El dissabte 9 d’agost de 2014 9:13:38 UTC+2, Massimo Di Pierro va escriure:
>
> Bootstrap 3 is in trunk now. Please help us test it.
> Also help us test that existing apps are not broken.
>
> Massimo
>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to