Sfoglia il codice sorgente

Replace old note-sign UI with new

Vijayakrishnan 3 anni fa
parent
commit
389ef214c2
1 ha cambiato i file con 14 aggiunte e 12 eliminazioni
  1. 14 12
      resources/views/app/patient/note/dashboard.blade.php

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

@@ -343,7 +343,7 @@
                             </div>
                         @endif
                         @if(!$note->is_signed_by_hcp )
-                            <div moe
+                            <!--<div moe
                                  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>
@@ -355,17 +355,19 @@
                                         <button class="btn btn-default border btn-sm" cancel>Cancel</button>
                                     </div>
                                 </form>
-                            </div>
-                            <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*
-                            </a>
+                            </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>
+                            @endif
                         @endif
                     </div>
                 </div>