#664: [PATCH] widgets.FieldSetForm - a form comprised entirely of fieldsets
------------------------------------+---------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Widgets | Version:
Severity: normal | Keywords: forms, widgets
------------------------------------+---------------------------------------
For those who like forms' children to only be fieldsets and submit
buttons:
class FieldSetForm(Form):
""" A form comprised entirely of fieldsets, as all great forms are """
template = """
<form xmlns:py="http://purl.org/kid/ns#"
name="${name}"
py:attrs="form_attrs"
>
<div py:for="field, value, options in hidden_fields"
py:replace="field.display(value, parent, options=options)"
/>
<div py:for="field, value, options, error in fields">
<div py:replace="field.display(value, parent,
options=options)" />
<span py:if="field.help_text" class="fieldhelp"
py:content="field.help_text" />
</div>
<p py:content="submit.display(submit_text, parent)" />
</form>
"""
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/664>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---