|
@@ -247,7 +247,7 @@
|
|
<div class="stag-popup stag-popup-sm mcp-theme-1" stag-popup-key="client-edit-appointment">
|
|
<div class="stag-popup stag-popup-sm mcp-theme-1" stag-popup-key="client-edit-appointment">
|
|
<form method="POST" action="/api/appointment/update" id="editApptForm">
|
|
<form method="POST" action="/api/appointment/update" id="editApptForm">
|
|
<h3 class="stag-popup-title">
|
|
<h3 class="stag-popup-title">
|
|
- <span>Edit Appointment</span>
|
|
|
|
|
|
+ <span>Appointment Details</span>
|
|
<a href="#" class="ml-auto text-secondary"
|
|
<a href="#" class="ml-auto text-secondary"
|
|
onclick="return closeStagPopup()"><i class="fa fa-times-circle"></i></a>
|
|
onclick="return closeStagPopup()"><i class="fa fa-times-circle"></i></a>
|
|
</h3>
|
|
</h3>
|
|
@@ -257,9 +257,10 @@
|
|
Patient
|
|
Patient
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="text"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- :value="editAppointment.clientName" readonly>
|
|
|
|
|
|
+ @{{ editAppointment.clientName }}
|
|
|
|
+ <a :href="'/patients/view/' + editAppointment.clientUid + '/calendar/' + editAppointment.uid" class="ml-2">
|
|
|
|
+ <i class="fa fa-calendar"></i>
|
|
|
|
+ </a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -267,15 +268,7 @@
|
|
Pro
|
|
Pro
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <select id="editApptPro" name="proUid" required
|
|
|
|
- v-model="editAppointment.proUid"
|
|
|
|
- class="form-control form-control-sm">
|
|
|
|
- @foreach($pros as $iPro)
|
|
|
|
- <option value="{{$iPro->uid}}">
|
|
|
|
- {{$iPro->displayName()}}
|
|
|
|
- </option>
|
|
|
|
- @endforeach
|
|
|
|
- </select>
|
|
|
|
|
|
+ @{{ editAppointment.proName }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -283,9 +276,7 @@
|
|
Date
|
|
Date
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="date" name="date" required
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- v-model="editAppointment.date">
|
|
|
|
|
|
+ @{{ editAppointment.date }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -293,9 +284,7 @@
|
|
Start Time
|
|
Start Time
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="time" name="startTime" required
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- v-model="editAppointment.startTime">
|
|
|
|
|
|
+ @{{ editAppointment.startTime ? editAppointment.startTime : '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -303,9 +292,7 @@
|
|
End Time
|
|
End Time
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="time" name="endTime"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- v-model="editAppointment.endTime">
|
|
|
|
|
|
+ @{{ editAppointment.endTime ? editAppointment.endTime : '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="timeZone" :value="timezone">
|
|
<input type="hidden" name="timeZone" :value="timezone">
|
|
@@ -314,9 +301,7 @@
|
|
Timezone
|
|
Timezone
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="text"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- :value="timezone" readonly>
|
|
|
|
|
|
+ @{{ timezone }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -324,15 +309,7 @@
|
|
Status
|
|
Status
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <select id="editApptStatus" name="status" required
|
|
|
|
- v-model="editAppointment.status"
|
|
|
|
- class="form-control form-control-sm font-weight-bold px-1">
|
|
|
|
- <option value="CREATED">CREATED</option>
|
|
|
|
- <option value="CONFIRMED">CONFIRMED</option>
|
|
|
|
- <option value="CANCELLED">CANCELLED</option>
|
|
|
|
- <option value="COMPLETED">COMPLETED</option>
|
|
|
|
- <option value="ABANDONED">ABANDONED</option>
|
|
|
|
- </select>
|
|
|
|
|
|
+ @{{ editAppointment.status ? editAppointment.status : '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -340,9 +317,7 @@
|
|
Title
|
|
Title
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <input type="text" name="title"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- v-model="editAppointment.title">
|
|
|
|
|
|
+ @{{ editAppointment.title ? editAppointment.title : '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="row mb-2">
|
|
@@ -350,17 +325,12 @@
|
|
Description
|
|
Description
|
|
</div>
|
|
</div>
|
|
<div class="col-9 font-weight-bold">
|
|
<div class="col-9 font-weight-bold">
|
|
- <textarea name="description"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- v-model="editAppointment.description"></textarea>
|
|
|
|
|
|
+ @{{ editAppointment.description ? editAppointment.description : '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex align-items-center justify-content-center">
|
|
<div class="d-flex align-items-center justify-content-center">
|
|
- <button class="btn btn-sm btn-primary mr-2"
|
|
|
|
- :disabled="inProgress"
|
|
|
|
- v-on:click.prevent="updateAppointment()">Submit</button>
|
|
|
|
<button class="btn btn-sm btn-default border"
|
|
<button class="btn btn-sm btn-default border"
|
|
- onclick="return closeStagPopup()">Cancel</button>
|
|
|
|
|
|
+ onclick="return closeStagPopup()">Close</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@@ -398,7 +368,9 @@
|
|
// edit appt.
|
|
// edit appt.
|
|
editAppointment: {
|
|
editAppointment: {
|
|
proUid: '',
|
|
proUid: '',
|
|
|
|
+ clientUid: '',
|
|
clientName: '',
|
|
clientName: '',
|
|
|
|
+ proName: '',
|
|
date: '',
|
|
date: '',
|
|
startTime: '',
|
|
startTime: '',
|
|
endTime: '',
|
|
endTime: '',
|
|
@@ -733,9 +705,11 @@
|
|
},
|
|
},
|
|
showEditAppointmentModal: function() {
|
|
showEditAppointmentModal: function() {
|
|
// setup model data
|
|
// setup model data
|
|
- /*this.inProgress = false;
|
|
|
|
|
|
+ this.inProgress = false;
|
|
this.editAppointment.uid = this.selectedEvent.extendedProps.appointmentUid;
|
|
this.editAppointment.uid = this.selectedEvent.extendedProps.appointmentUid;
|
|
|
|
+ this.editAppointment.clientUid = this.selectedEvent.extendedProps.clientUid;
|
|
this.editAppointment.clientName = this.selectedEvent.extendedProps.clientName;
|
|
this.editAppointment.clientName = this.selectedEvent.extendedProps.clientName;
|
|
|
|
+ this.editAppointment.proName = this.selectedEvent.extendedProps.proName;
|
|
this.editAppointment.proUid = this.selectedEvent.extendedProps.proUid;
|
|
this.editAppointment.proUid = this.selectedEvent.extendedProps.proUid;
|
|
this.editAppointment.date = this.dateStr(this.selectedEvent.start);
|
|
this.editAppointment.date = this.dateStr(this.selectedEvent.start);
|
|
this.editAppointment.startTime = this.timeStr(this.selectedEvent.start);
|
|
this.editAppointment.startTime = this.timeStr(this.selectedEvent.start);
|
|
@@ -745,9 +719,9 @@
|
|
this.editAppointment.description = this.selectedEvent.extendedProps.description;
|
|
this.editAppointment.description = this.selectedEvent.extendedProps.description;
|
|
this.editAppointment.status = this.selectedEvent.extendedProps.status;
|
|
this.editAppointment.status = this.selectedEvent.extendedProps.status;
|
|
Vue.nextTick(function() {
|
|
Vue.nextTick(function() {
|
|
- $('#editApptPro').trigger('change');
|
|
|
|
showStagPopup('client-edit-appointment');
|
|
showStagPopup('client-edit-appointment');
|
|
- });*/
|
|
|
|
|
|
+ initFastLoad($('[stag-popup-key="client-edit-appointment"]'));
|
|
|
|
+ });
|
|
},
|
|
},
|
|
updateAppointment: function() {
|
|
updateAppointment: function() {
|
|
let form = $('#editApptForm');
|
|
let form = $('#editApptForm');
|