Browse Source

Wizards - allow review/plan on core note

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
7e2fc51817

+ 1 - 1
resources/views/app/patient/wizard-partials/common-fields.blade.php

@@ -120,7 +120,7 @@
 <div {{@$point ? 'if-not-entry-error class="d-none"' : ''}}>
     <div if-active-or-not-active class="d-none">
 
-    @if($patient->core_note_id !== $note->id)
+    @if(1 || $patient->core_note_id !== $note->id) {{-- allow review/plan from core note --}}
         <div class="row mb-2">
             @if(!@$noReview)
                 <div class="col-6 pr-0">

+ 4 - 4
resources/views/app/patient/wizard-partials/common-script.blade.php

@@ -181,7 +181,7 @@ parentSegment.find('#frm-add-{{$label}}')
             parsed = JSON.parse(dataField.val());
         }
 
-        @if($patient->core_note_id !== $note->id)
+        @if(1 || $patient->core_note_id !== $note->id)
         // store plan content
         let planContent = parsed && parsed.planValue ? parsed.planValue : '';
         let reviewContent = parsed && parsed.reviewValue ? parsed.reviewValue : '';
@@ -222,7 +222,7 @@ parentSegment.find('#frm-add-{{$label}}')
 
         let payload = {};
         form.serializeArray().map(x => {payload[x.name] = x.value;});
-        @if($patient->core_note_id !== $note->id)
+        @if(1 || $patient->core_note_id !== $note->id)
         if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
             payload.childReviewData = JSON.stringify({
                 value: reviewContent
@@ -270,7 +270,7 @@ parentSegment.find('.frm-edit-{{$label}}')
             parsed = JSON.parse(dataField.val());
         }
 
-        @if($patient->core_note_id !== $note->id)
+        @if(1 || $patient->core_note_id !== $note->id)
         let reviewContent = parsed && parsed.reviewValue ? parsed.reviewValue : '';
 
         let compareWith = false;
@@ -332,7 +332,7 @@ parentSegment.find('.frm-edit-{{$label}}')
 
         let payload = {};
         form.serializeArray().map(x => {payload[x.name] = x.value;});
-        @if($patient->core_note_id !== $note->id)
+        @if(1 || $patient->core_note_id !== $note->id)
         if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
             payload.childReviewData = JSON.stringify({
                 value: reviewContent