type('file') ->data('media/theme/bootstrap/js/bootstrap.datepicker.js'); Style::factory() ->type('file') ->data('media/theme/bootstrap/css/bootstrap.datepicker.css'); Script::factory() ->type('stdin') ->data(' $(document).ready(function() { $("#'.$data['field'].'_label").datepicker({ autoclose : true, '.($data['enddate'] ? 'endDate : '.$data['enddate'].',' : '').' todayHighlight: true, format : "dd-M-yyyy", todayBtn : true, }).on("hide",function(ev) { $("input[name='.$data['field'].']").val(ev.date.valueOf()/1000); }); });'); ?>