More flexible date range in datepicker for expected checkin filter on custom reports

This commit is contained in:
snipe 2018-05-08 07:37:18 -07:00
parent 13195d06fd
commit cca97341e9

View file

@ -298,7 +298,7 @@
</div>
<!-- Expected Checkin Date -->
<div class="form-group purchase-range">
<div class="form-group expected_checkin-range">
<label for="purchase_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.expected_checkin') }}</label>
<div class="input-daterange input-group col-md-6" id="datepicker">
<input type="text" class="input-sm form-control" name="expected_checkin_start" />
@ -341,6 +341,12 @@
format: 'yyyy-mm-dd'
});
$('.expected_checkin-range .input-daterange').datepicker({
clearBtn: true,
todayHighlight: true,
format: 'yyyy-mm-dd'
});
// Check-all / Uncheck all
$(function () {
var checkAll = $('input.all');