Samson Mutunga 3 rokov pred
rodič
commit
86c8098263

+ 5 - 3
resources/views/app/patient/intake-data/patient-intake-data-form.blade.php

@@ -27,10 +27,10 @@
 	<form id="patientIntakeDataForm" url="/api/client/updateCanvasData" class="mcp-theme-1" right>
 		@if($patientIntakeData)
 			@include('app.patient.intake-data.patient-intake-data-display')
+			<div class="text-center">
+				<button type="button" class="btn btn-sm btn-primary mb-2 hide-form" id="patientIntakeToggleForm">Update Data</button>
+			</div>
 		@endif
-		<div class="text-center">
-			<button type="button" id="patientIntakeToggleForm">Update Data</button>
-		</div>
 		<div id="patientIntakeFormSection" class="d-none">
 			<div class="bg-light p-2 font-weight-bold mb-2">Update Patient Intake Data</div>
 			<input type="hidden" name="uid" value="{{$patient->uid}}">
@@ -83,8 +83,10 @@
 							self.showForm = isFormHidden ? true:false;
 							if(self.showForm){
 								$(this).removeClass('hide-form');
+								$(this).text('Show Data');
 							}else{
 								$(this).addClass('hide-form');
+								$(this).text('Update Data');
 							}
 							self.toggleForm();
 						});