Răsfoiți Sursa

Dx - if no entries give 1 blank entry to start with

Vijayakrishnan 4 ani în urmă
părinte
comite
f7752867c0

+ 3 - 0
public/css/style.css

@@ -236,6 +236,9 @@ body>nav.navbar {
 .mcp-theme-1 .width-50px {
     width: 50px !important;
 }
+.mcp-theme-1 .min-width-140px {
+    min-width: 140px !important;
+}
 .mcp-theme-1 .min-width-200px {
     min-width: 200px !important;
 }

+ 2 - 14
resources/views/app/patient/canvas-sections/dx/form.blade.php

@@ -1,5 +1,5 @@
 <?php
-if(!$contentData) {
+if(!$contentData || !isset($contentData['items']) || !count($contentData['items'])) {
     $contentData = [
         "items" => [
             [
@@ -13,18 +13,6 @@ if(!$contentData) {
     ];
 }
 
-if(!isset($contentData['items'])){
-    $contentData['items'] =  [
-        [
-            "title" => "",
-            "icd" => "",
-            "coa" => "",
-            "detail" => "",
-            "plan" => "",
-        ]
-    ];
-}
-
 $formID = rand(0, 100000);
 ?>
 <div id="dxSection">
@@ -49,7 +37,7 @@ $formID = rand(0, 100000);
                 </label>
             </th>
             <th class="px-2 text-secondary border-bottom-0 w-35">Title</th>
-            <th class="px-2 text-secondary border-bottom-0">ICD</th>
+            <th class="px-2 text-secondary border-bottom-0 min-width-140px">ICD</th>
             <th class="px-2 text-secondary border-bottom-0 w-25">Detail</th>
             <th class="px-2 text-secondary border-bottom-0 w-25">Plan</th>
             <th class="px-2 text-secondary border-bottom-0"></th>