<?php
/**@var \Magetop\Advancepreview\Block\Adminhtml\Product\Edit\PreviewAdditionalTab $block */
$additionId = $block->getRequest()->getParam('addition_id',0);
$productId = $block->getRequest()->getParam('product_id',0);
$additional = $block->getAdditionalById($additionId, $productId);
?>

<form action="/" method="post" id="preview-product-additional-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="addition_id" value="<?php echo $additional['addition_id']; ?>">

    <label for="txt-preview-additional-title"><?php echo __('Title') ?></label>
    <input type="text" id="txt-preview-additional-title" name="title" value="<?php echo $additional['title']; ?>" placeholder="<?php echo __('Title') ?>" class="admin__control-text" data-validate='{"required":true}'>

    <label for="txt-preview-additional-price"><?php echo __('Price') ?></label>
    <input type="number" id="txt-preview-additional-price" name="price" value="<?php echo $additional['price']; ?>" placeholder="<?php echo __('Price') ?>" class="admin__control-text" data-validate='{"required":true}'>

    <label for="txt-preview-additional-description"><?php echo __('Tooltip Information') ?></label>
    <input type="text" id="txt-preview-additional-description" name="description" value="<?php echo $additional['description']; ?>" placeholder="<?php echo __('Description') ?>" class="admin__control-text" data-validate='{"required":true}'>

    <button type="button" id="btn-save-preview-additional"><?php echo __('Save') ?></button>
    <button type="button" id="btn-close-preview-additional"><?php echo __('Close') ?></button>
</form>
