diff --git a/resources/views/form/rapport-team3/1655458544-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac4.blade.php b/resources/views/form/rapport-team3/1655458544-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac4.blade.php index 67afb54f..c1b1446b 100644 --- a/resources/views/form/rapport-team3/1655458544-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac4.blade.php +++ b/resources/views/form/rapport-team3/1655458544-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac4.blade.php @@ -601,47 +601,7 @@ $(document).ready(function () { } - /* - function setDateRange() { - let today = new Date(); - - let currentDay = today.getDate(); - let currentMonth = today.getMonth(); - let currentYear = today.getFullYear(); - - let lastDayOfMonth = new Date(currentYear, currentMonth + 1, 0).getDate(); - - if (currentDay >= 25 || currentDay === lastDayOfMonth) { - - let nextMonthStart = new Date(currentYear, currentMonth + 1, 1); - let nextMonthEnd = new Date(currentYear, currentMonth + 2, 0); - - $('#field-plan_date') - .attr('min', formatYMD(nextMonthStart)) - .attr('max', formatYMD(nextMonthEnd)) - .val(formatYMD(nextMonthStart)) - .prop('disabled', false); - - // $('#execution-plan_date') - // .attr('min', formatYMD(nextMonthStart)) - // .attr('max', formatYMD(nextMonthEnd)) - // .val(formatYMD(nextMonthStart)) - // .prop('disabled', false); - - } else { - $('#field-plan_date') - .val('') - .prop('disabled', true); - - // $('#execution-plan_date') - // .val('') - // .prop('disabled', true); - } - } - - setDateRange(); - */ - +/* function setPlanDateRange() { let today = new Date(); @@ -677,13 +637,9 @@ function setPlanDateRange() { // Call on page load setPlanDateRange(); - + */ -// $(function () { -// $('#field-plan_date') -// .attr('min', '2026-02-01') -// .attr('max', '2026-02-28'); // use 29 if leap year -// }); +