{% set hasUniqInput = input.listChild | length == 1  %}
<div class="{#px-base#}">
    {% if input.label %}
    <h4>{{ input.label }}</h4>
    {% endif %}
    <div class="bs-row gutter-x-base">
        {% for child in input.listChild %}
        <div class="{{ 
            (child.type in ['TEXTAREA', 'TABLE', 'GROUP', 'BRANCH'] 
            or hasUniqInput
            ? 'bs-col-full' : 'bs-col-half')
            ~ (child.type in ['TEXTAREA'] 
            or (hasUniqInput
                and child.type not in ['TABLE', 'GROUP', 'BRANCH']
            )
            ? ' single-2col')
        }}">
            {% if child.type == 'BRANCH' %}<hr></hr>{% endif %}
            {{- formInput(child, subject, child.label) -}}
        </div>
        {% endfor %}
    </div>
</div>