Преглед на файлове

All Covid modules - toggle relevance

Vijayakrishnan преди 3 години
родител
ревизия
a1fea295d1

+ 1 - 1
resources/views/app/patient/note/dashboard.blade.php

@@ -452,7 +452,7 @@ use App\Models\Handout;
                     "name" => 'COVID-19 Intake',
                     "title" => 'COVID-19 Intake',
                     "href" => "/note-segment-view-by-name/{$note->uid}/covid_intake/edit",
-                    "initer" => "hide-moes"
+                    "initer" => "edit-module-covid-intake-{$note->id}"
                 ],
                 [
                     "name" => 'COVID-19 Follow-up',

+ 2 - 0
resources/views/app/patient/segment-templates/covid_follow-up/edit.blade.php

@@ -561,6 +561,8 @@ $submitFormUrl = '/api/visitPoint/upsertChildReview';
                                 }
                         };
                         covidFollowUp.init();
+                        // if in popup (omega template), add provision to toggle relevance
+                        @include('app.patient.segment-templates._common_actions.toggle-relevance', ['container' => '#covid-follow-up-' . $note->id])
                 }, '#covid-follow-up-{{$note->id}}');
         }).call(window);
 </script>

+ 11 - 1
resources/views/app/patient/segment-templates/covid_intake/edit.blade.php

@@ -145,7 +145,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
 
 ?>
 
-<div visit-moe close-on-save close-on-cancel class="d-block p-3 popup-content-container">
+<div visit-moe close-on-save close-on-cancel class="d-block p-3 popup-content-container" id="edit-module-covid-intake">
     <form show url="/api/visitPoint/upsertChildReview" class="mcp-theme-1">
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
@@ -835,3 +835,13 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
         </div>
     </form>
 </div>
+<script>
+    (function() {
+        function init() {
+            runMCInitializer('hide-moes');
+            // if in popup (omega template), add provision to toggle relevance
+            @include('app.patient.segment-templates._common_actions.toggle-relevance', ['container' => '#edit-module-covid-intake'])
+        }
+        addMCInitializer('edit-module-covid-intake-{{$note->id}}', init, '#edit-module-covid-intake');
+    }).call(window);
+</script>