Created
December 2, 2011 16:02
-
-
Save weaverryan/1423756 to your computer and use it in GitHub Desktop.
Form theming for error class on row
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block field_row %} | |
{% spaceless %} | |
<div {{ errors|length > 0 ? 'class="error"' : '' }}> | |
{{ form_label(form, label|default(null)) }} | |
{{ form_errors(form) }} | |
{{ form_widget(form) }} | |
</div> | |
{% endspaceless %} | |
{% endblock field_row %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment