From: Tom Hughes Date: Wed, 15 Jan 2014 21:09:54 +0000 (+0000) Subject: Highlight erroneous fields by adding a class to them X-Git-Tag: live~5876 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/933b0913304fdd581c7cb3f1ec30450d6e04c63a?hp=933b0913304fdd581c7cb3f1ec30450d6e04c63a Highlight erroneous fields by adding a class to them 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. ---