浏览代码

If user is ADMIN, allow editing note method, type, etc. even if note is signed

Vijayakrishnan 4 年之前
父节点
当前提交
1fc16d0e0f
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      resources/views/app/patient/note/dashboard.blade.php

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

@@ -56,7 +56,7 @@
         <span class="card-header d-flex align-items-start px-3 py-2 border-bottom">
             <div class="pr-2">
                 {{$note->title}}
-                @if(!$note->is_signed_by_hcp)
+                @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
                 <div moe>
                     <a href="" show start><i class="fa fa-edit"></i></a>
                     <form url="/api/note/putTitle">
@@ -76,7 +76,7 @@
             <div class="px-2 border-left border-right">
                 <div class="d-flex">
                     <span class="mr-2">{{friendly_date_time($note->effective_dateest, false, '')}}</span>
-                    @if(!$note->is_signed_by_hcp)
+                    @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
                     <span moe class="ml-auto">
                         <a href="" show start><i class="fa fa-calendar"></i></a>
                         <form url="/api/note/putEffectiveDateEST">
@@ -120,7 +120,7 @@
             <div class="px-2 border-right">
                 <div class="d-flex">
                     <span class="mr-2"><span class="text-secondary">HCP:</span> {{$note->hcpPro->name_display}}</span>
-                    @if(!$note->is_signed_by_hcp)
+                    @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
                     <div moe class="ml-auto">
                         <a href="" show start><i class="fa fa-edit"></i></a>
                         <form url="/api/note/putHcp">
@@ -165,7 +165,7 @@
                     @else
                         <span class="mr-2"><span class="text-secondary">NA:</span> - </span>
                         <span class="d-block" moe>
-                            <a class="text-danger" href="" show start>
+                            <a class="" href="" show start>
                                 <i class="fa fa-edit"></i>
                             </a>
                             <form url="/api/note/putNa">
@@ -194,7 +194,7 @@
             <div class="px-2 border-right">
                 <div class="d-flex">
                     <span class="mr-2"><span class="text-secondary">Type:</span> {{$note->new_or_fu_or_na ? ($note->new_or_fu_or_na === 'NEW' ? 'New Patient' : $note->new_or_fu_or_na) : '-'}}</span>
-                    @if(!$note->is_signed_by_hcp)
+                    @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
                         <div moe class="ml-auto">
                             <a href="" show start><i class="fa fa-edit"></i></a>
                             <form url="/api/note/updateNewOrFuOrNa">
@@ -220,7 +220,7 @@
             <div class="px-2">
                 <div class="d-flex">
                     <span class="mr-2"><span class="text-secondary">Method:</span> {{$note->method ? $note->method : '-'}}</span>
-                    @if(!$note->is_signed_by_hcp)
+                    @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
                         <div moe class="ml-auto">
                             <a href="" show start><i class="fa fa-edit"></i></a>
                             <form url="/api/note/updateMethod">