Blame view

src/pages/Academic/routine.vue 35.7 KB
710438de6   Shikha Mishra   added teacher mod...
1
2
3
  <template>
    <v-container fluid class="body-color">
      <!-- ****** EDIT  Subject ****** -->
7b5f451a3   Amber Dev   routine time ssue
4
      <v-dialog v-model="editRoutineDialog" max-width="600px" persistent>
710438de6   Shikha Mishra   added teacher mod...
5
6
7
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
5ceb88b44   Shikha Mishra   added pdf option ...
8
              <label class="title text-xs-center">Edit Routine</label>
710438de6   Shikha Mishra   added teacher mod...
9
10
11
12
13
14
              <v-icon size="24" class="right" @click="editRoutineDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-container fluid>
            <v-form ref="formEditRoutine" v-model="validEditRoutine" lazy-validation>
              <v-layout>
57263a890   Shikha Mishra   hide subject from...
15
                <v-flex xs3 sm4 class="pt-4 subheading">
5ceb88b44   Shikha Mishra   added pdf option ...
16
                  <label class="right">Class :</label>
710438de6   Shikha Mishra   added teacher mod...
17
                </v-flex>
57263a890   Shikha Mishra   hide subject from...
18
                <v-flex xs8 sm8 class="ml-2">
710438de6   Shikha Mishra   added teacher mod...
19
                  <v-select
710438de6   Shikha Mishra   added teacher mod...
20
                    :items="classList"
57263a890   Shikha Mishra   hide subject from...
21
22
                    label="Select your Class"
                    v-model="editedItem.classId"
710438de6   Shikha Mishra   added teacher mod...
23
24
25
                    item-text="classNum"
                    item-value="_id"
                    :rules="classRules"
8e8d14254   Shikha Mishra   Cleared data whil...
26
                    @change="getClassSubject(editedItem.classId)"
5ceb88b44   Shikha Mishra   added pdf option ...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
                    required
                  ></v-select>
                </v-flex>
              </v-layout>
              <v-layout>
                <v-flex xs3 sm4 class="pt-4 subheading">
                  <label class="right">Subject :</label>
                </v-flex>
                <v-flex xs8 sm8 class="ml-2">
                  <v-select
                    :items="subjectList.subjects"
                    label="Select your subject"
                    v-model="editedItem.subjectName"
                    item-text="subjectName"
                    item-value="_id"
                    :rules="subjectRules"
                    required
                  ></v-select>
                </v-flex>
              </v-layout>
              <v-layout>
710438de6   Shikha Mishra   added teacher mod...
48
49
50
51
52
                <v-flex xs4 sm4 class="pt-4 subheading">
                  <label class="right">Teacher Name :</label>
                </v-flex>
                <v-flex xs8 sm8 class="ml-3">
                  <v-select
710438de6   Shikha Mishra   added teacher mod...
53
                    :items="teacherList"
d5fcb1cd1   Shikha Mishra   issues resolved
54
55
                    label="Select your teacher"
                    v-model="editedItem.teacherId"
710438de6   Shikha Mishra   added teacher mod...
56
57
58
59
60
61
62
63
                    item-text="name"
                    item-value="_id"
                    :rules="teacherRules"
                    required
                  ></v-select>
                </v-flex>
              </v-layout>
              <v-layout>
57263a890   Shikha Mishra   hide subject from...
64
                <v-flex xs5 sm4 class="pt-4 subheading">
5ceb88b44   Shikha Mishra   added pdf option ...
65
                  <label class="right">Starting time:</label>
710438de6   Shikha Mishra   added teacher mod...
66
                </v-flex>
57263a890   Shikha Mishra   hide subject from...
67
                <v-flex xs7 sm6 class="ml-3">
5ceb88b44   Shikha Mishra   added pdf option ...
68
                  <v-menu
57263a890   Shikha Mishra   hide subject from...
69
                    ref="menuC"
5ceb88b44   Shikha Mishra   added pdf option ...
70
                    :close-on-content-click="false"
57263a890   Shikha Mishra   hide subject from...
71
                    v-model="menu4"
5ceb88b44   Shikha Mishra   added pdf option ...
72
                    :nudge-right="40"
5ceb88b44   Shikha Mishra   added pdf option ...
73
74
75
76
77
78
79
80
81
82
                    lazy
                    transition="scale-transition"
                    offset-y
                    full-width
                    max-width="290px"
                    min-width="290px"
                  >
                    <v-text-field
                      slot="activator"
                      v-model="editedItem.startingTime"
57263a890   Shikha Mishra   hide subject from...
83
                      placeholder="Select your starting time"
5ceb88b44   Shikha Mishra   added pdf option ...
84
                      append-icon="access_time"
5ceb88b44   Shikha Mishra   added pdf option ...
85
86
                      readonly
                    ></v-text-field>
57263a890   Shikha Mishra   hide subject from...
87
                    <v-time-picker v-model="editedItem.startingTime" @change="menu4= false"></v-time-picker>
5ceb88b44   Shikha Mishra   added pdf option ...
88
                  </v-menu>
710438de6   Shikha Mishra   added teacher mod...
89
90
91
                </v-flex>
              </v-layout>
              <v-layout>
57263a890   Shikha Mishra   hide subject from...
92
                <v-flex xs5 sm4 class="pt-4 subheading">
5ceb88b44   Shikha Mishra   added pdf option ...
93
                  <label class="right">Ending Time:</label>
710438de6   Shikha Mishra   added teacher mod...
94
                </v-flex>
57263a890   Shikha Mishra   hide subject from...
95
                <v-flex xs7 sm6 class="ml-3">
5ceb88b44   Shikha Mishra   added pdf option ...
96
                  <v-menu
57263a890   Shikha Mishra   hide subject from...
97
                    ref="menuB"
5ceb88b44   Shikha Mishra   added pdf option ...
98
                    :close-on-content-click="false"
57263a890   Shikha Mishra   hide subject from...
99
                    v-model="menu3"
5ceb88b44   Shikha Mishra   added pdf option ...
100
                    :nudge-right="40"
5ceb88b44   Shikha Mishra   added pdf option ...
101
102
103
104
105
106
107
108
109
110
                    lazy
                    transition="scale-transition"
                    offset-y
                    full-width
                    max-width="290px"
                    min-width="290px"
                  >
                    <v-text-field
                      slot="activator"
                      v-model="editedItem.endingTime"
57263a890   Shikha Mishra   hide subject from...
111
                      placeholder="Select your end time"
5ceb88b44   Shikha Mishra   added pdf option ...
112
                      append-icon="access_time"
5ceb88b44   Shikha Mishra   added pdf option ...
113
114
                      readonly
                    ></v-text-field>
57263a890   Shikha Mishra   hide subject from...
115
                    <v-time-picker v-model="editedItem.endingTime" @change="menu3 = false"></v-time-picker>
5ceb88b44   Shikha Mishra   added pdf option ...
116
                  </v-menu>
710438de6   Shikha Mishra   added teacher mod...
117
118
119
                </v-flex>
              </v-layout>
              <v-layout>
5ceb88b44   Shikha Mishra   added pdf option ...
120
121
                <v-flex xs4 sm4 class="pt-4 subheading">
                  <label class="right">Room:</label>
710438de6   Shikha Mishra   added teacher mod...
122
                </v-flex>
5ceb88b44   Shikha Mishra   added pdf option ...
123
                <v-flex xs8 sm8 class="ml-3">
710438de6   Shikha Mishra   added teacher mod...
124
                  <v-text-field
5ceb88b44   Shikha Mishra   added pdf option ...
125
126
127
128
                    label="fill your room"
                    :rules="roomRules"
                    v-model="editedItem.room"
                    @keyup.enter="submit"
710438de6   Shikha Mishra   added teacher mod...
129
130
131
132
133
                  ></v-text-field>
                </v-flex>
              </v-layout>
              <v-layout>
                <v-flex xs4 sm4 class="pt-4 subheading">
5ceb88b44   Shikha Mishra   added pdf option ...
134
                  <label class="right">Period:</label>
710438de6   Shikha Mishra   added teacher mod...
135
136
137
                </v-flex>
                <v-flex xs8 sm8 class="ml-3">
                  <v-text-field
5ceb88b44   Shikha Mishra   added pdf option ...
138
139
140
141
                    label="fill your period"
                    :rules="periodRules"
                    v-model="editedItem.period"
                    @keyup.enter="submit"
710438de6   Shikha Mishra   added teacher mod...
142
143
144
145
                  ></v-text-field>
                </v-flex>
              </v-layout>
              <v-layout>
5ceb88b44   Shikha Mishra   added pdf option ...
146
147
148
149
150
151
152
153
154
155
156
                <v-flex xs12 sm12>
                  <v-card-actions>
                    <v-spacer></v-spacer>
                    <v-btn
                      @click="update"
                      round
                      dark
                      :loading="loading"
                      class="add-button"
                    >Update Routine</v-btn>
                  </v-card-actions>
710438de6   Shikha Mishra   added teacher mod...
157
158
                </v-flex>
              </v-layout>
710438de6   Shikha Mishra   added teacher mod...
159
160
161
162
            </v-form>
          </v-container>
        </v-card>
      </v-dialog>
5ceb88b44   Shikha Mishra   added pdf option ...
163
      <!-- ****** EXISTING ROUTINE TABLE ****** -->
710438de6   Shikha Mishra   added teacher mod...
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
      <v-toolbar color="transparent" flat>
        <v-btn
          fab
          dark
          class="open-dialog-button hidden-xl-only hidden-md-only hidden-lg-only"
          small
          @click="addRoutineDialog = true"
        >
          <v-icon dark>add</v-icon>
        </v-btn>
        <v-flex xs1 class="hidden-sm-only hidden-xs-only">
          <v-btn
            round
            class="open-dialog-button"
            dark
            @click="addRoutineDialog = true"
            v-if="role != 'TEACHER' "
          >
            <v-icon class="white--text pr-1" size="20">add</v-icon>Add Routine
          </v-btn>
        </v-flex>
        <v-spacer></v-spacer>
        <v-flex lg2 md2 xs12 v-show="show">
          <v-select
            :items="classList"
            label="Select Your Class"
b0e0491ab   Shikha Mishra   solve the issue o...
190
            v-model="addRoutineList.classId"
710438de6   Shikha Mishra   added teacher mod...
191
192
193
194
            item-text="classNum"
            item-value="_id"
            name="Select Class"
            :rules="classRules"
b0e0491ab   Shikha Mishra   solve the issue o...
195
            @change="getSections(addRoutineList.classId)"
710438de6   Shikha Mishra   added teacher mod...
196
197
198
199
200
201
            class="pl-2"
            required
          ></v-select>
        </v-flex>
        <v-flex xs8 sm3 md2 class="mr-3">
          <v-select
b0e0491ab   Shikha Mishra   solve the issue o...
202
            v-model="addRoutineList.sectionId"
710438de6   Shikha Mishra   added teacher mod...
203
            label="Select your section"
710438de6   Shikha Mishra   added teacher mod...
204
205
206
            :items="addSection"
            item-text="name"
            item-value="_id"
5ceb88b44   Shikha Mishra   added pdf option ...
207
208
            name="Select Section"
            :rules="sectionRules"
710438de6   Shikha Mishra   added teacher mod...
209
            @change="getRoutineList()"
5ceb88b44   Shikha Mishra   added pdf option ...
210
            class="pl-2"
710438de6   Shikha Mishra   added teacher mod...
211
212
213
214
215
216
217
218
219
220
            required
          ></v-select>
        </v-flex>
        <v-card-title class="body-1" v-show="show">
          <v-btn icon flat @click="displaySearch">
            <v-avatar size="27">
              <img src="/static/icon/search.png" alt="icon" />
            </v-avatar>
          </v-btn>
        </v-card-title>
612b79bb4   Amber Dev   made serch auto f...
221
        <v-flex xs9 sm9 md2 lg2 xl2 v-if="showSearch">
710438de6   Shikha Mishra   added teacher mod...
222
223
          <v-layout>
            <v-text-field
8e8d14254   Shikha Mishra   Cleared data whil...
224
              autofocus
710438de6   Shikha Mishra   added teacher mod...
225
226
227
228
229
230
231
232
233
234
235
236
              v-model="search"
              label="Search"
              prepend-inner-icon="search"
              color="primary"
              style="transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); !important"
            ></v-text-field>
            <v-icon @click="closeSearch" color="error">close</v-icon>
          </v-layout>
        </v-flex>
      </v-toolbar>
  
      <div class="col-sm-12">
5ceb88b44   Shikha Mishra   added pdf option ...
237
238
239
240
241
242
243
244
245
        <div class="box-body">
          <div class="row">
            <div class="col-sm-12">
              <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                  <li class="active">
                    <a data-toggle="tab" href="#all" aria-expanded="true">All Routines</a>
                  </li>
                </ul>
710438de6   Shikha Mishra   added teacher mod...
246

5ceb88b44   Shikha Mishra   added pdf option ...
247
248
                <div class="tab-content" v-show="hideTable">
                  <div id="all" class="tab-pane active mCustomScrollbar _mCS_1 mCS_no_scrollbar">
710438de6   Shikha Mishra   added teacher mod...
249
                    <div
5ceb88b44   Shikha Mishra   added pdf option ...
250
251
252
253
                      id="mCSB_1"
                      class="mCustomScrollBox mCS-light"
                      style="max-height: none;"
                      tabindex="0"
710438de6   Shikha Mishra   added teacher mod...
254
                    >
5ceb88b44   Shikha Mishra   added pdf option ...
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
                      <div
                        id="mCSB_1_container"
                        class="mCSB_container mCS_x_hidden mCS_no_scrollbar_x"
                        style="position: relative; top: 0px; left: 0px; width: 100%;"
                        dir="ltr"
                      >
                        <div id="hide-table-2">
                          <table id="table" class="table table-striped">
                            <tbody>
                              <tr>
                                <td>MONDAY</td>
                              </tr>
                              <tr>
                                <td>TUESDAY</td>
                              </tr>
                              <tr>
                                <td>WEDNESDAY</td>
                              </tr>
                              <tr>
                                <td>THURSDAY</td>
                              </tr>
                              <tr>
                                <td>FRIDAY</td>
                              </tr>
                              <tr>
                                <td>SATURDAY</td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>
                      <div
                        id="mCSB_1_scrollbar_horizontal"
                        class="mCSB_scrollTools mCSB_1_scrollbar mCS-light mCSB_scrollTools_horizontal"
                        style="display: none;"
                      >
                        <div class="mCSB_draggerContainer">
                          <div
                            id="mCSB_1_dragger_horizontal"
                            class="mCSB_dragger"
                            style="position: absolute; min-width: 30px; width: 0px; left: 0px;"
                          >
                            <div class="mCSB_dragger_bar"></div>
                          </div>
                          <div class="mCSB_draggerRail"></div>
                        </div>
                      </div>
710438de6   Shikha Mishra   added teacher mod...
302
                    </div>
710438de6   Shikha Mishra   added teacher mod...
303
304
                  </div>
                </div>
5ceb88b44   Shikha Mishra   added pdf option ...
305
306
307
308
309
310
311
312
313
314
                <div>
                  <table id="table" class="table table-bordered" v-show="showTable">
                    <tbody>
                      <div class="nav-tabs-custom">
                        <div class="tab-content" id="scrolling">
                          <div id="hide-table-2">
                            <v-data-table :items="routineList">
                              <template slot="items" slot-scope="props">
                                <tr class="tr">
                                  <td>{{ props.item.day }}</td>
1fb5f9af3   Shikha Mishra   minor change in r...
315
                                  <td class="text-center" v-for="list in props.item.lectureRoutine">
5ceb88b44   Shikha Mishra   added pdf option ...
316
317
318
                                    {{ props.item.classId.classNum }}
                                    <br />
                                    {{ props.item.sectionId.name }}
1fb5f9af3   Shikha Mishra   minor change in r...
319
                                    <br />
5ceb88b44   Shikha Mishra   added pdf option ...
320
321
322
323
324
325
                                    {{ list.startingTime }} - {{ list.endingTime }}
                                    <br />
                                    {{ list.room }}
                                    <br />
                                    {{ list.subjectName }}
                                    <br />
57263a890   Shikha Mishra   hide subject from...
326
                                    {{ list.teacherId.name}}
5ceb88b44   Shikha Mishra   added pdf option ...
327
328
329
330
331
332
333
                                    <br />
                                    <span>
                                      <v-tooltip top>
                                        <img
                                          slot="activator"
                                          style="cursor:pointer; width:20px; height:18px; "
                                          class="mr-3"
57263a890   Shikha Mishra   hide subject from...
334
                                          @click="editItem(list, props.item)"
5ceb88b44   Shikha Mishra   added pdf option ...
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
                                          src="/static/icon/edit.png"
                                        />
                                        <span>Edit</span>
                                      </v-tooltip>
                                      <v-tooltip top>
                                        <img
                                          slot="activator"
                                          style="cursor:pointer; width:20px; height:18px; "
                                          class="mr-3"
                                          @click="deleteItem(props.item)"
                                          src="/static/icon/delete.png"
                                        />
                                        <span>Delete</span>
                                      </v-tooltip>
                                    </span>
                                  </td>
                                </tr>
                              </template>
                            </v-data-table>
                          </div>
                        </div>
                      </div>
                    </tbody>
                  </table>
                </div>
710438de6   Shikha Mishra   added teacher mod...
360
361
362
363
364
              </div>
            </div>
          </div>
        </div>
      </div>
710438de6   Shikha Mishra   added teacher mod...
365
366
367
368
369
370
371
372
373
      <!-- ****** ADD MULTIPLE Subject ****** -->
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        :color="color"
      >{{ text }}</v-snackbar>
8e8d14254   Shikha Mishra   Cleared data whil...
374
375
      <v-dialog v-model="addRoutineDialog" max-width="600px" v-if="addRoutineDialog">
        v-if="addRoutineDialog"
710438de6   Shikha Mishra   added teacher mod...
376
377
378
379
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">Add Routine</label>
8e8d14254   Shikha Mishra   Cleared data whil...
380
              <v-icon size="24" class="right" @click="closeAddRoutineModel">cancel</v-icon>
710438de6   Shikha Mishra   added teacher mod...
381
382
383
384
385
386
387
388
389
390
391
392
            </v-flex>
          </v-layout>
          <v-container fluid fill-height>
            <v-layout align-center>
              <v-flex xs12>
                <v-form ref="form" v-model="valid" lazy-validation>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">School Year :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-text-field
5ceb88b44   Shikha Mishra   added pdf option ...
393
                        label="fill your year"
710438de6   Shikha Mishra   added teacher mod...
394
395
396
                        :rules="schoolRules"
                        v-model="addRoutine.schoolYear"
                      ></v-text-field>
710438de6   Shikha Mishra   added teacher mod...
397
398
399
400
401
402
403
404
405
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">Class :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-select
                        :items="classList"
710438de6   Shikha Mishra   added teacher mod...
406
407
408
                        item-text="classNum"
                        item-value="_id"
                        v-model="addRoutine.classId"
5ceb88b44   Shikha Mishra   added pdf option ...
409
                        label="Select Class"
710438de6   Shikha Mishra   added teacher mod...
410
411
412
413
414
415
416
417
418
419
420
421
422
423
                        :rules="classRules"
                        @change="getSections(addRoutine.classId)"
                        class="pl-2"
                        required
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">Section :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-select
                        :items="addSection"
710438de6   Shikha Mishra   added teacher mod...
424
425
426
                        item-text="name"
                        item-value="_id"
                        v-model="addRoutine.sectionId"
5ceb88b44   Shikha Mishra   added pdf option ...
427
                        label="Select Section"
710438de6   Shikha Mishra   added teacher mod...
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
                        :rules="sectionRules"
                        @change="getClassSubject(addRoutine.classId)"
                        class="px-2"
                        required
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs3 sm4 class="pt-4 subheading">
                      <label class="right">Subject :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-2">
                      <v-select
                        :items="subjectList.subjects"
                        label="Select your subject"
                        v-model="addRoutine.subjectName"
                        item-text="subjectName"
5ceb88b44   Shikha Mishra   added pdf option ...
445
                        item-value="subjectName"
710438de6   Shikha Mishra   added teacher mod...
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
                        :rules="subjectRules"
                        required
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs3 sm4 class="pt-4 subheading">
                      <label class="right">Day :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-2">
                      <v-select
                        :items="day"
                        label="Select your day"
                        v-model="addRoutine.day"
                        item-text="text"
                        :rules="dayRules"
                        required
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">Teacher Name :</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-select
                        v-model="addRoutine.teacherId"
                        label="Select your teacher"
                        type="text"
                        :items="teacherList"
                        item-text="name"
                        item-value="_id"
                        :rules="teacherRules"
                        required
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-layout>
57263a890   Shikha Mishra   hide subject from...
484
                    <v-flex xs4 class="pt-4 subheading">
710438de6   Shikha Mishra   added teacher mod...
485
486
                      <label class="right">Starting time:</label>
                    </v-flex>
57263a890   Shikha Mishra   hide subject from...
487
                    <v-flex xs8 sm6 class="ml-3">
710438de6   Shikha Mishra   added teacher mod...
488
489
490
                      <v-menu
                        ref="menuA"
                        :close-on-content-click="false"
57263a890   Shikha Mishra   hide subject from...
491
                        v-model="menu2"
710438de6   Shikha Mishra   added teacher mod...
492
                        :nudge-right="40"
5ceb88b44   Shikha Mishra   added pdf option ...
493
                        :return-value.sync="addRoutine.startingTime"
710438de6   Shikha Mishra   added teacher mod...
494
495
496
497
498
499
500
501
502
                        lazy
                        transition="scale-transition"
                        offset-y
                        full-width
                        max-width="290px"
                        min-width="290px"
                      >
                        <v-text-field
                          slot="activator"
5ceb88b44   Shikha Mishra   added pdf option ...
503
                          v-model="addRoutine.startingTime"
710438de6   Shikha Mishra   added teacher mod...
504
505
506
507
508
509
                          label="Select your starting time"
                          append-icon="access_time"
                          :rules="timeInRules"
                          readonly
                        ></v-text-field>
                        <v-time-picker
5ceb88b44   Shikha Mishra   added pdf option ...
510
511
                          v-model="addRoutine.startingTime"
                          @change="$refs.menuA.save(addRoutine.startingTime)"
710438de6   Shikha Mishra   added teacher mod...
512
513
514
515
516
                        ></v-time-picker>
                      </v-menu>
                    </v-flex>
                  </v-layout>
                  <v-layout>
57263a890   Shikha Mishra   hide subject from...
517
                    <v-flex xs4 class="pt-4 subheading">
710438de6   Shikha Mishra   added teacher mod...
518
519
                      <label class="right">Ending Time:</label>
                    </v-flex>
57263a890   Shikha Mishra   hide subject from...
520
                    <v-flex xs8 sm6 class="ml-3">
710438de6   Shikha Mishra   added teacher mod...
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
                      <v-menu
                        ref="menu"
                        :close-on-content-click="false"
                        v-model="menu1"
                        :nudge-right="40"
                        :return-value.sync="addRoutine.endingTime"
                        lazy
                        transition="scale-transition"
                        offset-y
                        full-width
                        max-width="290px"
                        min-width="290px"
                      >
                        <v-text-field
                          slot="activator"
                          v-model="addRoutine.endingTime"
                          label="Select your end time"
                          append-icon="access_time"
                          :rules="timeOutRules"
                          readonly
                        ></v-text-field>
                        <v-time-picker
                          v-model="addRoutine.endingTime"
                          @change="$refs.menu.save(addRoutine.endingTime)"
                        ></v-time-picker>
                      </v-menu>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">Room:</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-text-field
5ceb88b44   Shikha Mishra   added pdf option ...
555
                        label="fill your room"
710438de6   Shikha Mishra   added teacher mod...
556
557
558
559
560
561
562
563
564
565
566
567
                        :rules="roomRules"
                        v-model="addRoutine.room"
                        @keyup.enter="submit"
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 sm4 class="pt-4 subheading">
                      <label class="right">Period:</label>
                    </v-flex>
                    <v-flex xs8 sm8 class="ml-3">
                      <v-text-field
5ceb88b44   Shikha Mishra   added pdf option ...
568
                        label="fill your period"
710438de6   Shikha Mishra   added teacher mod...
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
                        :rules="periodRules"
                        v-model="addRoutine.period"
                        @keyup.enter="submit"
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs12 sm12>
                      <v-card-actions>
                        <v-spacer></v-spacer>
                        <v-btn
                          @click="create"
                          round
                          dark
                          :loading="loading"
                          class="add-button"
                        >Add Routine</v-btn>
                      </v-card-actions>
                    </v-flex>
                  </v-layout>
                </v-form>
              </v-flex>
            </v-layout>
          </v-container>
        </v-card>
      </v-dialog>
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
    </v-container>
  </template>
  
  <script>
  import http from "@/Services/http.js";
  import Util from "@/util";
  
  export default {
    data: () => ({
      snackbar: false,
      y: "top",
      x: "right",
      role: "",
      mode: "",
      timeout: 3000,
      text: "",
      color: "",
      show: true,
      showSearch: false,
      showLoader: false,
      loading: false,
      editLoading: false,
      date: null,
      search: "",
710438de6   Shikha Mishra   added teacher mod...
622
623
624
625
      editRoutineDialog: false,
      valid: true,
      validEditRoutine: true,
      addRoutineDialog: false,
5ceb88b44   Shikha Mishra   added pdf option ...
626
627
628
      showTable: false,
      hideTable: true,
      name: "",
710438de6   Shikha Mishra   added teacher mod...
629
630
631
632
633
634
635
636
  
      day: [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
b0e0491ab   Shikha Mishra   solve the issue o...
637
        "Sunday",
710438de6   Shikha Mishra   added teacher mod...
638
      ],
5ceb88b44   Shikha Mishra   added pdf option ...
639

710438de6   Shikha Mishra   added teacher mod...
640
641
642
      token: "",
  
      menu1: false,
710438de6   Shikha Mishra   added teacher mod...
643
      menu2: false,
57263a890   Shikha Mishra   hide subject from...
644
645
      menu4: false,
      menu3: false,
710438de6   Shikha Mishra   added teacher mod...
646

b0e0491ab   Shikha Mishra   solve the issue o...
647
648
649
650
651
652
653
654
655
656
657
658
      schoolRules: [(v) => !!v || "School Year is required"],
      classRules: [(v) => !!v || " Class Name is required"],
      teacherRules: [(v) => !!v || " Teacher Name is required"],
      sectionRules: [(v) => !!v || "Section is required"],
      studentRules: [(v) => !!v || " Student is required"],
      finalRules: [(v) => !!v || "Final MArk is required"],
      subjectRules: [(v) => !!v || " Subject Name is required"],
      dayRules: [(v) => !!v || "Day is required"],
      timeInRules: [(v) => !!v || "Start Time is required"],
      timeOutRules: [(v) => !!v || "End Time is required"],
      roomRules: [(v) => !!v || "Room is required"],
      periodRules: [(v) => !!v || "Period is required"],
5ceb88b44   Shikha Mishra   added pdf option ...
659

710438de6   Shikha Mishra   added teacher mod...
660
661
662
663
664
665
666
667
668
669
      classList: [],
      addSection: [],
      subjectList: [],
      teacherList: [],
      titleRules: [],
      markRules: [],
      typeRules: [],
      routineList: [],
      editedIndex: -1,
      addRoutine: {},
b0e0491ab   Shikha Mishra   solve the issue o...
670
      addRoutineList: {},
5ceb88b44   Shikha Mishra   added pdf option ...
671
      startingTime: "",
b0e0491ab   Shikha Mishra   solve the issue o...
672
      editedItem: {},
710438de6   Shikha Mishra   added teacher mod...
673
    }),
8e8d14254   Shikha Mishra   Cleared data whil...
674
675
676
677
678
679
680
    watch: {
      addRoutineDialog: function (val) {
        if (!val) {
          this.addRoutine = [];
        }
      },
    },
710438de6   Shikha Mishra   added teacher mod...
681
    methods: {
57263a890   Shikha Mishra   hide subject from...
682
      editItem(item, routineData) {
b0e0491ab   Shikha Mishra   solve the issue o...
683
684
        console.log("routineData", routineData);
        console.log("item", item);
5ceb88b44   Shikha Mishra   added pdf option ...
685
        this.editedIndex = this.routineList;
710438de6   Shikha Mishra   added teacher mod...
686
        this.editedItem = Object.assign({}, item);
57263a890   Shikha Mishra   hide subject from...
687
688
        this.editedItem.lectureRoutineId = item._id;
        this.editedItem.routineId = routineData._id;
710438de6   Shikha Mishra   added teacher mod...
689
690
691
        this.dialog = true;
        this.editRoutineDialog = true;
      },
710438de6   Shikha Mishra   added teacher mod...
692
      deleteItem(item) {
5ceb88b44   Shikha Mishra   added pdf option ...
693
694
        let deleteLecture = {
          routineId: item._id,
b0e0491ab   Shikha Mishra   solve the issue o...
695
          lectureId: item.lectureRoutine[0]._id,
710438de6   Shikha Mishra   added teacher mod...
696
697
698
        };
        http()
          .delete(
5ceb88b44   Shikha Mishra   added pdf option ...
699
            "/deleteRoutineLecture",
710438de6   Shikha Mishra   added teacher mod...
700
            confirm("Are you sure you want to delete this?") && {
b0e0491ab   Shikha Mishra   solve the issue o...
701
              params: deleteLecture,
710438de6   Shikha Mishra   added teacher mod...
702
703
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
704
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
705
            this.snackbar = true;
5ceb88b44   Shikha Mishra   added pdf option ...
706
            this.text = "Successfully delete Existing Routine";
710438de6   Shikha Mishra   added teacher mod...
707
            this.color = "green";
5ceb88b44   Shikha Mishra   added pdf option ...
708
            this.getRoutineList();
710438de6   Shikha Mishra   added teacher mod...
709
          })
b0e0491ab   Shikha Mishra   solve the issue o...
710
          .catch((error) => {
710438de6   Shikha Mishra   added teacher mod...
711
712
713
714
715
716
717
718
            this.snackbar = true;
            this.text = error.response.data.message;
            this.color = "error";
          });
      },
      close() {
        this.editRoutineDialog = false;
      },
8e8d14254   Shikha Mishra   Cleared data whil...
719
720
721
722
723
      closeAddRoutineModel() {
        this.addRoutineDialog = false;
        this.classList = [];
        this.addRoutine = [];
      },
710438de6   Shikha Mishra   added teacher mod...
724
725
726
727
728
729
      create() {
        var routineData = {
          schoolYear: this.addRoutine.schoolYear,
          classId: this.addRoutine.classId,
          sectionId: this.addRoutine.sectionId,
          day: this.addRoutine.day,
b0e0491ab   Shikha Mishra   solve the issue o...
730
          lectureRoutine: [],
710438de6   Shikha Mishra   added teacher mod...
731
732
733
734
        };
        if (this.$refs.form.validate()) {
          routineData.lectureRoutine.push({
            teacherId: this.addRoutine.teacherId,
5ceb88b44   Shikha Mishra   added pdf option ...
735
            startingTime: this.addRoutine.startingTime,
710438de6   Shikha Mishra   added teacher mod...
736
737
738
            endingTime: this.addRoutine.endingTime,
            room: this.addRoutine.room,
            period: this.addRoutine.period,
b0e0491ab   Shikha Mishra   solve the issue o...
739
            subjectName: this.addRoutine.subjectName,
710438de6   Shikha Mishra   added teacher mod...
740
741
742
          });
          http()
            .post("/createRoutine", routineData)
b0e0491ab   Shikha Mishra   solve the issue o...
743
            .then((response) => {
5ceb88b44   Shikha Mishra   added pdf option ...
744
              this.getRoutineList();
710438de6   Shikha Mishra   added teacher mod...
745
746
747
748
749
750
              this.text = "Routine added successfully";
              this.clear();
              this.snackbar = true;
              this.color = "green";
              this.addRoutineDialog = false;
            })
b0e0491ab   Shikha Mishra   solve the issue o...
751
            .catch((error) => {
710438de6   Shikha Mishra   added teacher mod...
752
753
754
755
756
757
758
759
760
761
              // console.log(error);
              this.snackbar = true;
              this.text = error.response.data.message;
              this.color = "error";
            });
        }
      },
      clear() {
        this.$refs.form.reset();
      },
5ceb88b44   Shikha Mishra   added pdf option ...
762
      update() {
57263a890   Shikha Mishra   hide subject from...
763
764
765
766
767
        if (this.$refs.formEditRoutine.validate()) {
          let editRoutine = {
            routineId: this.editedItem.routineId,
            lectureRoutineId: this.editedItem.lectureRoutineId,
            subjectName: this.editedItem.subjectName,
d5fcb1cd1   Shikha Mishra   issues resolved
768
            teacherId: this.editedItem.teacherId._id,
57263a890   Shikha Mishra   hide subject from...
769
770
771
            startingTime: this.editedItem.startingTime,
            endingTime: this.editedItem.endingTime,
            room: this.editedItem.room,
b0e0491ab   Shikha Mishra   solve the issue o...
772
            period: this.editedItem.period,
57263a890   Shikha Mishra   hide subject from...
773
774
775
776
          };
          this.editLoading = true;
          http()
            .put("/updateRoutine", editRoutine)
b0e0491ab   Shikha Mishra   solve the issue o...
777
            .then((response) => {
57263a890   Shikha Mishra   hide subject from...
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
              this.snackbar = true;
              this.text = "Successfully Edit Existing Routine";
              this.color = "green";
              this.editLoading = false;
              this.editRoutineDialog = false;
              this.getRoutineList();
              // http()
              //   .get(
              //     "/getRoutineList",
              //     {
              //       params: {
              //         classId: this.addRoutine.classId,
              //         sectionId: this.addRoutine.sectionId
              //       }
              //     },
              //     {
              //       headers: { Authorization: "Bearer " + this.token }
              //     }
              //   )
              //   .then(response => {
              //     this.routineList = response.data.data;
              //     this.showLoader = false;
              //     this.showTable = true;
              //     this.hideTable = false;
              //   })
              //   .catch(err => {
              //     console.log("err====>", err);
              //   });
            })
b0e0491ab   Shikha Mishra   solve the issue o...
807
            .catch((error) => {
57263a890   Shikha Mishra   hide subject from...
808
809
810
              this.editLoading = false;
            });
        }
710438de6   Shikha Mishra   added teacher mod...
811
812
813
814
      },
      getClass() {
        http()
          .get("/getClassesList", {
b0e0491ab   Shikha Mishra   solve the issue o...
815
            headers: { Authorization: "Bearer " + this.token },
710438de6   Shikha Mishra   added teacher mod...
816
          })
b0e0491ab   Shikha Mishra   solve the issue o...
817
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
818
819
            this.classList = response.data.data;
          })
b0e0491ab   Shikha Mishra   solve the issue o...
820
          .catch((error) => {
710438de6   Shikha Mishra   added teacher mod...
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
          });
      },
      getSections(_id) {
        var token = this.$store.state.token;
        this.showLoader = true;
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
b0e0491ab   Shikha Mishra   solve the issue o...
836
              headers: { Authorization: "Bearer " + token },
710438de6   Shikha Mishra   added teacher mod...
837
838
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
839
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
840
841
842
            this.addSection = response.data.data;
            this.showLoader = false;
          })
b0e0491ab   Shikha Mishra   solve the issue o...
843
          .catch((err) => {
710438de6   Shikha Mishra   added teacher mod...
844
845
846
847
848
849
850
851
852
853
854
            this.showLoader = false;
          });
      },
      getClassSubject(_id) {
        this.showLoader = true;
        //   this.classId = this.classId;
        http()
          .get(
            "/getParticularClass",
            { params: { classId: _id } },
            {
b0e0491ab   Shikha Mishra   solve the issue o...
855
              headers: { Authorization: "Bearer " + this.token },
710438de6   Shikha Mishra   added teacher mod...
856
857
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
858
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
859
860
861
            this.subjectList = response.data.data;
            this.showLoader = false;
          })
b0e0491ab   Shikha Mishra   solve the issue o...
862
          .catch((err) => {
710438de6   Shikha Mishra   added teacher mod...
863
864
865
866
867
868
869
870
            this.showLoader = false;
          });
      },
      getTeacherList() {
        this.showLoader = true;
        var token = this.$store.state.token;
        http()
          .get("/getTeachersList", {
b0e0491ab   Shikha Mishra   solve the issue o...
871
            headers: { Authorization: "Bearer " + token },
710438de6   Shikha Mishra   added teacher mod...
872
          })
b0e0491ab   Shikha Mishra   solve the issue o...
873
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
874
875
876
877
            this.teacherList = response.data.data;
            this.showLoader = false;
            // console.log("getTeacherList=====>",this.desserts)
          })
b0e0491ab   Shikha Mishra   solve the issue o...
878
          .catch((error) => {
710438de6   Shikha Mishra   added teacher mod...
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
            this.showLoader = false;
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
          });
      },
      getRoutineList() {
        this.showLoader = true;
        http()
          .get(
            "/getRoutineList",
            {
              params: {
b0e0491ab   Shikha Mishra   solve the issue o...
894
895
896
                classId: this.addRoutineList.classId,
                sectionId: this.addRoutineList.sectionId,
              },
710438de6   Shikha Mishra   added teacher mod...
897
898
            },
            {
b0e0491ab   Shikha Mishra   solve the issue o...
899
              headers: { Authorization: "Bearer " + this.token },
710438de6   Shikha Mishra   added teacher mod...
900
901
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
902
          .then((response) => {
710438de6   Shikha Mishra   added teacher mod...
903
904
            this.routineList = response.data.data;
            this.showLoader = false;
5ceb88b44   Shikha Mishra   added pdf option ...
905
906
            this.showTable = true;
            this.hideTable = false;
710438de6   Shikha Mishra   added teacher mod...
907
          })
b0e0491ab   Shikha Mishra   solve the issue o...
908
          .catch((err) => {
710438de6   Shikha Mishra   added teacher mod...
909
910
911
912
913
914
915
916
917
918
            this.showLoader = false;
          });
      },
      displaySearch() {
        (this.show = false), (this.showSearch = true);
      },
      closeSearch() {
        this.showSearch = false;
        this.show = true;
        this.search = "";
b0e0491ab   Shikha Mishra   solve the issue o...
919
      },
710438de6   Shikha Mishra   added teacher mod...
920
921
922
    },
    mounted() {
      this.token = this.$store.state.token;
710438de6   Shikha Mishra   added teacher mod...
923
924
925
      this.getClass();
      this.getTeacherList();
      this.role = this.$store.state.role;
b0e0491ab   Shikha Mishra   solve the issue o...
926
    },
710438de6   Shikha Mishra   added teacher mod...
927
928
929
930
  };
  </script>
  
  <style scoped>
5ceb88b44   Shikha Mishra   added pdf option ...
931
932
933
934
935
936
937
938
939
940
941
  html,
  body {
    font-family: "OpenSans Regular";
  }
  .box .box-body {
    padding: 15px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
  }
710438de6   Shikha Mishra   added teacher mod...
942
943
944
945
946
  .nav-tabs-custom {
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  }
710438de6   Shikha Mishra   added teacher mod...
947
948
949
950
951
952
953
  .nav-tabs {
    border-bottom: 1px solid #ddd;
  }
  .nav {
    padding-left: 0;
    list-style: none;
  }
5ceb88b44   Shikha Mishra   added pdf option ...
954
955
956
957
958
959
960
961
962
963
964
965
966
  .tab-content > .active {
    display: block;
  }
  .nav-tabs-custom > .nav-tabs > li.active > a {
    border-top: 0;
    border-left-color: #09a3a3;
    border-right-color: #09a3a3;
  }
  .nav-tabs-custom > .nav-tabs {
    background-color: #e5e5e5;
    margin: 0;
    border-bottom-color: #e5e5e5;
  }
710438de6   Shikha Mishra   added teacher mod...
967
968
969
970
  .nav-tabs-custom > .nav-tabs > li:first-of-type {
    margin-left: 0px;
  }
  .nav-tabs-custom > .nav-tabs > li.active {
5ceb88b44   Shikha Mishra   added pdf option ...
971
    border-bottom-color: #09a3a3;
710438de6   Shikha Mishra   added teacher mod...
972
973
  }
  .nav-tabs-custom > .nav-tabs > li {
5ceb88b44   Shikha Mishra   added pdf option ...
974
    border-bottom: 2px solid transparent;
710438de6   Shikha Mishra   added teacher mod...
975
976
977
978
979
980
981
982
983
    border-top: 3px solid transparent;
    margin-bottom: -2px;
    margin-right: 5px;
  }
  .nav-tabs-custom > .nav-tabs > li:first-of-type.active > a {
    border-left-width: 0;
  }
  .nav-tabs-custom > .nav-tabs > li.active > a {
    border-top: 0;
5ceb88b44   Shikha Mishra   added pdf option ...
984
985
986
987
988
989
990
991
992
993
994
    border-bottom-color: #09a3a3;
  }
  .nav-tabs-custom > .nav-tabs > li.active > a,
  .nav-tabs-custom > .nav-tabs > li.active:hover > a {
    background-color: #e5e5e5;
    border: 0px;
    color: #000000db;
  }
  .nav-tabs-custom > .nav-tabs > li > a,
  .nav-tabs-custom > .nav-tabs > li > a:hover {
    border-radius: 0 !important;
710438de6   Shikha Mishra   added teacher mod...
995
996
997
  }
  .nav-tabs-custom > .tab-content {
    background: #fff;
5ceb88b44   Shikha Mishra   added pdf option ...
998
999
1000
1001
1002
1003
1004
    padding: 10px;
  }
  .page-header {
    margin: 10px 0 20px 0;
    padding: 0px 0px 16px;
    font-size: 22px;
    border: none;
710438de6   Shikha Mishra   added teacher mod...
1005
  }
5ceb88b44   Shikha Mishra   added pdf option ...
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
  .table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
  }
  .table > tbody > tr > th,
  .table > tfoot > tr > th,
  .table > tbody > tr > td,
  .table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.428571429;
    vertical-align: top;
    border-top: 1px solid #ddd;
  }
  .nav::before,
  .nav::after {
    display: table;
    content: "";
  }
  .box .box-body .table {
    margin-bottom: 0;
  }
  .table-bordered {
    border: 1px solid #e2e7eb;
  }
  .table-striped > tbody > tr:nth-child(2n + 1) > td,
  .table-striped > tbody > tr:nth-child(2n + 1) > th {
    background-color: #f0f3f5;
  }
  .table-bordered > tbody > v-data-table > template > tr > th,
  .table-bordered > tbody > tr > td {
    border-color: #e2e7eb;
    font-size: 12px;
  }
  .table-bordered > tbody > tr > td {
    color: #707070;
  }
  /*
  .table-bordered > tbody > tr > th,
  .table-bordered > tfoot > tr > th,
  .table-bordered > tbody > tr > td,
  .table-bordered > tfoot > tr > td {
    border: 1px solid #ddd;
  } */
710438de6   Shikha Mishra   added teacher mod...
1050
1051
1052
1053
  .mCustomScrollbar.mCS_no_scrollbar,
  .mCustomScrollbar.mCS_touch_action {
    touch-action: auto;
  }
5ceb88b44   Shikha Mishra   added pdf option ...
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
  .mCSB_scrollTools.mCSB_scrollTools_horizontal {
    width: auto;
    height: 16px;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
  }
  .mCSB_scrollTools {
    opacity: 0.75;
  }
  .mCSB_scrollTools .mCSB_draggerContainer {
    position: absolute;
    height: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger {
    height: 100%;
  }
  .mCSB_scrollTools .mCSB_dragger {
    cursor: pointer;
    z-index: 1;
  }
  .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
    width: 100%;
    height: 4px;
    margin: 6px auto;
  }
  .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: rgba(255, 255, 255, 0.75);
  }
  .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail {
    width: 100%;
    height: 2px;
    margin: 7px 0;
  }
  .mCSB_scrollTools .mCSB_draggerRail {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
710438de6   Shikha Mishra   added teacher mod...
1096
1097
1098
1099
1100
1101
1102
1103
1104
  }
  .mCustomScrollBox {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 100%;
    outline: none;
    direction: ltr;
  }
5ceb88b44   Shikha Mishra   added pdf option ...
1105
  /* .mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden {
710438de6   Shikha Mishra   added teacher mod...
1106
1107
1108
1109
    margin-bottom: 0;
  }
  .mCSB_horizontal.mCSB_inside > .mCSB_container {
    margin-right: 0;
5ceb88b44   Shikha Mishra   added pdf option ...
1110
  } */
710438de6   Shikha Mishra   added teacher mod...
1111
1112
1113
1114
  .mCSB_container {
    overflow: hidden;
    height: auto;
  }
710438de6   Shikha Mishra   added teacher mod...
1115
1116
1117
1118
1119
1120
1121
  
  @media (min-width: 768px) {
    .col-sm-12 {
      width: 100%;
    }
  }
  </style>