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