So if anyone prints the 'ul' style form it will have a dropdown for field 
s1 with the following structure:

<div class="generic-widget web2py_checkboxeswidget" id="t1_s1" name="s1">
>   <ul>
>     <li>
>       <input id="s1one" name="s1" type="checkbox" value="one" />
>       <label for="s1one">one</label>
>     </li>
>   </ul>
>   <ul>
>     <li>
>       <input id="s1two" name="s1" type="checkbox" value="two" />
>       <label for="s1two">two</label>
>     </li>
>   </ul>
>   ...
>   <input disabled="disabled" name="s1" style="display:none;" type="text" />
> </div>
>

while if you could use an (UL, LI, TAG[''] ) wrapper instead, it would look 
like this:

<ul class="generic-widget web2py_checkboxeswidget" id="t1_s1" name="s1">
>   <li>
>     <input id="s1one" name="s1" type="checkbox" value="one" />
>     <label for="s1one">one</label>
>   </li>
>   <li>
>     <input id="s1two" name="s1" type="checkbox" value="two" />
>     <label for="s1two">two</label>
>   </li>
>   ...
>   <li>
>     <input disabled="disabled" name="s1" style="display:none;" type="text" 
> />
>   </li>
> </ul>
>

The latter feels more semantic and is shorter.
Is anyone interested, at least in having a way to provide your own style?.

Regards,
Denes

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to