Browse Source

[STAG-4] New patient - prevent future DOB

Vijayakrishnan Krishnan 4 năm trước cách đây
mục cha
commit
59d42e420f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resources/views/app/new-patient.blade.php

+ 1 - 1
resources/views/app/new-patient.blade.php

@@ -37,7 +37,7 @@
                         </div>
                         <div class='form-group mb-3'>
                             <label class='control-label'>Date Of Birth *</label>
-                            <input class='form-control' type='date' name='dateOfBirth' required>
+                            <input class='form-control' type='date' name='dateOfBirth' max="{{ date('Y-m-d') }}" required>
                         </div>
                         <div class='form-group mb-3'>
                             <label class='control-label'>Cell Number </label>