Bladeren bron

Reconcile 'copy-all' shortcut

Vijayakrishnan 3 jaren geleden
bovenliggende
commit
bc425a3cf4
1 gewijzigde bestanden met toevoegingen van 12 en 1 verwijderingen
  1. 12 1
      resources/views/app/patient/medications-reconcile.blade.php

+ 12 - 1
resources/views/app/patient/medications-reconcile.blade.php

@@ -28,7 +28,9 @@ $medications = $points;
         <tr>
             <th class="text-secondary bg-light border-bottom-0 w-25">Medication</th>
             <th class="text-secondary bg-light border-bottom-0 w-25">Pre-existing Plan</th>
-            <th class="text-secondary bg-light border-bottom-0 w-25">Current Subjective</th>
+            <th class="text-secondary bg-light border-bottom-0 w-25">Current Subjective
+                <a href="#" class="text-sm font-weight-normal ml-3 btn-copy-all">Copy all to new subj.</a>
+            </th>
             <th class="text-secondary bg-light border-bottom-0 w-25">New Subjective</th>
         </tr>
         </thead>
@@ -157,6 +159,15 @@ $medications = $points;
                     return false;
                 });
 
+            $('#medications-reconcile-{{$note->id}} .btn-copy-all')
+                .off('click')
+                .on('click', function() {
+                    $('#medications-reconcile-{{$note->id}} .copy-to-new-subjective').each(function() {
+                        $(this).trigger('click');
+                    });
+                    return false;
+                });
+
             $('#medications-reconcile-{{$note->id}} .btn-save-reviews')
                 .off('click')
                 .on('click', function() {