|
@@ -243,12 +243,19 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
<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"
|
|
|
+ :class="editAppointment.isTrainingEvent ? 'non-interactive' : ''">
|
|
|
<h3 class="stag-popup-title">
|
|
|
<span>Edit Appointment</span>
|
|
|
+ <a native target="_blank" v-if="editAppointment.isTrainingEvent" class="ml-3"
|
|
|
+ :href="'{{config('app.hrm2_url')}}/patients/view/' + editAppointment.clientUid + '/calendar/' + editAppointment.uid">
|
|
|
+ <i class="fa fa-external-link-alt"></i>
|
|
|
+ Open in HRM
|
|
|
+ </a>
|
|
|
<a href="#" class="ml-auto text-secondary"
|
|
|
onclick="return closeStagPopup()"><i class="fa fa-times-circle"></i></a>
|
|
|
</h3>
|
|
|
+ <div class="form-content" :title="editAppointment.isTrainingEvent ? 'Training appointment. Please open in HRM.' : ''">
|
|
|
<input type="hidden" name="uid" :value="editAppointment.uid">
|
|
|
<div class="row mb-2">
|
|
|
<div class="col-3 text-secondary">
|
|
@@ -361,6 +368,7 @@
|
|
|
<button class="btn btn-sm btn-default border"
|
|
|
onclick="return closeStagPopup()">Cancel</button>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -411,6 +419,7 @@
|
|
|
title: '',
|
|
|
description: '',
|
|
|
status: '',
|
|
|
+ isTrainingEvent: false,
|
|
|
},
|
|
|
|
|
|
// availability
|
|
@@ -772,6 +781,7 @@
|
|
|
this.inProgress = false;
|
|
|
this.editAppointment.uid = this.selectedEvent.extendedProps.appointmentUid;
|
|
|
this.editAppointment.clientName = this.selectedEvent.extendedProps.clientName;
|
|
|
+ this.editAppointment.clientUid = this.selectedEvent.extendedProps.clientUid;
|
|
|
this.editAppointment.proUid = this.selectedEvent.extendedProps.proUid;
|
|
|
this.editAppointment.date = this.dateStr(this.selectedEvent.start);
|
|
|
this.editAppointment.startTime = this.timeStr(this.selectedEvent.start);
|
|
@@ -780,6 +790,7 @@
|
|
|
this.editAppointment.title = this.selectedEvent.extendedProps._title;
|
|
|
this.editAppointment.description = this.selectedEvent.extendedProps.description;
|
|
|
this.editAppointment.status = this.selectedEvent.extendedProps.status;
|
|
|
+ this.editAppointment.isTrainingEvent = this.selectedEvent.extendedProps.isTrainingEvent;
|
|
|
Vue.nextTick(function() {
|
|
|
$('#editApptPro').trigger('change');
|
|
|
showStagPopup('client-edit-appointment', true);
|