Эх сурвалжийг харах

Visit UI - goals - markup cleanup

Vijayakrishnan 3 жил өмнө
parent
commit
612729edc5

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