Browse Source

Omega meds summary UI update

Vijayakrishnan 3 years ago
parent
commit
90edbf5b66

+ 25 - 8
public/css/style.css

@@ -2635,35 +2635,52 @@ table.table-cage {
     color: #2b4259;
 }
 
-table.table-cage tr:first-child td {
+table.table-cage thead tr th:last-child {
+    border-right: 0;
+    border-left: 0;
+}
+table.table-cage thead tr th:first-child {
+    border-left: 0;
+}
+table.table-cage thead tr th {
+    border-bottom-width: 1px !important;
+}
+table.table-cage thead tr th:nth-last-child(2) {
+    border-right: 0 !important;
+}
+table.table-cage thead tr th:last-child {
+    display: none !important;
+}
+
+table.table-cage tbody tr:first-child td {
     border-top: 0;
 }
 
-table.table-cage tr:last-child td {
+table.table-cage tbody tr:last-child td {
     border-bottom: 0;
 }
 
-table.table-cage tr td:first-child {
+table.table-cage tbody tr td:first-child {
     border-left: 0;
 }
 
-table.table-cage tr td:last-child {
+table.table-cage tbody tr td:last-child {
     border-right: 0;
     border-left: 0 !important;
     display: none !important;
 }
 
-table.table-cage tr td:nth-last-child(2) {
+table.table-cage tbody tr td:nth-last-child(2) {
     width: 100% !important;
     border-right: 0 !important;
 }
 
-table.table-cage tr td:nth-last-child(3) {
+table.table-cage tbody tr td:nth-last-child(3) {
     max-width: 300px !important;
     min-width: 300px !important;
 }
 
-table.table-cage tr td.width-40px:first-child {
+table.table-cage tbody tr td.width-40px:first-child {
     max-width: 40px !important;
     min-width: 40px !important;
 }
@@ -3412,7 +3429,7 @@ body.forced-masking #mask {
     border-color: var(--primary-color) !important;
 }
 
-.note-container.note_template_omega_soap_visit table.table-cage tr td:nth-last-child(3) {
+.note-container.note_template_omega_soap_visit table.table-cage tbody tr td:nth-last-child(3) {
     max-width: unset !important;
     min-width: unset !important;
 }

+ 9 - 0
resources/views/app/patient/segment-templates/omega_medications/summary.blade.php

@@ -18,6 +18,15 @@ $plural = 'Medications';
     <div class="text-secondary">-</div>
 <?php else: ?>
 	<table class="table table-bordered table-xs table-cage mb-0">
+		<thead>
+		<tr>
+			<th class="py-1 px-2 border-top-0">#</th>
+			<th class="py-1 px-2 border-top-0">Name</th>
+			<th class="py-1 px-2 border-top-0">Frequency</th>
+			<th class="py-1 px-2 border-top-0">Experience</th>
+			<th class="py-1 px-2 border-top-0"></th>
+		</tr>
+		</thead>
     <?php $j = 0; foreach ($points as $point): $j++; ?>
         <?php $rel = $point->relevanceToNote($note); ?>
 		<?php