[PHPTAL] really don't get it. php: exprssion?true:false
Christoph Frick
frick at sc-networks.com
Wed May 16 15:35:12 CEST 2007
On Wed, May 16, 2007 at 03:39:05PM +0200, Mynthon wrote:
> <select name="s">
> <option tal:repeat="opt options"
> tal:attributes="value opt/value;
> selected php: repeat.opt.selected ? 'selected' : false"
> tal:content="opt/content" />
> </select>
``selected'' and ``checked'' are special cases. you dont have to deal
with them in such a manor. just do
<option tal:attributes="value opt/value; selected opt/selected" ...
--
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20070516/ce109e57/attachment.pgp
More information about the PHPTAL
mailing list