That is exactly the kind of WET I was talking about. as_p() with
appropriate CSS styling will render really nice forms as is, with the
exception of the help_text. I even think that could be fixed without
any major rework, just a change in the as_p() string
from
def as_p(self):
"Returns this form rendered as HTML <p>s."
return self._html_output(u'<p>%(label)s %(field)s%(help_text)
s</p>', u'%s', '</p>', u' %s', True)
to
def as_p(self):
"Returns this form rendered as HTML <p>s."
return self._html_output(u'<p>%(label)s %(field)s<span
class="helptext">%(help_text)s</span></p>', u'%s', '</p>', u' %s',
True)
similar changes would be needed for as_ul() and as_table()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---