Commit 06055e14 by Billy Larru

configurando daterangepicker en creacion de rol de policias

parent 0125c48b
...@@ -236,22 +236,22 @@ function defaultConfigDatePicker() { ...@@ -236,22 +236,22 @@ function defaultConfigDatePicker() {
} }
function defaultConfigDateRangePicker() { //function defaultConfigDateRangePicker() {
$('.daterange-basic').daterangepicker({ // $('.daterange-basic').daterangepicker({
applyClass: 'bg-slate-600', // applyClass: 'bg-slate-600',
// "singleDatePicker": true, //// "singleDatePicker": true,
cancelClass: 'btn-default', // cancelClass: 'btn-default',
// showDropdowns: false, //// showDropdowns: false,
// timePicker: true, //// timePicker: true,
// opens: 'center', //// opens: 'center',
// singleDatePicker: true, //// singleDatePicker: true,
autoApply: true, // autoApply: true,
locale: { // locale: {
format: 'DD/MM/YYYY' // format: 'DD/MM/YYYY'
} // }
}); // });
$('.calendar.right').hide(); //// $('.calendar.right').hide();
} //}
......
...@@ -331,15 +331,45 @@ function mostrarModalNuevoRol() { ...@@ -331,15 +331,45 @@ function mostrarModalNuevoRol() {
}); });
$("#dpRangoFechas").daterangepicker({ $("#dpRangoFechas").daterangepicker({
minDate: new Date(2000, 1 - 1, 1), maxDate: new Date(), "autoApply": true,
dateFormat: 'dd/mm/yy', "locale": {
defaultDate: new Date(), "format": "DD/MM/YYYY",
changeMonth: true, "separator": " - ",
changeYear: true, "applyLabel": "Apply",
yearRange: '-18:+0', "cancelLabel": "Cancel",
zIndexOffset: 100000, "fromLabel": "From",
onSelect: function () { "toLabel": "To",
} "customRangeLabel": "Custom",
"weekLabel": "W",
"daysOfWeek": [
"Do",
"Lu",
"Ma",
"Mi",
"Ju",
"Vi",
"Sa"
],
"monthNames": [
"Enero",
"Febrero",
"Marzo",
"Abril",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Setiembre",
"Octubre",
"Noviembre",
"Diciembre"
],
"firstDay": 1
},
"startDate": "17/08/2018",
"endDate": "23/08/2018"
}, function (start, end, label) {
// console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')');
}); });
$("#dpRangoFechas").datepicker('setDate', 'now'); $("#dpRangoFechas").datepicker('setDate', 'now');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment