فهرست منبع

Behavior of is-time-specific in add entry moes

Vijayakrishnan Krishnan 5 سال پیش
والد
کامیت
eff2b586f0
1فایلهای تغییر یافته به همراه14 افزوده شده و 12 حذف شده
  1. 14 12
      resources/views/app/patient/care-month/dashboard.blade.php

+ 14 - 12
resources/views/app/patient/care-month/dashboard.blade.php

@@ -90,20 +90,21 @@
                                        value="" placeholder="Effective Date">
                             </div>
                             <div class="mb-2">
-                                <input type="number" min="0" max="9999" class="form-control form-control-sm" name="timeInSeconds"
+                                <input type="number" min="0" max="9999" class="form-control form-control-sm cm-time-value" name="timeInSeconds"
                                        value="" placeholder="Time in Seconds">
                             </div>
                             <div class="mb-2 d-flex align-items-center">
                                 <span>Time Specific:</span>
-                                <input type="checkbox" name="isTimeSpecific" class="ml-1">
+                                <input type="checkbox" name="isTimeSpecific" class="ml-1"
+                                       onchange="enableTimeSpecificFields(this.checked, 'cm-time-value', 'cm-time-range')">
                             </div>
                             <div class="mb-2">
-                                <input type="time" class="form-control form-control-sm" name="startingTime"
-                                       value="" placeholder="Starting Time">
+                                <input type="time" class="form-control form-control-sm cm-time-range" name="startingTime"
+                                       value="" placeholder="Starting Time" disabled>
                             </div>
                             <div class="mb-2">
-                                <input type="time" class="form-control form-control-sm" name="endingTime"
-                                       value="" placeholder="Ending Time">
+                                <input type="time" class="form-control form-control-sm cm-time-range" name="endingTime"
+                                       value="" placeholder="Ending Time" disabled>
                             </div>
                             <div class="mb-2">
                                 <input type="text" class="form-control form-control-sm" name="contentText"
@@ -184,20 +185,21 @@
                                        value="" placeholder="Effective Date">
                             </div>
                             <div class="mb-2">
-                                <input type="number" min="0" max="9999" class="form-control form-control-sm" name="timeInSeconds"
+                                <input type="number" min="0" max="9999" class="form-control form-control-sm rm-time-value" name="timeInSeconds"
                                        value="" placeholder="Time in Seconds">
                             </div>
                             <div class="mb-2 d-flex align-items-center">
                                 <span>Time Specific:</span>
-                                <input type="checkbox" name="isTimeSpecific" class="ml-1">
+                                <input type="checkbox" name="isTimeSpecific" class="ml-1"
+                                       onchange="enableTimeSpecificFields(this.checked, 'rm-time-value', 'rm-time-range')">
                             </div>
                             <div class="mb-2">
-                                <input type="time" class="form-control form-control-sm" name="startingTime"
-                                       value="" placeholder="Starting Time">
+                                <input type="time" class="form-control form-control-sm rm-time-range" name="startingTime"
+                                       value="" placeholder="Starting Time" disabled>
                             </div>
                             <div class="mb-2">
-                                <input type="time" class="form-control form-control-sm" name="endingTime"
-                                       value="" placeholder="Ending Time">
+                                <input type="time" class="form-control form-control-sm rm-time-range" name="endingTime"
+                                       value="" placeholder="Ending Time" disabled>
                             </div>
                             <div class="mb-2">
                                 <input type="text" class="form-control form-control-sm" name="contentText"