[Zope] Re: how to insert "CHECKED" with zpt's ?
Evan Simpson
evan@4-am.com
Tue, 08 Oct 2002 10:54:49 -0500
Joachim Schmitz wrote:
> <input type="checkbox" name="accept:list" value="xxx" CHECKED
> tal:attributes="value qa/id"/>
>
> where the "CHECKED" is dynamically generated
All "boolean" HTML attributes can be switched on and off with a boolean
tal:attributes value, like so:
<input type="checkbox" name="accept:list" value="xxx"
tal:attributes="value qa/id;
checked python: path('qa/status') == 'accepted'" />
Cheers,
Evan @ 4-am