Ver código fonte

Note - old sign for old notes, new one for visit notes

Vijayakrishnan 3 anos atrás
pai
commit
d20fa8bdea
1 arquivos alterados com 27 adições e 23 exclusões
  1. 27 23
      resources/views/app/patient/note/dashboard.blade.php

+ 27 - 23
resources/views/app/patient/note/dashboard.blade.php

@@ -360,30 +360,34 @@
                             </div>
                         @endif
                         @if(!$note->is_signed_by_hcp )
-                            <div moe relative
-                                 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 As HCP</a>
-                                <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">
-                                        <button class="btn btn-success btn-sm" submit>Sign</button>
-                                        <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                            @if($note->hcp_pro_id !== $pro->id)
+                                <span class="text-sm text-secondary">Only the note's HCP can sign</span>
+                            @else
+                                @if(!$isVisitTemplateBased)
+                                    <div moe relative
+                                         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 As HCP</a>
+                                        <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">
+                                                <button class="btn btn-success btn-sm" submit>Sign</button>
+                                                <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                                            </div>
+                                        </form>
                                     </div>
-                                </form>
-                            </div>
-                            @if($note->hcp_pro_id === $pro->id)
-                                <a native target="_blank"
-                                   open-in-stag-popup
-                                   update-parent
-                                   mc-initer="note-sign-confirmation-{{$note->id}}"
-                                   popup-style="stag-popup-md"
-                                   title="Confirm and Sign"
-                                   class="ml-2 text-info font-weight-bold"
-                                   href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
-                                    Sign Note As HCP
-                                </a>
+                                @else
+                                    <a native target="_blank"
+                                       open-in-stag-popup
+                                       update-parent
+                                       mc-initer="note-sign-confirmation-{{$note->id}}"
+                                       popup-style="stag-popup-md"
+                                       title="Confirm and Sign"
+                                       href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
+                                        Sign Note As HCP
+                                    </a>
+                                @endif
                             @endif
                         @endif
                     </div>