insert in any place before the crud creation (model or controller)

crud.settings.formstyle = 'divs'

On Wed, Aug 17, 2011 at 2:15 AM, Noel Villamor <noe...@gmail.com> wrote:

> I have this for a field definition:
>
> Field('tags','list:reference
> tag',widget=SQLFORM.widgets.checkboxes.widget)
>
> I use crud and it renders the field as an html table, as shown below:
>
> <table name="tags" id="tag_tags" class="list"><tbody>
> <tr><td><input type="checkbox" value="12" name="tags">business</td></
> tr>
> <tr><td><input type="checkbox" value="11" name="tags">family</td></tr>
> <tr><td><input type="checkbox" value="10" name="tags">friend</td></tr>
> </tbody></table>
>
> How do I customize the rendering into:
>
> <div name="tags" id="tag_tags" class="list">
> <input type="checkbox" value="12" name="tags">business<br />
> <input type="checkbox" value="11" name="tags">family<br />
> <input type="checkbox" value="10" name="tags">friend<br />
> </div>
>
> Thanks in advance.




-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Reply via email to