Hi,

It seams like a trivial problem, either my google-foo is not up to 
standard, or I am missing easy.

I have the following code:-
myform = form.Form( 
    form.Radio('foobar', 
        ['Foo', 'bar', ], 
        description="Foobar to report:"),
    form.Textarea('more', description="More details:", rows=4,cols=40),
    )

Which generates:-
<table>
    <tr><th><label for="foobar">Foobar to 
report:</label></th><td><span><input type="radio" id="foobar" value="Foo" 
name="foobar"/> Foo<input type="radio" id="foobar" value="bar" 
name="foobar"/> bar</span></td></tr>
    <tr><th><label for="more">More details:</label></th><td><textarea 
rows="4" cols="40" name="more" id="more"></textarea></td></tr>
</table>

I would like to insert a <br/> in to every input type="radio":-

<table>
    <tr><th><label for="foobar">Foobar to 
report:</label></th><td><span><input type="radio" id="foobar" value="Foo" 
name="foobar"/> Foo<br/><input type="radio" id="foobar" value="bar" 
name="foobar"/> bar<br/></span></td></tr>
    <tr><th><label for="more">More details:</label></th><td><textarea 
rows="4" cols="40" name="more" id="more"></textarea></td></tr>
</table>

Is there a simple way of doing this in web.py ?

Thanks for any help,
Brendan 

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/KMaJ71H2iz8J.
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/webpy?hl=en.

Reply via email to