Forráskód Böngészése

ERx - if cancelled - indicate that prominently

Vijayakrishnan 3 éve
szülő
commit
39a4f75da5

+ 5 - 1
resources/views/app/patient/prescriptions/list.blade.php

@@ -139,7 +139,7 @@
             </table>
         </div>
         <div v-if="currentPrescription" class="border-top border-right border-bottom align-self-stretch p-3 flex-grow-1 min-width-50">
-            <div class="d-flex align-items-center">
+            <div class="d-flex align-items-baseline">
                 <h3 class="font-size-16 m-0 d-flex align-items-baseline">
                     <i v-if="currentPrescription.has_hcp_pro_signed" title="Signed" class="fa fa-check text-success mr-2"></i>
                     <b class="mr-1 font-size-16">@{{ currentPrescription.erx_category }} ERx <span class="ml-2">@{{ currentPrescription.created_at_friendly }}</span></b>
@@ -147,6 +147,10 @@
                         <div v-if="currentPrescription.note_id === {{$note->id}}" class="text-info mt-1 font-weight-bold text-nowrap ml-2">* From this note</div>
                     @endif
                 </h3>
+                <div v-if="currentPrescription.pro_declared_status == 'CANCELLED'" class="ml-3 bg-danger font-weight-bold text-sm px-2 py-1 rounded text-white">
+                    <i class="fa fa-ban"></i>
+                    CANCELLED
+                </div>
                 <a class="ml-auto" href="#" v-on:click.prevent="setCurrentPrescription(null);">
                     <i class="fa fa-times-circle on-hover-opaque"></i>
                 </a>