Issues

ZF-6364: Decorator should add error class to label/element in case of error

Issue Type: Sub-task Created: 2009-04-21T16:25:44.000+0000 Last Updated: 2013-01-22T10:10:55.000+0000 Status: In Progress Fix version(s): Reporter: Christian (cptbrauser) Assignee: Frank Brückner (frosch) Tags: - Zend_Form

Related issues: Attachments: - HtmlTag.php.patch

Description

Hi,

at the moment, there is no css-catchable structure for elements (and their labels) which are not valid. A

<

ul> tag is appended to the element DOM Node, but you can not add f.e. a red border for this input element with css-only.

This is what the Decorators produce:

<pre class="highlight">

    Name




Enter at least 1 character.
    

And this is what I suggest:

<pre class="highlight">

    Name




Enter at least 1 character.
    

(I added a css class to the

and tag) Without that, I have to write my own Decorator to do that, which is not really necessary, if the Default Decorator would add this information to the relevant DOM Nodes.

Comments

Posted by Frank Brückner (frosch) on 2012-07-27T14:56:24.000+0000

Patch and unit tests added.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts