diff --git a/resources/views/blade/input/date-range.blade.php b/resources/views/blade/input/date-range.blade.php new file mode 100644 index 0000000000..719ad17c74 --- /dev/null +++ b/resources/views/blade/input/date-range.blade.php @@ -0,0 +1,44 @@ +@props([ + 'name_start', + 'name_end', + 'value_start' => '', + 'value_end' => '', + 'placeholder' => trans('general.select_date'), + // 'today' caps both pickers at today, or pass a moment-parseable string. + // Null (default) leaves both pickers uncapped. + 'max_date' => null, + 'format' => 'YYYY-MM-DD', + 'id' => null, +]) + +{{-- Two eonasdan datetimepickers linked so picking a start date sets the + end picker's minDate, and picking an end date sets the start picker's + maxDate. Replaces the bootstrap-datepicker .input-daterange pattern. + Linking is handled in snipeit.js by pairing .js-date-range-start with + the .js-date-range-end sibling under the same .js-date-range parent. --}} +