<?php
/**@var \Magetop\Advancepreview\Block\Adminhtml\Product\Edit\Form $block */
$previewId = $block->getRequest()->getParam('preview_id',0);
$productId = $block->getRequest()->getParam('product_id',0);
$previewData = $block->getPreviewById($previewId, $productId);
?>

<form action="/" method="post" id="preview-product-form" enctype="multipart/form-data">
    <input type="hidden" name="form_key" value="<?php echo $block->getFormKey(); ?>">
    <input type="hidden" name="product_id" value="<?php echo $productId; ?>">
    <input type="hidden" name="threed_id" value="<?php echo $previewData['threed_id']; ?>">
    <label for="txt-preview-title"><?php echo __('3D model title') ?></label>
    <input type="text" id="txt-preview-title" name="title" value="<?php echo $previewData['title']; ?>" placeholder="<?php echo __('3D model title') ?>" class="admin__control-text">
    <label for="txt-product-preview"><?php echo __('3D model') ?></label>
    <input type="file" id="txt-product-preview" name="preview_media">
    <button type="button" id="btn-save-preview"><?php echo __('Save') ?></button>
</form>
