{% extends "forms/field.html.twig" %}

{% block field %}
<div class="form-columns grid pure-g">
{% if field.fields %}
    {% set cols = field.fields|length %}
    {% for child in field.fields %}
        {% include ["forms/fields/#{child.type}/#{child.type}.html.twig", 'forms/fields/column/column.html.twig'] with {field: child, cols: cols}  %}
    {% endfor %}
{% endif %}
</div>
{% endblock %}