<!-- ML NestedForm -->
<div
    id="<?= $this->getId('mlControl') ?>"
    data-control="mlnestedform"
    data-default-locale="<?= e($defaultLocale->code) ?>"
    data-switch-handler="<?= $this->getEventHandler('onSwitchItemLocale') ?>"
    class="field-multilingual field-multilingual-nestedform dropdown <?= $this->showPanel ? 'is-paneled' : '' ?>"
    >

    <div id="<?= $this->getId('mlNestedForm') ?>">
        <?= $nestedform ?>
    </div>

    <button
        class="btn btn-default ml-btn"
        data-toggle="dropdown"
        data-active-locale
        type="button">
    </button>

    <input
        type="hidden"
        data-nestedform-active-locale
        name="<?= $field->getName('RLTranslateNestedFormLocale') ?>"
        value="<?= e($defaultLocale->code) ?>"
    />

    <?= $this->makeMLPartial('locale_values') ?>

    <?= $this->makeMLPartial('locale_selector') ?>
</div>
