the simplest:
<td>
${h.check_box('fieldname')}
</td>
it looks like it was changed a bit though to:
checkbox(name, value=’1’, checked=False, label=None, **attrs)
when looping things like Ken suggested, i like to do stuff like this:
% for id in list:
<%
checked= ''
if test:
checked= ' checked="checked"'
%>
<input name="checks" value="${id}"${checked}/>
%endfor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---