<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
// @deprecated

/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
    <?= $block->getBackButtonHtml() ?>
    <?= $block->getResetButtonHtml() ?>
    <?= $block->getSaveButtonHtml() ?>
</div>
<?php if ($form): ?>
    <?= $form->toHtml() ?>
    <?php $scriptString = <<<script
    require(['jquery', "mage/mage"], function(jQuery){

        jQuery('#{$block->escapeJs($form->getForm()->getId())}').mage('form').mage('validation');

    });
script;
    ?>
    <?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
<?php endif; ?>
