소스 검색

[STAG-4] New patient - prevent future DOB

Vijayakrishnan Krishnan 4 년 전
부모
커밋
59d42e420f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>