Selaa lähdekoodia

Appt. calendar updates

Vijayakrishnan 4 vuotta sitten
vanhempi
commit
72d321879a
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      resources/views/app/patient/manage-appointment.blade.php

+ 7 - 1
resources/views/app/patient/manage-appointment.blade.php

@@ -5,7 +5,11 @@
     <script src='/fullcalendar-5.3.2/lib/main.js'></script>
     <div class="d-flex align-items-center pb-2">
         <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>
     </div>
     <hr class="mt-2 mb-3">
@@ -172,6 +176,7 @@
                         form[0].reportValidity();
                         return false;
                     }
+                    $('.apply-appt-button').prop('disabled', true);
                     $('.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));
                     $.post(form.attr('action'), form.serialize(), function(_data) {
@@ -181,6 +186,7 @@
                                 $('.apply-appt-button').prop('disabled', true);
                             @else
                                 toastr.success('Appointment booked successfully');
+                                fastLoad('/patients/view/{{ $patient->uid  }}/manage-appointment/' + _data.data);
                             @endif
                             calendarObject.refetchEvents();
                         }