ソースを参照

In notes, allow only the Ally to sign as Ally - Same with HCP. Also applicable for bills inside a note.

Vijayakrishnan Krishnan 4 年 前
コミット
f4f38cb3f9
1 ファイル変更9 行追加3 行削除
  1. 9 3
      resources/views/app/patient/notes.blade.php

+ 9 - 3
resources/views/app/patient/notes.blade.php

@@ -180,7 +180,9 @@
                         HCP Signed
                     </span>
                 @else
-                    <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 as HCP</a>
                         <form url="/api/note/signAsHcp">
                             <input type="hidden" name="uid" value="{{$note->uid}}">
@@ -200,7 +202,9 @@
                         Ally Signed
                     </span>
                 @else
-                    <div moe>
+                    <div moe
+                         class="{{ $note->ally_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
+                         title="{{ $note->ally_pro_id !== $pro->id ? 'Only the note\'s Ally can sign' : '' }}">
                         <a class="" href="" show start>Sign as Ally</a>
                         <form url="/api/note/signAsAlly">
                             <input type="hidden" name="uid" value="{{$note->uid}}">
@@ -279,7 +283,9 @@
                                                 HCP Signed
                                             </span>
                                         @else
-                                            <div moe>
+                                            <div moe
+                                                 class="{{ $bill->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
+                                                 title="{{ $bill->hcp_pro_id !== $pro->id ? 'Only the bill\'s HCP can sign' : '' }}">
                                                 <a class="" href="" show start>Sign as HCP</a>
                                                 <form url="/api/bill/signAsHcp">
                                                     <input type="hidden" name="uid" value="{{$bill->uid}}">