<div class="builder-form-container" data-control-container>
    <!-- Some containers allow up to 3 lists - tabless fieflds, primary tabs, secondary tabs -->
    <?= $this->makePartial('controllist', [
        'controls' => isset($fieldsConfiguration['fields']) ? $fieldsConfiguration['fields'] : [], 
        'listName' => ''
    ]) ?>

    <?= $this->makePartial('tabs', [
        'type' => 'primary',
        'controls' => $this->getTabsFields('tabs', $fieldsConfiguration),
        'listName' => 'tabs',
        'tabsTitle' => trans('rainlab.builder::lang.form.tabs_primary'),
        'configuration' => [],
        'tabNameTemplate' =>  trans('rainlab.builder::lang.form.tab_name_template'),
    ]) ?>

    <?= $this->makePartial('tabs', [
        'type' => 'secondary',
        'controls' => $this->getTabsFields('secondaryTabs', $fieldsConfiguration),
        'listName' => 'secondaryTabs',
        'tabsTitle' => trans('rainlab.builder::lang.form.tabs_secondary'),
        'configuration' => [],
        'tabNameTemplate' =>  trans('rainlab.builder::lang.form.tab_name_template'),
    ]) ?>

</div>