web2py: Use divs in generated radiobutton instead of table – Stack Overflow
|
I have a table:
I use this SQLFORM to generate the form:
I have the main form using divs, but the radio buttons, still use tables, which is really the one I want in divs. How can can I fix this?
|
|||
|
feedback
|
|
I think you’ll have to create a custom widget (see http://web2py.com/book/default/chapter/07#Widgets). For example:
The above widget first creates a table using the built-in radio button widget and then pulls out the input elements and labels from the TD’s and puts everything in a DIV. In your table definition, just replace:
with:
|

