<?php

use TourOperatorPro\Factory;
use TourOperatorPro\Language\Text;
use TourOperatorPro\Utilities\Utility;
use TourOperatorPro\Html\TourOperatorProHtmlBackend as TourOperatorProHtmlBackendAlias;
defined('_TOUROPERATOR_EXEC') or die;
extract($displayData);

TourOperatorProHtmlBackendAlias::load_jquery_library('auto_numeric');

$doc = Factory::getDocument();

$id_by_name = "element_field_". $name;
?>
    <div id="<?php esc_attr_e($id_by_name) ?>" class="field-price">
        <div class="wrapper-price">
            <input type="text" data-a-sign="$" value="<?php esc_attr_e($value) ?>" class="form-control price">
            <input type="hidden" <?php echo ($required?' required="required" ':'') ?>
                   name="<?php esc_attr_e($name); ?>" value="<?php esc_attr_e($value) ?>">
        </div>
    </div>
<?php
$doc->addScriptApplySelector('.field-price','field_price',array(
    "input_name"=>  $name,
),'admin/app/layouts/WooBooking/form/field/jquery.price.js');
