Kaynağa Gözat

Review/plan - plus icon if no existing, edit icon otherwise

Vijayakrishnan 3 yıl önce
ebeveyn
işleme
02032c1c84

+ 3 - 1
resources/views/app/patient/segment-templates/_child_plan/edit-plan.php

@@ -27,7 +27,9 @@ else {
 }
 ?>
 <div visit-moe large class="d-inline">
-    <a start show href="#"><i class="fa fa-plus-square"></i></a>
+    <a start show href="#">
+        <i class="fa <?= !empty($currentValue) ? 'fa-pencil-alt' : 'fa-plus-square'?>"></i>
+    </a>
     <form url="/api/visitPoint/upsertChildPlan" class="mcp-theme-1" left>
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">

+ 3 - 1
resources/views/app/patient/segment-templates/_child_review/edit-review.php

@@ -31,7 +31,9 @@ else {
 }
 ?>
 <div visit-moe large relative class="d-inline">
-    <a start show href="#"><i class="fa fa-plus-square"></i></a>
+    <a start show href="#">
+        <i class="fa <?= !empty($currentValue) ? 'fa-pencil-alt' : 'fa-plus-square'?>"></i>
+    </a>
     <form url="/api/visitPoint/upsertChildReview" class="mcp-theme-1" right>
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">