#3512: Add "required" & "error" CSS classes to form rows in as_* methods
--------------------------------------------------------+-------------------
Reporter: Waylan Limberg <[EMAIL PROTECTED]> | Owner:
nobody
Status: reopened | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------------------------+-------------------
Changes (by SmileyChris):
* needs_better_patch: 1 => 0
* needs_docs: 0 => 1
Comment:
Ok, here's my new take. Fully backwards compatible now.
Forms have two new attributes: `error_html_class` and
`required_html_class` (both set to `None` by default)
When you set them, your error / required rows get given the html class.
Simple. Effective. Bam.
--
Ticket URL: <http://code.djangoproject.com/ticket/3512#comment:30>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---