Переглянути джерело

Hide guest-access, show up/down only to ADMINs

Vijayakrishnan 4 роки тому
батько
коміт
a785260cff
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      resources/views/app/patient/note/section.blade.php

+ 4 - 2
resources/views/app/patient/note/section.blade.php

@@ -59,20 +59,22 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
 
         @if(isset($pro))
             <div class="ml-auto d-inline-flex align-items-center">
-                <div class="ml-auto">
+                {{--<div class="ml-auto">
                     @if(!isset($note) || (isset($note) && !$note->is_signed_by_hcp))
                         @include('app.patient.note.guest-access')
                     @endif
-                </div>
+                </div>--}}
                 <a href="#" class="d-none text-danger if-edit ml-2 remove-section-trigger mr-1" data-uid="{{$section->uid}}" title="Remove {{$section->sectionTemplate->title}}">
                     Remove
                 </a>
+                @if($pro->pro_type === 'ADMIN')
                 <a href="#" class="d-none if-edit ml-2 move-up-trigger" data-uid="{{$section->uid}}" title="Move Up">
                     <i class="fa fa-arrow-up"></i>
                 </a>
                 <a href="#" class="d-none if-edit ml-2 move-down-trigger" data-uid="{{$section->uid}}" title="Move Down">
                     <i class="fa fa-arrow-down"></i>
                 </a>
+                @endif
             </div>
         @endif
     </div>