]> git.openstreetmap.org Git - rails.git/commitdiff
Highlight erroneous fields by adding a class to them
authorTom Hughes <tom@compton.nu>
Wed, 15 Jan 2014 21:09:54 +0000 (21:09 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 15 Jan 2014 21:41:16 +0000 (21:41 +0000)
The default rails scheme for highlighting errors is to wrap the
field in a div, but that changes the structure of the page and can
change the meaning of CSS rules applied to the fields.

As an alternative we now apply a class to the fields, and use that
in the CSS to apply a highlight.


No differences found