Feature #3793

CSS class for errors in form view helpers

Added by Christopher Hlubek over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2009-06-28
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

Form view helpers should automatically add a CSS class if an error for the property exists. The name of this class should be overridable.

#1

Updated by Bastian Waidelich over 12 years ago

This is already implemented, right?

#2

Updated by Christopher Hlubek about 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Yes, it's implemented in r2669. The CSS class can be set by the attribute errorClass. As a default the class "error" will be used.

#3

Updated by Bastian Waidelich about 12 years ago

Christopher Hlubek wrote:

Yes, it's implemented in r2669. The CSS class can be set by the attribute errorClass.

Ah, right I remember.
Just for the record: In r2914 the functionality has been moved to the abstract base class and the attribute was added to "Select", "Textearea" and "Upload" form view helpers too.

Also available in: Atom PDF