Przeglądaj źródła

Pro care month report - simple month picker

Vijayakrishnan 3 lat temu
rodzic
commit
c1f3e5c25a

+ 1 - 1
resources/views/app/practice-management/care-month-report.blade.php

@@ -10,7 +10,7 @@
                     Care Month Report: {{date('M Y', strtotime($date))}}
                 </strong>
                 <div class="ml-auto">
-                    <input type="month" value="{{substr($date, 0, 7)}}" onchange="if(this.value){fastLoad('/pro-care-month-report?m=' + this.value.split('-')[1] + '&y=' + this.value.split('-')[0])}">
+                    <input type="month" value="{{substr($date, 0, 7)}}" max="{{substr(date('Y-m-d'), 0, 7)}}" onchange="if(this.value){fastLoad('/pro-care-month-report?m=' + this.value.split('-')[1] + '&y=' + this.value.split('-')[0])}">
                 </div>
             </div>