#12646: Flawed error display in admin when using fieldsets.
---------------------------+------------------------------------------------
 Reporter:  schinckel      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 When using fieldsets within the admin, and an error occurs within one
 field of a line, then all fields within that line are marked as error by
 the css. That is, every field gets a red border, when really only the
 fields with actual errors should have a red border.

 Related, but less annoying: the error messages are piled up at the top of
 the fieldset line, rather than being close to the field with the error.

 I overcame both issues using a custom template for fieldset, and some
 extra css:
  - put an extra class on field.box when there are no errors for this
 field, and an entry in the admin-extra.css setting the border-color back.
  - remove the line.errors tag, and replace by appropriate
 field.field.errors tags within the for loop for fields within the line.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12646>
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.


Reply via email to