Kaynağa Gözat

Note - hide "edit" for signed notes

Vijayakrishnan 4 yıl önce
ebeveyn
işleme
9023036e4f

+ 12 - 6
resources/views/app/patient/note/dashboard.blade.php

@@ -155,7 +155,7 @@
                                  class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
                                  title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
                                 <a class="" href="" show start>Sign Note</a>
-                                <form url="/api/note/signAsHcp">
+                                <form url="/api/note/signAsHcp" right>
                                     <input type="hidden" name="uid" value="{{$note->uid}}">
                                     <p>Sign this note as HCP?</p>
                                     <div class="mb-0">
@@ -231,11 +231,17 @@
                              data-section-template-uid="{{ $section->sectionTemplate->uid }}"
                              data-section-template-name="{{ $section->sectionTemplate->internal_name }}">
                             <div class="d-flex align-items-start">
-                                <a class="font-weight-bold mb-2 d-flex align-items-center c-pointer">
-                                    {{$section->sectionTemplate->title}}
-                                    <span class="d-none if-not-edit"><i class="fa fa-edit ml-2"></i></span>
-                                    <span class="edit-trigger"></span>
-                                </a>
+                                @if(!$note->is_signed_by_hcp)
+                                    <a class="font-weight-bold mb-2 d-flex align-items-center c-pointer">
+                                        {{$section->sectionTemplate->title}}
+                                        <span class="d-none if-not-edit"><i class="fa fa-edit ml-2"></i></span>
+                                        <span class="edit-trigger"></span>
+                                    </a>
+                                @else
+                                    <span class="font-weight-bold mb-2 d-flex align-items-center">
+                                        {{$section->sectionTemplate->title}}
+                                    </span>
+                                @endif
                                 <?php $sectionInternalName = $section->sectionTemplate->internal_name; ?>
                                 @if($sectionInternalName === "exam" || $sectionInternalName === "objective")
                                     @include('app/patient/note/_templates-exam-index')