Skip to content

Instantly share code, notes, and snippets.

@johnwards
Created May 12, 2011 09:37
Show Gist options
  • Save johnwards/968253 to your computer and use it in GitHub Desktop.
Save johnwards/968253 to your computer and use it in GitHub Desktop.
{% block field_widget %}
{% spaceless %}
{% set type = type|default('text') %}
<input type="{{ type }}" {{ block('attributes') }} value="{{ value }}" class='field-{{ type }}'/>
{% endspaceless %}
{% endblock field_widget %}
{% block field_row %}
{% spaceless %}
<div class="form-row">
{{ form_label(form) }}
{{ form_errors(form) }}
{{ form_widget(form) }}
{{ form_help(form) }}
</div>
{% endspaceless %}
{% endblock field_row %}
{% block field_help %}
{% spaceless %}
<div class='help'>help</div>
{% endspaceless %}
{% endblock field_help %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment