The current template renders with each row wrapped in it own <table/
>.
I think this make a better template:
<form xmlns:py="http://purl.org/kid/ns#"
name="${name}" action="${action}" method="${method}"
class="tableform"
py:attrs="form_attrs">
<div py:for="field in hidden_fields"
py:replace="field(value_for(field), **params_for(field))"/
>
<table border="0" cellspacing="0" cellpadding="6" >
<tr py:for="row_no, row in rows(fields)"
py:attrs="table_attrs"
class="${row_no % 2 and 'odd' or 'even'}"
valign="top"><td py:for="field in row">
<label py:if="field.label" class="fieldlabel"
for="${field.field_id}" py:content="field.label"/>
<span py:replace="field(value_for(field),
**params_for(field))"/>
<span py:if="error_for(field)" class="fielderror"
py:content="error_for(field)"/>
<span py:if="field.help_text" class="fieldhelp"
py:content="field.help_text"/>
</td></tr>
</table>
<div class="submit" py:content="submit(submit_text)"/>
</form>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Docs" group.
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/turbogears-docs?hl=en
-~----------~----~----~----~------~----~------~--~---