Browse Source

Wizards whole cell click for edit review/plan

Vijayakrishnan 3 years ago
parent
commit
65be1ad2a5

+ 4 - 0
public/css/style.css

@@ -3397,4 +3397,8 @@ body.forced-masking #mask {
 .note-container.note_template_omega_soap_visit table.table-cage tr td:nth-last-child(3) {
 .note-container.note_template_omega_soap_visit table.table-cage tr td:nth-last-child(3) {
     max-width: unset !important;
     max-width: unset !important;
     min-width: unset !important;
     min-width: unset !important;
+}
+
+.mcp-theme-1 .point-table [if-read-mode] .inline-html-container {
+    cursor: pointer;
 }
 }

+ 1 - 1
resources/views/app/patient/allergies-center.blade.php

@@ -179,7 +179,7 @@ if(!@$summaryView) {
                 </td>
                 </td>
                 <td>
                 <td>
                     <div if-read-mode>
                     <div if-read-mode>
-                        <div class="d-flex align-items-start">
+                        <div class="d-flex align-items-start position-relative">
                             <div class="flex-grow-1">
                             <div class="flex-grow-1">
                                 <?php
                                 <?php
                                 $point = $allergy;
                                 $point = $allergy;

+ 1 - 1
resources/views/app/patient/careteam-center.blade.php

@@ -168,7 +168,7 @@ if(!@$careTeamMembers || !@$counts) {
                 </td>
                 </td>
                 <td>
                 <td>
                     <div if-read-mode>
                     <div if-read-mode>
-                        <div class="d-flex align-items-start">
+                        <div class="d-flex align-items-start position-relative">
                             <div class="flex-grow-1">
                             <div class="flex-grow-1">
                                 <?php
                                 <?php
                                 $point = $careTeamMember;
                                 $point = $careTeamMember;

+ 1 - 1
resources/views/app/patient/goals-center.blade.php

@@ -106,7 +106,7 @@ if(!@$goals || !@$counts) {
                 </td>
                 </td>
                 <td>
                 <td>
                     <div if-read-mode>
                     <div if-read-mode>
-                        <div class="d-flex align-items-start">
+                        <div class="d-flex align-items-start position-relative">
                             <div class="flex-grow-1">
                             <div class="flex-grow-1">
                                 <?php
                                 <?php
                                 $point = $goal;
                                 $point = $goal;

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

@@ -168,7 +168,7 @@ if(!@$summaryView) {
                     </td>
                     </td>
                     <td>
                     <td>
                         <div if-read-mode>
                         <div if-read-mode>
-                            <div class="d-flex align-items-start">
+                            <div class="d-flex align-items-start position-relative">
                                 <div class="flex-grow-1">
                                 <div class="flex-grow-1">
                                     <?php
                                     <?php
                                     $point = $medication;
                                     $point = $medication;

+ 1 - 1
resources/views/app/patient/problems-center.blade.php

@@ -231,7 +231,7 @@ if(!@$summaryView) {
                 </td>
                 </td>
                 <td>
                 <td>
                     <div if-read-mode>
                     <div if-read-mode>
-                        <div class="d-flex align-items-start">
+                        <div class="d-flex align-items-start position-relative">
                             <div class="flex-grow-1">
                             <div class="flex-grow-1">
                                 <?php
                                 <?php
                                 $point = $problem;
                                 $point = $problem;

+ 1 - 1
resources/views/app/patient/segment-templates/_child_plan/last-plan-optimized.php

@@ -37,5 +37,5 @@
         </span>
         </span>
     </div>
     </div>
 <?php else: ?>
 <?php else: ?>
-    <span class="text-secondary text-sm">-</span>
+    <div class="inline-html-container text-secondary text-sm">-</div>
 <?php endif; ?>
 <?php endif; ?>

+ 2 - 2
resources/views/app/patient/segment-templates/_child_review/edit-review-optimized.php

@@ -30,11 +30,11 @@ else {
     }
     }
 }
 }
 ?>
 ?>
-<div visit-moe large relative class="d-inline">
+<div visit-moe large class="d-inline">
     <a start show href="#" class="px-1 text-center d-block" title="<?= !empty($currentValue) ? 'Edit Subjective' : 'Add Subjective'?>">
     <a start show href="#" class="px-1 text-center d-block" title="<?= !empty($currentValue) ? 'Edit Subjective' : 'Add Subjective'?>">
         <i class="fa <?= !empty($currentValue) ? 'fa-pencil-alt' : 'fa-plus-square'?>"></i>
         <i class="fa <?= !empty($currentValue) ? 'fa-pencil-alt' : 'fa-plus-square'?>"></i>
     </a>
     </a>
-    <form url="/api/visitPoint/upsertChildReview" class="mcp-theme-1" right>
+    <form url="/api/visitPoint/upsertChildReview" class="mcp-theme-1 w-100" left>
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="uid" value="<?= $point->uid ?>">
         <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
         <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
         <input type="hidden" name="data">
         <input type="hidden" name="data">

+ 1 - 1
resources/views/app/patient/segment-templates/_child_review/last-review-optimized.php

@@ -36,5 +36,5 @@
         </span>
         </span>
     </div>
     </div>
 <?php else: ?>
 <?php else: ?>
-    <span class="text-secondary text-sm">-</span>
+    <div class="inline-html-container text-secondary text-sm">-</div>
 <?php endif; ?>
 <?php endif; ?>

+ 12 - 1
resources/views/app/patient/wizard-partials/common-script.blade.php

@@ -972,4 +972,15 @@ parentSegment
         parentSegment.find('[name="dataJson"]').val(generateData(parentSegment));
         parentSegment.find('[name="dataJson"]').val(generateData(parentSegment));
         saveVisitForm(this);
         saveVisitForm(this);
         return false;
         return false;
-    });
+    });
+
+parentSegment
+    .off('click.switch-to-edit', '.point-table [if-read-mode] .inline-html-container')
+    .on('click.switch-to-edit', '.point-table [if-read-mode] .inline-html-container', function() {
+        let trigger = $(this).closest('[if-read-mode]')
+            .find('form[url="/api/visitPoint/upsertChildReview"], form[url="/api/visitPoint/upsertChildPlan"]')
+            .first().closest('[moe], [visit-moe]')
+                .find('a[start][show]')
+                .trigger('click');
+        return false;
+    });