Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created December 2, 2011 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaverryan/1423756 to your computer and use it in GitHub Desktop.
Save weaverryan/1423756 to your computer and use it in GitHub Desktop.
Form theming for error class on row
{% 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