﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3512	"Add ""required"" & ""error"" CSS classes to form rows in as_* methods"	Waylan Limberg <waylan@…>	nobody	"Currently, there is no way to identify which fields have errors or are required with CSS. The patch below adds HTML classes to the containing block element for that purpose.

Therefore, using as_tr(), a field that is both required and contains an error would begin like so:

{{{
<tr class=""error required"">...
}}}

I have submitted three patches for consideration as I am unsure of whether we want to to allow people creating their own as_methods (through subclassing etc) to be able to add their own classes separate from the above.

See this thread for more details: http://groups.google.com/group/django-developers/browse_thread/thread/fbd0c8cfbf1b819b/

The three patches do not yet have tests (or at least the existing tests have not been adjusted) and I haven't even looked at docs. Maybe when a decision is made, I'll tackle that. Or if anyone else wants to..."	Uncategorized	closed	Forms	dev	Normal	fixed		waylan@… real.human@… Gonzalo Saavedra liangent@… andy@… drackett@…	Accepted	1	1	0	0	0	0
