Bladeren bron

Client dashboard - use same logic for allowing/disallowing direct edits in all hx sections

Vijayakrishnan 3 jaren geleden
bovenliggende
commit
b87d20f9b6

+ 4 - 0
resources/views/app/patient/point-based-partials/fhx.blade.php

@@ -4,6 +4,7 @@
         @if($isOldClient && @$hasFhxInCanvas)
             <div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
         @endif
+        @if(!@$disallowPointEdits)
         <a native="" target="_blank"
            class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none fhx-trigger"
            open-in-stag-popup="" update-parent=""
@@ -14,6 +15,9 @@
             <i class="fa fa-bolt mr-1"></i>
             <span>Manage</span>
         </a>
+        @else
+            <span class="text-secondary text-sm ml-3">Editable from within notes.</span>
+        @endif
     </div>
     <div class="bg-light border p-2 mb-3 point-content">
         @include('app.patient.segment-templates.history_family.summary', compact('patient'))

+ 4 - 0
resources/views/app/patient/point-based-partials/pmhx.blade.php

@@ -4,6 +4,7 @@
         @if($isOldClient && @$hasPmhxInCanvas)
             <div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
         @endif
+        @if(!@$disallowPointEdits)
         <a native="" target="_blank"
            class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none pmhx-trigger"
            open-in-stag-popup="" update-parent=""
@@ -14,6 +15,9 @@
             <i class="fa fa-bolt mr-1"></i>
             <span>Manage</span>
         </a>
+        @else
+            <span class="text-secondary text-sm ml-3">Editable from within notes.</span>
+        @endif
     </div>
     <div class="bg-light border p-2 mb-3 point-content">
         @include('app.patient.segment-templates.past_medical_history.summary', compact('patient'))

+ 4 - 0
resources/views/app/patient/point-based-partials/shx.blade.php

@@ -4,6 +4,7 @@
         @if($isOldClient && @$hasPshxInCanvas)
             <div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
         @endif
+        @if(!@$disallowPointEdits)
         <a native="" target="_blank"
            class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none shx-trigger"
            open-in-stag-popup="" update-parent=""
@@ -14,6 +15,9 @@
             <i class="fa fa-bolt mr-1"></i>
             <span>Manage</span>
         </a>
+        @else
+            <span class="text-secondary text-sm ml-3">Editable from within notes.</span>
+        @endif
     </div>
     <div class="bg-light border p-2 mb-3 point-content">
         @include('app.patient.segment-templates.history_surgical.summary', compact('patient'))

+ 4 - 0
resources/views/app/patient/point-based-partials/sochx.blade.php

@@ -4,6 +4,7 @@
         @if($isOldClient && @$hasSochxInCanvas)
             <div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
         @endif
+        @if(!@$disallowPointEdits)
         <a native="" target="_blank"
            class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none sochx-trigger"
            open-in-stag-popup="" update-parent=""
@@ -14,6 +15,9 @@
             <i class="fa fa-bolt mr-1"></i>
             <span>Manage</span>
         </a>
+        @else
+            <span class="text-secondary text-sm ml-3">Editable from within notes.</span>
+        @endif
     </div>
     <div class="bg-light border p-2 mb-3 point-content">
         @include('app.patient.segment-templates.history_social.summary', compact('patient'))