<?php /** @var \Dotdigitalgroup\Email\Block\Adminhtml\Config\Createdatafield $block */?>
<div class="actions actions-create-datafield">
    <div id="validation_result" class="message-validation hidden"></div>
    <button class="action-create-datafield" type="button" id="<?= $block->getHtmlId() ?>">
        <span><?= $block->escapeHtml($block->getButtonLabel()) ?></span>
    </button>
</div>

<script type="text/x-magento-init">
    {
        "*": {
            "Dotdigitalgroup_Email/js/dataFields":{
                "url":"<?= $block->escapeUrl($block->getAjaxUrl()) ?>"
            }
        }
    }
</script>