|
@@ -38,6 +38,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
}
|
|
|
?>
|
|
|
<div class="p-3 mcp-theme-1">
|
|
|
+
|
|
|
<div visit-moe close-on-save close-on-cancel class="d-block">
|
|
|
<form show url="/api/visitPoint/upsertChildReview" class="mcp-theme-1">
|
|
|
<input type="hidden" name="uid" value="<?= $point->uid ?>">
|
|
@@ -46,6 +47,9 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<input type="hidden" name="data" value="{{json_encode($contentData)}}">
|
|
|
|
|
|
<div id="edit-univ_sub_physical_activity_assessment-container">
|
|
|
+
|
|
|
+ @include('app.patient.modules._undo_changes', compact('point'))
|
|
|
+
|
|
|
<p class="font-weight-bold my-3 font-size-14"><i>Exercise</i></p>
|
|
|
<p><b>EXERCISE HABITS: AEROBIC/CARDIO TRAINING</b></p>
|
|
|
<div class="d-flex align-items-baseline mb-3">
|
|
@@ -399,6 +403,17 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
let parent = $('#edit-univ_sub_physical_activity_assessment-container').closest('form');
|
|
|
parent.find('[name="data"]').val(JSON.stringify(this.data));
|
|
|
autoSaveSegmentAndClose(parent.find('[submit]').first());
|
|
|
+ },
|
|
|
+ undoChanges: function() {
|
|
|
+ $.post('/api/visitPoint/destroyCurrentChildReview', {
|
|
|
+ uid: '{{$point->uid}}'
|
|
|
+ }, _data => {
|
|
|
+ if(!hasResponseError(_data)) {
|
|
|
+ closeStagPopup();
|
|
|
+ $('.visit-segment[data-segment-template-name="omega_subjective_system"]').find('.refresh-segment').trigger('click');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
});
|