[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
Thanks for the tip(s). Have a nice day!

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Anthony
On Wednesday, August 17, 2011 10:05:51 AM UTC-4, Noel Villamor wrote: > > > Thanks for the link Anthony, it is what I need. Now, what is the > proper way implement the custom widget? Should I simply copy the code, > make the necessary alterations to it, and insert it in my app's > controller? >

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
Thanks for the link Anthony, it is what I need. Now, what is the proper way implement the custom widget? Should I simply copy the code, make the necessary alterations to it, and insert it in my app's controller?

Re: [web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Martín Mulone
Anthony is right is showing a complete solution, but what do you want to achieve?, perhaps you are looking to customize the style and a less complicate solution can be for example To customize this: some in css: div.list {} div.list input {} or #tag_tags {} And this: table.list {} table.

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Anthony
I think you might need a custom widget (see http://web2py.com/book/default/chapter/07#Widgets). For reference, here's the current radio widget: http://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#287. Anthony On Wednesday, August 17, 2011 3:57:48 AM UTC-4, Noel Villamor wrote: > I

[web2py] Re: How to customize widget rendering in form

2011-08-17 Thread Noel Villamor
I tried inserting crud.settings.formstyle = 'divs' but it only changed to divs the layout(?) but not the widget. DEFAULT FORM STYLE ... FORM STYLE SET TO "divs" ... As mentioned in my original post, I wanted to be . Any other suggestion? Thanks again.