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

/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
<form action="<?= $block->escapeUrl($block->getSaveUrl()) ?>" method="post" id="design-edit-form">
    <?= $block->getBlockHtml('formkey') ?>
</form>

<?php $scriptString = <<<script
require([
    "jquery",
    "mage/mage"
], function($){

    $('#design-edit-form').mage('form').mage('validation');

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