{% extends 'formie/_formfields/field' %}

{% block field %}

{# Keep track of the outer group field #}
{% set groupField = field %}

<div class="fui-group-field pane">
    {% namespace field.handle %}
        {% for field in field.getFields() %}
            {% include 'formie/_formfields/group/field' with {
                field: field,
                fieldKey: "#{groupField.handle}.#{field.handle}",
                element: element,
                required: field.required,
            } only %}
        {% endfor %}
    {% endnamespace %}
</div>

{% endblock %}
