<!-- Text -->
<?php if ($this->previewMode): ?>
    <span class="form-control"><?= $field->value ? e($field->value) : '&nbsp;' ?></span>
<?php else: ?>
    <div
        id="<?= $this->getId() ?>"
        data-control="multilingual"
        data-default-locale="<?= $defaultLocale->code ?>"
        data-placeholder-field="#<?= $field->getId('placeholderField') ?>"
        class="field-multilingual field-multilingual-text dropdown">

        <input
            type="text"
            name="<?= $field->getName() ?>"
            id="<?= $field->getId('placeholderField') ?>"
            value="<?= e($field->value) ?>"
            placeholder="<?= e(trans($field->placeholder)) ?>"
            class="form-control"
            autocomplete="off"
            maxlength="255"
            <?= $field->getAttributes() ?>
        />

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

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

        <?= $this->makeParentPartial('locale_selector') ?>

    </div>
<?php endif ?>
