Ver Fonte

[STAG-4] New patient - prevent future DOB

Vijayakrishnan Krishnan há 4 anos atrás
pai
commit
59d42e420f
1 ficheiros alterados com 1 adições e 1 exclusões
  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>