瀏覽代碼

New ticket type "other" in note

Vijayakrishnan 3 年之前
父節點
當前提交
6e47d19a0d
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      resources/views/app/patient/note/dashboard.blade.php

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

@@ -479,6 +479,12 @@
                                class="ticket-popup-trigger note-dashboard-action d-block text-nowrap screen-only">
                                 + Imaging
                             </a>
+                            <span class="mx-2 text-secondary screen-only">|</span>
+                            <a href="/patients/view/{{$patient->uid}}/tickets/other/create?popupmode=1&note-uid={{$note->uid}}"
+                               native target="_blank"
+                               class="ticket-popup-trigger note-dashboard-action d-block text-nowrap screen-only">
+                                + Other
+                            </a>
                         </div>
 
                         <div class="p-3 border">
@@ -616,7 +622,7 @@
                                     <tbody>
                                     @foreach($otherOpenTickets as $ticket)
                                         <?php $data = json_decode($ticket->data); ?>
-                                        @if($ticket->category === 'erx' || $ticket->category === 'lab' || $ticket->category === 'imaging')
+                                        @if($ticket->category === 'erx' || $ticket->category === 'lab' || $ticket->category === 'imaging' || $ticket->category === 'other')
                                             <tr class="{{$ticket->is_open ? '' : 'bg-light on-hover-opaque'}}">
                                                 <td class="px-2 text-nowrap">
                                                     {{friendly_time($ticket->created_at)}}
@@ -703,6 +709,11 @@
                                                             </div>
                                                         @endif
                                                     @endif
+                                                    @if($ticket->category === 'other')
+                                                        <div>
+                                                            {{$data->title}}
+                                                        </div>
+                                                    @endif
                                                 </td>
                                             </tr>
                                         @endif