Vijayakrishnan 3 лет назад
Родитель
Сommit
1b8444ea1a
1 измененных файлов с 11 добавлено и 2 удалено
  1. 11 2
      resources/views/app/patient/incoming-reports.blade.php

+ 11 - 2
resources/views/app/patient/incoming-reports.blade.php

@@ -1,6 +1,6 @@
 @extends ('layouts.patient')
 @section('inner-content')
-    <div>
+    <div id="incoming-reports">
         <div class="d-flex align-items-center pb-2">
             <h4 class="font-weight-bold m-0">Incoming Reports</h4>
             <span class="mx-2 text-secondary">|</span>
@@ -23,7 +23,7 @@
                     </div>
                     <div class="mb-2">
                         <label for="" class="text-sm text-secondary mb-1">Report Date</label>
-                        <input type="date" class="form-control form-control-sm" name="reportDate"
+                        <input type="text" class="form-control form-control-sm stag-dp" name="reportDate"
                                value="" placeholder="Report Date">
                     </div>
                     <div class="mb-2">
@@ -496,5 +496,14 @@
             });
             return false;
         }
+        (function() {
+            function init() {
+                $('#incoming-reports').find('input.stag-dp')
+                    .prop('readonly', true)
+                    .addClass('bg-white')
+                    .datepicker();
+            }
+            addMCInitializer('incoming-reports', init, '#incoming-reports')
+        }).call(window);
     </script>
 @endsection