Formating CF data

This commit is contained in:
Marc Ducobu 2014-11-11 12:45:06 +01:00
parent 96197207ad
commit 5ecfd89126

View File

@ -1,16 +1,28 @@
{% block form_row %} {% block form_row %}
{% spaceless %} {% spaceless %}
<div class="grid-4 {#{% spaceless %} <div class="{% spaceless %}
{% if errors|length > 0 %} {% if attr.class is defined and 'only-label' in attr.class %}
has_error danger grid-12
{% endif %} {% elseif attr.class is defined and 'no-label' in attr.class %}
{% endspaceless %}">#}"> grid-0
{{ form_label(form) }} {% else %}
</div> grid-4
<div class="grid-8"> {% endif %}
{{ form_widget(form) }} {% endspaceless %}">
{{ form_errors(form) }} {{ form_label(form) }}
</div> </div>
<div class="{% spaceless %}
{% if attr.class is defined and 'only-label' in attr.class %}
{% elseif attr.class is defined and 'no-label' in attr.class %}
grid-12
{% else %}
grid-8
{% endif %}
{% endspaceless %}">
{{ form_widget(form) }}
{{ form_errors(form) }}
</div>
{% endspaceless %} {% endspaceless %}
{% endblock form_row %} {% endblock form_row %}