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

/** @var $block Magento\Catalog\Block\Adminhtml\Product\Edit\Action\Attribute */
?>

<form action="<?= $block->escapeUrl($block->getSaveUrl()) ?>"
      method="post"
      id="attributes-edit-form"
      class="attributes-edit-form"
      enctype="multipart/form-data">
    <?= $block->getBlockHtml('formkey') ?>
</form>
<script type="text/x-magento-init">
    {
        "#attributes-edit-form": {
            "Magento_Catalog/js/product/weight-handler": {},
            "Magento_Catalog/catalog/product/edit/attribute": {
                "validationUrl": "<?= $block->escapeJs($block->escapeUrl($block->getValidationUrl())) ?>"
            }
        }
    }
</script>
