|
@@ -5,7 +5,11 @@
|
|
<script src='/fullcalendar-5.3.2/lib/main.js'></script>
|
|
<script src='/fullcalendar-5.3.2/lib/main.js'></script>
|
|
<div class="d-flex align-items-center pb-2">
|
|
<div class="d-flex align-items-center pb-2">
|
|
<h4 class="font-weight-bold m-0 font-size-16">
|
|
<h4 class="font-weight-bold m-0 font-size-16">
|
|
- {{ $appointment && $appointment->uid ? 'Edit Appointment' : 'Create Appointment' }}
|
|
|
|
|
|
+ {{ $appointment && $appointment->uid ? 'Edit Appointment' : 'Book New Appointment' }}
|
|
|
|
+ @if($appointment && $appointment->uid)
|
|
|
|
+ <span class="text-secondary mx-2">|</span>
|
|
|
|
+ <a href="/patients/view/{{$patient->uid}}/manage-appointment" class="font-weight-normal">Book New Appointment</a>
|
|
|
|
+ @endif
|
|
</h4>
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
<hr class="mt-2 mb-3">
|
|
<hr class="mt-2 mb-3">
|
|
@@ -172,6 +176,7 @@
|
|
form[0].reportValidity();
|
|
form[0].reportValidity();
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ $('.apply-appt-button').prop('disabled', true);
|
|
$('.appt-form [name="startTime"]').val($('.appt-form [name="startTime"]').val().substr(0, 5));
|
|
$('.appt-form [name="startTime"]').val($('.appt-form [name="startTime"]').val().substr(0, 5));
|
|
$('.appt-form [name="endTime"]').val($('.appt-form [name="endTime"]').val().substr(0, 5));
|
|
$('.appt-form [name="endTime"]').val($('.appt-form [name="endTime"]').val().substr(0, 5));
|
|
$.post(form.attr('action'), form.serialize(), function(_data) {
|
|
$.post(form.attr('action'), form.serialize(), function(_data) {
|
|
@@ -181,6 +186,7 @@
|
|
$('.apply-appt-button').prop('disabled', true);
|
|
$('.apply-appt-button').prop('disabled', true);
|
|
@else
|
|
@else
|
|
toastr.success('Appointment booked successfully');
|
|
toastr.success('Appointment booked successfully');
|
|
|
|
+ fastLoad('/patients/view/{{ $patient->uid }}/manage-appointment/' + _data.data);
|
|
@endif
|
|
@endif
|
|
calendarObject.refetchEvents();
|
|
calendarObject.refetchEvents();
|
|
}
|
|
}
|