Explorar el Código

Prevent adding future time entries

Vijayakrishnan Krishnan hace 5 años
padre
commit
e3e3d843d6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      resources/views/app/patient/care-month/dashboard.blade.php

+ 2 - 2
resources/views/app/patient/care-month/dashboard.blade.php

@@ -113,7 +113,7 @@
                                     </select>
                                 </div>
                                 <div class="mb-2">
-                                    <input type="date" class="form-control form-control-sm" name="effectiveDate"
+                                    <input type="date" max="{{ date('Y-m-d') }}" class="form-control form-control-sm" name="effectiveDate"
                                            value="" placeholder="Effective Date">
                                 </div>
                                 <div class="mb-2">
@@ -212,7 +212,7 @@
                                     </select>
                                 </div>
                                 <div class="mb-2">
-                                    <input type="date" class="form-control form-control-sm" name="effectiveDate"
+                                    <input type="date" max="{{ date('Y-m-d') }}" class="form-control form-control-sm" name="effectiveDate"
                                            value="" placeholder="Effective Date">
                                 </div>
                                 <div class="mb-2">