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.

Reply via email to