unknown 3 gadi atpakaļ
vecāks
revīzija
6d178afbf7
1 mainītis faili ar 17 papildinājumiem un 6 dzēšanām
  1. 17 6
      resources/views/app/dashboard-mcp.blade.php

+ 17 - 6
resources/views/app/dashboard-mcp.blade.php

@@ -300,6 +300,7 @@
                                     </strong>
                                 </div>
                                 <div class="card-body p-0">
+
                                     <table class="table table-sm table-bordered appointments">
                                         <tr v-for="event in events" class="">
                                             <td>
@@ -362,6 +363,17 @@
                                             </td>
                                         </tr>
                                     </table>
+
+                                    <div v-if="numEventsForDate === 0"
+                                         class="bg-light p-3 text-secondary border bounded">
+                                        <span v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
+                                        <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
+                                    </div>
+
+                                    <div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
+                                        Please select a date from the calendar on the left
+                                    </div>
+
                                 </div>
                             </div>
                             <div class="card mb-4">
@@ -883,10 +895,8 @@
 
                                     <div v-if="numEventsForDate === 0"
                                          class="bg-light p-3 text-secondary border bounded">
-                                    <span
-                                        v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
-                                        <span
-                                            v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
+                                        <span v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
+                                        <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
                                     </div>
                                 </div>
                                 <div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
@@ -1145,7 +1155,8 @@
                                     return [true, 'has-events'];
                                 }
                                 return [true, 'no-events'];
-                            }
+                            },
+                            defaultDate: 0
                         });
                         // this.calendarElem
                         //     .on('changeDate', function () {
@@ -1179,7 +1190,7 @@
 
                         this.loadMeasurements();
                         this.initLoadAppointments();
-                        this.loadEvents('2021-10-13');
+                        this.loadEvents('2021-10-03');
                     }
                 });
                 /*// refresh once ticket popup is closed