Ver Fonte

Rx wizard - add/edit plan

Vijayakrishnan há 3 anos atrás
pai
commit
2d4ceb4829

+ 16 - 8
resources/views/app/patient/medications-center.blade.php

@@ -317,14 +317,22 @@ $medications = $points;
                             include resource_path('views/app/patient/segment-templates/_child_plan/last-plan.php');
                             ?>
                         </div>
-                        <a class="px-2 view-review-log"
-                           native target="_blank"
-                           open-in-stag-popup
-                           popup-style="stag-popup-md"
-                           title="Plan log<?= !!@($medication->data->name) ? ' for ' . @($medication->data->name) : '' ?>"
-                           href="/point/plan-log/<?= $medication->uid ?>?popupmode=1">
-                            <i class="fa fa-history"></i>
-                        </a>
+                        <div class="d-inline-flex flex-nowrap">
+                            <a class="px-2 view-review-log"
+                               native target="_blank"
+                               open-in-stag-popup
+                               popup-style="stag-popup-md"
+                               title="Plan log<?= !!@($medication->data->name) ? ' for ' . @($medication->data->name) : '' ?>"
+                               href="/point/plan-log/<?= $medication->uid ?>?popupmode=1">
+                                <i class="fa fa-history"></i>
+                            </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('plan_medications');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
+                            }
+                            ?>
+                        </div>
                     </div>
                 </td>
             </tr>

+ 3 - 0
resources/views/app/patient/note/segment_script.blade.php

@@ -153,6 +153,9 @@
                                 }, 250);
                             }
                         }
+                        if($(_trigger).closest('[visit-moe]').closest('.stag-popup').length) {
+                            refreshDynamicStagPopup();
+                        }
                     }
                     if(_close) {
                         closeStagPopup();