Hi Massimo, Nice, now it works without any workarounds :)
However about point 1, when I set db.child.parent.writable=False : -- bootstrap3_inline - the value misses the class .form-control-static to vertical align the value with his label -- bootstrap3_stacked - the html output is "<label>Label: </label>Value" but bs3 sets the label display to inline-block, so there is no whitespace between label and value when rendered in the browser. If I set the space after de label closing tag it's rendered as expected: "<label>Label:</label> Value" I suspect that this happens for all writable=False elements (but not tested) About the boolean / checkbox, nice to see the label after the checkbox but it have an ugly colon in it... checkbox label: A newbe question: Is it possible to configure the colon visibility on field labels when using FORM/SQLFORM? I don't have any list:string field in my model right now, if I need one or I've time I will test it :) Miki El divendres 22 d’agost de 2014 3:49:51 UTC+2, Massimo Di Pierro va escriure: > > Most of these issues have been addressed today. I could use some help with > the style of Field(.., 'list:string') and Field(...,'boolean') > > On Wednesday, 20 August 2014 15:33:58 UTC-5, Miquel Fontanals wrote: >> >> 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.