浏览代码

Note - print adjustments

Vijayakrishnan 3 年之前
父节点
当前提交
f92d15f753

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

@@ -770,7 +770,7 @@ use App\Models\Handout;
                             <div class="min-width-300px stag-scrollbar">
                                 <?php $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1); ?>
                                 @if($isOldClient)
-                                    <div class="p-2 bg-light border-bottom">
+                                    <div class="p-2 bg-light border-bottom screen-only">
                                         <div class="d-flex align-items-baseline">
                                             <div class="font-weight-bold font-size-14 text-warning-dark">
                                                 <i class="fa fa-clock text-secondary text-sm"></i>

+ 9 - 0
resources/views/app/patient/note/dashboard_script.blade.php

@@ -5,6 +5,15 @@
 
             function init() {
 
+                $(document)
+                    .off('keydown.capture-print')
+                    .on('keydown.capture-print', function(_e) {
+                        if(_e.which === 80 && _e.ctrlKey) {
+                            window.print(); // use "lhs" frame for printing, not "top"
+                            return false;
+                        }
+                    });
+
                 $(document)
                     .off('change.check-book-fu-appt', '.fu-appt-container [name="is_follow_up_needed"]')
                     .on('change.check-book-fu-appt', '.fu-appt-container [name="is_follow_up_needed"]', function() {

+ 1 - 1
resources/views/app/patient/note/lhs-tree.blade.php

@@ -1,4 +1,4 @@
-<div class="note-lhs-tree pb-4" id="note-lhs-tree">
+<div class="note-lhs-tree pb-4 screen-only" id="note-lhs-tree">
     <?php
     $previousHeading = null;
     $previousSubHeading = null;

+ 1 - 1
resources/views/app/patient/note/rhs-sidebar.blade.php

@@ -1,4 +1,4 @@
-<div class="note-rhs-sidebar" id="note-rhs-sidebar">
+<div class="note-rhs-sidebar screen-only" id="note-rhs-sidebar">
 
     <?php
     $cmStartDate = date('Y-m-01', strtotime($note->effective_dateest));