[Zope] ZPT and check boxes
Eugene von Niederhausern
evonnied@l4sb.com
31 May 2002 21:40:51 -0500
I have done it like this:
<input checked type="checkbox" name="UKSC" value="checkbox"
tal:condition="test_value">
<input type="checkbox" name="UKSC" value="checkbox"
tal:condition="not:test_value">
There probably is a better way. One of the problem is that it can get
messy when you have a lot of fields.
On Fri, 2002-05-31 at 04:30, David Kyte wrote:
>
> Hi,
>
> Can anyone suggest how to implement a check box
> in ZPT
>
>
> When I create an edit form from a database I want
> a check box that is either checked or not depending
> on the value in the database
>
>
> I am aware of tal:attributes but need to know how to
> bend it to create HTML like
>
> <input checked type="checkbox" name="UKSC" value="checkbox" >
> ^^^^^^^
>
> TIA
>
>
> David Kyte
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )