Ticket Details

FormHelper and Errors

ENHANCEMENT Ticket (closed)

###What happened:
- When a form with invalid params is submitted, the error messages come back correctly but with no attributes which indicate an error.

Like this:

{{{
'<div>
  <label for="latitude">Latitude</label>
  <input type="text" name="latitude">
  <div>Please provide a valid latitude!</div>
</div>'
}}}

###What was expected:
- I'd like to see something like this (so that it could be better styled with css). i think similar functionality is built in cakephp.

{{{
'<div>
  <label for="latitude">Latitude</label>
  <input type="text" name="latitude" class="error">
  <div class="error">Please provide a valid latitude!</div>
</div>'
}}}

Regargs,
mike
on 03.10.10 reported by: daschl owned by: nate

Updates

(fixed) on 04.18.10 by nate
Implemented in [92016124e701908296b9e014268cb0a30f01e3c8], along with test that demonstrates custom configuration using `Form::config()`. Thanks for the suggestion!