소스 검색

Visit UI - goals - markup cleanup

Vijayakrishnan 3 년 전
부모
커밋
612729edc5
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      resources/views/app/patient/segment-templates/intake_goals/edit.blade.php

+ 1 - 3
resources/views/app/patient/segment-templates/intake_goals/edit.blade.php

@@ -28,6 +28,7 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
             <?php $previousCategory = null; ?>
             <?php foreach($goals as $goal): ?>
                 <?php if(@($goal->data->category)): ?>
+                <?php $point = $goal; ?>
                 <tr>
                     <td>
                         <?php if($previousCategory === $goal->data->category): ?>
@@ -45,7 +46,6 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
                             <!-- common actions -->
                             <div class="ml-auto d-inline-flex align-items-baseline pr-2">
                                 <?php
-                                $point = $goal;
                                 $label = 'Goal';
                                 include resource_path('views/app/patient/segment-templates/_common_actions/remove-undo.php');
                                 ?>
@@ -74,7 +74,6 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
                         <div class="d-flex align-items-start">
                             <div class="flex-grow-1">
                                 <?php
-                                $point = $goal;
                                 include resource_path('views/app/patient/segment-templates/_child_plan/last-plan.php');
                                 ?>
                             </div>
@@ -90,7 +89,6 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
                     </td>
                     <td>
                         <?php
-                        $point = $goal;
                         include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
                         ?>
                     </td>