<?php

use TourOperatorPro\Utilities\Utility;
use TourOperatorPro\Html\TourOperatorProHtmlBackend as TourOperatorProHtmlBackendAlias;
use TourOperatorPro\Factory;
use TourOperatorPro\Language\Text;

defined('_TOUROPERATOR_EXEC') or die;
extract($displayData);


TourOperatorProHtmlBackendAlias::load_jquery_library('dateselect');

$doc = Factory::getDocument();
$id_by_name = "element_field_". $name;
?>
    <div id="<?php echo (esc_attr($id_by_name)) ?>" class="field-birthday">
        <div class="row">
            <div class="col-md-12">
                <div class="input-group">
                    <input type="text" name="<?php echo (esc_attr($name)); ?>" id="date-<?php echo (esc_attr($name)); ?>"
                           value="<?php echo (esc_attr($value)) ?>" class="form-control" data-select="date">
                    <span class="input-group-btn">
                    <button class="btn btn-primary" type="button" data-toggle="select"><i class="fa fa-calendar"></i></button>
                </span>
                </div>
            </div>
        </div>
    </div>
<?php
$doc->addScriptApplySelector('.field-birthday', 'field_birthday', array(
    "input_name" => $name,
), 'admin/app/layouts/WooBooking/form/field/birthday/jquery.birthday.js');
