<?php

use TourOperatorPro\Factory;
use TourOperatorPro\Utilities\Utility;
use TourOperatorPro\Html\TourOperatorProHtmlBackend as TourOperatorProHtmlBackendAlias;
use TourOperatorPro\Language\Text;
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 echo(esc_attr($id_by_name)) ?>" class="field-duration">
        <div class="wrapper-duration">
            <input type="text" value="<?php echo (esc_attr($value)) ?>" class="form-control duration">
            <input type="hidden" required="<?php echo (esc_attr($required)) ?>"
                   name="<?php echo (esc_attr($name)); ?>" value="<?php echo (esc_attr($value)) ?>">
        </div>
    </div>
<?php
$doc->addScriptApplySelector('#'.$id_by_name,'field_duration',array(
    "input_name"=>  $name,
),'admin/app/layouts/WooBooking/form/field/duration/jquery.duration.js');
