Przeglądaj źródła

New patient date validation

Vijayakrishnan 3 lat temu
rodzic
commit
d6280da7f7

+ 1 - 1
resources/views/app/patient/create-patient/demographics-form.blade.php

@@ -39,7 +39,7 @@
 		<div class="row align-items-center form-group">
 			<label class="col-md-2 pr-0 font-weight-bold m-0">DOB: <span class="text-danger">*</span></label>
 			<div class="col-md-10">	
-				<input type="date" required name="patientDob" value="" class="form-control input-sm">
+				<input type="date" required name="patientDob" value="" class="form-control input-sm" max="{{date('Y-m-d')}}">
 			</div>
 		</div>
 	</div>