Blame view

src/pages/Students/students.vue 103 KB
e3e2a04c6   Neeraj Sharma   first commit
1
  <template>
68d742034   Neeraj Sharma   implement new des...
2
3
    <v-container fluid class="body-color">
      <!-- ****** EDITS  STUDENTS DETAILS ****** -->
db965de89   Amber Dev   added dialog pers...
4
      <v-dialog v-model="editStudentDialog" max-width="1700px" scrollable persistent>
68d742034   Neeraj Sharma   implement new des...
5
6
7
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
3c297e236   Shikha Mishra   remove password v...
8
              <label class="title text-xs-center">Edit Student Details</label>
68d742034   Neeraj Sharma   implement new des...
9
10
11
12
13
14
15
16
17
              <v-icon size="24" class="right" @click="editStudentDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-card-text>
            <v-form ref="form">
              <v-container fluid>
                <v-layout>
                  <v-flex xs12 class="text-xs-center text-sm-center text-md-center text-lg-center">
                    <v-avatar size="100px" v-if="!editedItem.profilePicUrl && !editImageUrl">
11d037abe   Neeraj Sharma   commit code
18
                      <img src="/static/icon/user.png" />
68d742034   Neeraj Sharma   implement new des...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
                    </v-avatar>
                    <img
                      :src="editedItem.profilePicUrl"
                      v-else-if="editedItem.profilePicUrl && !editImageUrl"
                      height="150"
                      style="border-radius:50%; width:150px"
                    />
                    <img
                      v-if="editImageUrl"
                      :src="editImageUrl"
                      style="border-radius:50%; width:150px;height:150px"
                    />
                    <input
                      type="file"
                      style="display: none"
                      ref="editDataImage"
                      accept="image/*"
                      @change="onEditFilePicked"
                    />
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
42
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-select
                          :items="addclass"
                          label="Select Class"
                          v-model="editedItem.select"
                          item-text="classNum"
                          item-value="_id"
                          name="Select Class"
                          @change="getSections(editedItem.select)"
                          required
                        ></v-select>
b82d0d998   Neeraj Sharma   changes and modif...
58
59
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
60
61
                  </v-flex>
                  <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
62
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
63
64
65
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Select Section:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Section:</label>
b82d0d998   Neeraj Sharma   changes and modif...
66
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
                      <v-flex xs8 class="ml-3">
                        <v-select
                          :items="addSection"
                          label="Select Section"
                          v-model="editedItem.selectSection"
                          item-text="name"
                          item-value="_id"
                          name="Select Section"
                          required
                        ></v-select>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label>
b82d0d998   Neeraj Sharma   changes and modif...
85
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
86
87
88
89
90
91
92
93
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.name"
                          placeholder="fill your full Name"
                          name="name"
                          type="text"
                          required
                        ></v-text-field>
b82d0d998   Neeraj Sharma   changes and modif...
94
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
95
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
96
97
98
99
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
506be6fd7   Neeraj Sharma   implemet dyamic i...
100
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
101
102
103
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Email Id:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Email:</label>
b82d0d998   Neeraj Sharma   changes and modif...
104
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          placeholder="fill your email"
                          v-model="editedItem.email"
                          type="text"
                          name="email"
                          required
                        ></v-text-field>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
                        <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label>
b82d0d998   Neeraj Sharma   changes and modif...
121
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
                      <v-flex xs8 class="ml-3">
                        <v-menu
                          ref="menu"
                          :close-on-content-click="false"
                          v-model="menu1"
                          :nudge-right="40"
                          lazy
                          transition="scale-transition"
                          offset-y
                          full-width
                          min-width="290px"
                        >
                          <v-text-field
                            slot="activator"
                            v-model="editedItem.dob"
                            placeholder="Select Dob"
                          ></v-text-field>
                          <v-date-picker
                            ref="picker"
                            v-model="editedItem.dob"
                            :max="new Date().toISOString().substr(0, 10)"
                            min="1950-01-01"
                            @input="menu1 = false"
                          ></v-date-picker>
                        </v-menu>
b82d0d998   Neeraj Sharma   changes and modif...
147
148
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
149
150
                  </v-flex>
                  <v-flex xs12 sm4>
04165779e   Neeraj Sharma   implement parents...
151
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
152
153
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">City:</label>
99ffa9511   Neeraj Sharma   add ,view, and ed...
154
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
155
156
157
158
159
160
161
162
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.city"
                          placeholder="fill your City Name"
                          name="City"
                          type="text"
                          required
                        ></v-text-field>
99ffa9511   Neeraj Sharma   add ,view, and ed...
163
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
                    </v-layout>
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Blood:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.bloodGroup"
                          placeholder="fill your BloodGroup"
                          name="state"
                          type="text"
                          required
                        ></v-text-field>
99ffa9511   Neeraj Sharma   add ,view, and ed...
182
183
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
184
185
                  </v-flex>
                  <v-flex xs12 sm4>
04165779e   Neeraj Sharma   implement parents...
186
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
187
188
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">Gender:</label>
99ffa9511   Neeraj Sharma   add ,view, and ed...
189
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
190
191
192
193
194
195
196
                      <v-flex xs8 class="ml-3">
                        <v-select
                          :items="gender"
                          v-model="editedItem.gender"
                          placeholder="Select Gender"
                          required
                        ></v-select>
99ffa9511   Neeraj Sharma   add ,view, and ed...
197
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
198
199
200
201
202
203
204
205
206
207
208
209
210
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">Medical Notes:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.medicalNotes"
                          placeholder="fill your medicalNotes"
                          required
                        ></v-text-field>
99ffa9511   Neeraj Sharma   add ,view, and ed...
211
212
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
213
214
215
216
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
217
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
218
219
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">Height:</label>
b82d0d998   Neeraj Sharma   changes and modif...
220
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
221
222
223
224
225
226
227
228
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.height"
                          placeholder="fill your Height"
                          name="state"
                          type="text"
                          required
                        ></v-text-field>
b82d0d998   Neeraj Sharma   changes and modif...
229
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
230
231
232
233
234
235
236
237
238
239
240
241
242
243
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">Weight:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.weight"
                          placeholder="fill your Weight"
                          name="pincode"
                          required
                        ></v-text-field>
b82d0d998   Neeraj Sharma   changes and modif...
244
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
245
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
246
247
                  </v-flex>
                  <v-flex xs12 sm4>
506be6fd7   Neeraj Sharma   implemet dyamic i...
248
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
249
250
251
252
253
254
255
256
257
258
259
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          label="Select Image"
                          @click="pickEditFile"
                          v-model="editImageName"
                          append-icon="attach_file"
                        ></v-text-field>
99ffa9511   Neeraj Sharma   add ,view, and ed...
260
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
261
262
263
264
265
266
267
268
                    </v-layout>
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">State:</label>
af4cbc7be   Neeraj Sharma   add field roll nu...
269
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
270
271
272
273
274
275
276
277
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.state"
                          placeholder="fill your State Name"
                          name="state"
                          type="text"
                          required
                        ></v-text-field>
aa8fc5033   Neeraj Sharma   implenment all pa...
278
                      </v-flex>
0721aca93   Neeraj Sharma   solve bugs in sub...
279
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
280
281
282
283
284
285
286
287
288
289
290
291
292
293
                  </v-flex>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right">Pincode:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.pincode"
                          placeholder="fill your pincode"
                          name="pincode"
                          type="number"
                          required
                        ></v-text-field>
aa8fc5033   Neeraj Sharma   implenment all pa...
294
295
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
296
                  </v-flex>
c29ba4fbb   Amber Dev   added country codes
297
                  <!-- EDIT DETAILS - MOBILE NUMBER -->
68d742034   Neeraj Sharma   implement new des...
298
299
300
301
302
303
304
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
c29ba4fbb   Amber Dev   added country codes
305
306
307
308
309
310
311
312
313
314
315
316
317
318
                        <v-layout row wrap>
                          <v-flex xs3 class="mt-3">
                            <vue-country-code @onSelect="editStudentMobileCode" class="black--text"></vue-country-code>
                          </v-flex>
                          <v-flex xs9>
                            <v-text-field
                              v-model="editedItem.mobile"
                              placeholder="fill your MobileNo"
                              name="mobileNo"
                              type="number"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
68d742034   Neeraj Sharma   implement new des...
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
                      </v-flex>
                    </v-layout>
                  </v-flex>
                </v-layout>
                <v-layout wrap>
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Select Country:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-autocomplete
                          v-model="editedItem.country"
                          :items="countries"
                          placeholder="Select Country Name"
                          required
                        ></v-autocomplete>
                      </v-flex>
                    </v-layout>
                  </v-flex>
11797ea5a   Shikha Mishra   added password field
340
                  <v-flex xs12 sm4 class="hidden-xs-only hidden-sm-only">
68d742034   Neeraj Sharma   implement new des...
341
342
343
344
345
346
347
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Roll No:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
68d742034   Neeraj Sharma   implement new des...
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
                          v-model="editedItem.rollNo"
                          placeholder="fill roll number"
                          required
                        ></v-text-field>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm4 class="hidden-xs-only hidden-sm-only">
                    <v-layout>
                      <v-flex xs4 sm4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Permanent Address:</label>
                        <label
                          class="right hidden-lg-only hidden-md-only hidden-xl-only"
                        >Permanent Address:</label>
                      </v-flex>
                      <v-flex xs12 sm8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.permanentAddress"
                          placeholder="fill Your Permanent Address"
                          required
                        ></v-text-field>
aa8fc5033   Neeraj Sharma   implenment all pa...
369
                      </v-flex>
68d742034   Neeraj Sharma   implement new des...
370
371
372
                    </v-layout>
                  </v-flex>
                </v-layout>
11d037abe   Neeraj Sharma   commit code
373
                <v-layout class="hidden-xs-only hidden-sm-only">
68d742034   Neeraj Sharma   implement new des...
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
                  <v-flex xs12 sm4>
                    <v-layout>
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Present Address:</label>
                        <label
                          class="right hidden-lg-only hidden-md-only hidden-xl-only"
                        >Present Address:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.presentAddress"
                          placeholder="Select Country Name"
                          required
                        ></v-text-field>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                </v-layout>
                <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
                  <v-flex xs12 sm12>
                    <v-layout>
11797ea5a   Shikha Mishra   added password field
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
                      <v-flex xs4 class="pt-4 subheading">
                        <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
                        <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Roll No:</label>
                      </v-flex>
                      <v-flex xs8 class="ml-3">
                        <v-text-field
                          v-model="editedItem.rollNo"
                          placeholder="fill roll number"
                          required
                        ></v-text-field>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                </v-layout>
                <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
                  <v-flex xs12 sm12>
                    <v-layout>
68d742034   Neeraj Sharma   implement new des...
412
413
414
415
416
                      <v-flex xs12 sm3 class="pt-4 subheading text-xs-center">
                        <label class>Present Address :</label>
                      </v-flex>
                    </v-layout>
                    <v-layout>
aa8fc5033   Neeraj Sharma   implenment all pa...
417
                      <v-flex xs12 sm12>
68d742034   Neeraj Sharma   implement new des...
418
419
420
421
422
423
424
425
426
427
428
429
                        <v-textarea
                          v-model="editedItem.presentAddress"
                          placeholder="fill Your present Address"
                          required
                        ></v-textarea>
                      </v-flex>
                    </v-layout>
                  </v-flex>
                  <v-flex xs12 sm12>
                    <v-layout>
                      <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm">
                        <label>Permanent addr:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
430
                      </v-flex>
b82d0d998   Neeraj Sharma   changes and modif...
431
432
433
                    </v-layout>
                    <v-layout>
                      <v-flex xs12 sm12>
68d742034   Neeraj Sharma   implement new des...
434
435
436
437
438
439
                        <v-textarea
                          name="input-4-3"
                          v-model="editedItem.permanentAddress"
                          placeholder="fill Your Permanent Address"
                          required
                        ></v-textarea>
b82d0d998   Neeraj Sharma   changes and modif...
440
441
                      </v-flex>
                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
442
443
444
445
446
447
448
449
450
451
452
453
454
455
                  </v-flex>
                </v-layout>
                <v-layout>
                  <v-flex xs12 sm12>
                    <v-layout class="right">
                      <v-btn @click="save" round dark :loading="editLoading" class="add-button">Save</v-btn>
                    </v-layout>
                  </v-flex>
                </v-layout>
              </v-container>
            </v-form>
          </v-card-text>
        </v-card>
      </v-dialog>
04165779e   Neeraj Sharma   implement parents...
456

68d742034   Neeraj Sharma   implement new des...
457
      <!-- ****** PROFILE VIEW STUDENTS DEATILS ******  -->
04165779e   Neeraj Sharma   implement parents...
458

db965de89   Amber Dev   added dialog pers...
459
      <v-dialog v-model="profileStudentDialog" max-width="1000px" scrollable persistent>
68d742034   Neeraj Sharma   implement new des...
460
461
462
        <v-card flat class="card-style pa-3" dark>
          <v-layout>
            <v-flex xs12>
3c297e236   Shikha Mishra   remove password v...
463
              <label class="title text-xs-center">View Student Details</label>
68d742034   Neeraj Sharma   implement new des...
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
              <v-icon size="24" class="right" @click="profileStudentDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-card-text>
            <v-flex align-center justify-center layout text-xs-center class="mt-3">
              <v-avatar size="100px">
                <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" />
                <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" />
              </v-avatar>
            </v-flex>
            <v-container grid-list-md>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <h5 class="right my-1">
                        <b>Full Name:</b>
                      </h5>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1 left">{{ editedItem.name }}</h5>
                    </v-flex>
                  </v-layout>
04165779e   Neeraj Sharma   implement parents...
487
                </v-flex>
68d742034   Neeraj Sharma   implement new des...
488
489
490
491
492
493
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <h5 class="right my-1">
                        <b>Email:</b>
                      </h5>
f4df757fe   Neeraj Sharma   responsive vie in...
494
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
495
496
                    <v-flex sm8 xs6>
                      <h5 class="my-1 left">{{ editedItem.email }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
497
498
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
499
500
501
502
503
504
505
506
507
508
509
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>Gender:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
510
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
511
512
                    <v-flex sm6 xs6>
                      <h5 class="my-1 left">{{ editedItem.gender }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
513
514
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
515
516
517
518
519
520
521
522
523
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>D.O.B:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
524
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
525
                    <v-flex sm8 xs6>
080d88547   Shikha Mishra   issues solved
526
                      <h5 class="my-1">{{ dates(editedItem.dob) }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
527
528
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
529
530
531
532
533
534
535
536
537
538
539
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>BloodGroup:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
540
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
541
542
                    <v-flex sm6 xs6>
                      <h5 class="my-1 left">{{ editedItem.bloodGroup }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
543
544
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
545
546
547
548
549
550
551
552
553
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>Roll No. :</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
554
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
555
556
                    <v-flex sm8 xs6>
                      <h5 class="my-1">{{ editedItem.rollNo }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
557
558
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
559
560
561
562
563
564
565
566
567
568
569
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>Height:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
570
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
571
572
                    <v-flex sm6 xs6>
                      <h5 class="my-1 left">{{ editedItem.height }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
573
574
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
575
576
577
578
579
580
581
582
583
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>Weight:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
584
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
585
586
                    <v-flex sm8 xs6>
                      <h5 class="my-1">{{ editedItem.weight }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
587
588
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
589
590
591
592
593
594
595
596
597
598
599
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>City:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
600
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
601
602
                    <v-flex sm6 xs6>
                      <h5 class="my-1 left">{{ editedItem.city }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
603
604
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
605
606
607
608
609
610
611
612
613
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>State:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
614
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
                    <v-flex sm8 xs6>
                      <h5 class="my-1">{{ editedItem.state }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>Pincode:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1">{{ editedItem.pincode }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>Country:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm7 xs6>
                      <h5 class="my-1">{{ editedItem.country }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex sm6 xs6>
                      <b>
                        <h5 class="right my-1">
                          <b>Mobile No:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1">{{ editedItem.mobile }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>FahterName:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm8 xs6>
                      <h5 class="my-1">{{ editedItem.fatherName }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>MotherName:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1">{{ editedItem.motherName }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="right my-1">
                          <b>FatherCellNo:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1">{{ editedItem.fatherCellNo }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
707
708
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="right my-1">
                          <b>MotherCellNo:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs6>
                      <h5 class="my-1">{{ editedItem.motherCellNo }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm7>
                  <v-layout>
                    <v-flex xs6 sm4>
                      <b>
                        <h5 class="my-1 right">
                          <b>AcademicYear:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm5 xs8>
                      <h5 class="my-1">{{ editedItem.establishmentYear }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
              </v-layout>
              <v-layout wrap>
                <v-flex xs12 sm5>
                  <v-layout>
                    <v-flex xs6 sm6>
                      <b>
                        <h5 class="my-1 right">
                          <b>MedicalNotes:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm5 xs6>
                      <h5 class="my-1">{{ editedItem.medicalNotes }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm7 class="hidden-xs-only">
f4df757fe   Neeraj Sharma   responsive vie in...
757
                  <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
758
759
760
761
762
763
                    <v-flex sm4>
                      <b>
                        <h5 class="my-1 right">
                          <b>present Address:</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
764
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
765
766
                    <v-flex sm8>
                      <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
767
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
768
769
770
771
772
773
774
775
776
777
778
779
780
                  </v-layout>
                </v-flex>
                <v-flex sm6 class="hidden-xs-only">
                  <v-layout wrap>
                    <v-flex sm5>
                      <b>
                        <h5 class="my-1 right">
                          <b>Permanent Address:</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm7>
                      <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
f4df757fe   Neeraj Sharma   responsive vie in...
781
782
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
783
784
785
786
787
788
789
790
791
792
793
                </v-flex>
              </v-layout>
              <v-layout wrap class="hidden-sm-only hidden-md-only hidden-lg-only hidden-xl-only">
                <v-flex xs12 sm5>
                  <v-layout wrap>
                    <v-flex xs12 sm6>
                      <b>
                        <h5 class="my-1">
                          <b>present Address:-</b>
                        </h5>
                      </b>
f4df757fe   Neeraj Sharma   responsive vie in...
794
                    </v-flex>
68d742034   Neeraj Sharma   implement new des...
795
796
797
798
799
800
801
                    <v-flex sm5 xs12>
                      <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
                <v-flex xs12 sm6>
                  <v-layout wrap>
f4df757fe   Neeraj Sharma   responsive vie in...
802
                    <v-flex xs12 sm6>
68d742034   Neeraj Sharma   implement new des...
803
804
805
806
807
808
809
810
                      <b>
                        <h5 class="my-1">
                          <b>Permanent Address:-</b>
                        </h5>
                      </b>
                    </v-flex>
                    <v-flex sm6 xs12>
                      <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
04165779e   Neeraj Sharma   implement parents...
811
812
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
813
814
815
816
817
818
                </v-flex>
              </v-layout>
            </v-container>
          </v-card-text>
        </v-card>
      </v-dialog>
04165779e   Neeraj Sharma   implement parents...
819

68d742034   Neeraj Sharma   implement new des...
820
821
822
823
824
825
826
827
828
829
830
831
      <!-- ****** STUDENTS TABLE ****** -->
      <v-toolbar color="transparent" flat>
        <v-btn
          fab
          dark
          class="open-dialog-button hidden-xl-only hidden-md-only hidden-lg-only"
          small
          @click="addStudentDialog = true"
        >
          <v-icon dark>add</v-icon>
        </v-btn>
        <v-btn
710438de6   Shikha Mishra   added teacher mod...
832
          v-if="role != 'TEACHER' "
68d742034   Neeraj Sharma   implement new des...
833
834
835
836
837
838
839
840
          round
          class="open-dialog-button hidden-sm-only hidden-xs-only"
          dark
          @click="addStudentDialog = true"
        >
          <v-icon class="white--text pr-1" size="20">add</v-icon>Add Student
        </v-btn>
        <v-card-actions class="hidden-xs-only hidden-sm-only">
67a276510   Shikha Mishra   fixed all bugs
841
          <v-flex md13 lg12>
68d742034   Neeraj Sharma   implement new des...
842
            <v-layout>
67a276510   Shikha Mishra   fixed all bugs
843
              <v-flex lg3 md4>
04165779e   Neeraj Sharma   implement parents...
844
845
846
847
848
849
850
851
852
                <v-select
                  :items="addclass"
                  label="Select Class"
                  v-model="selectStudents.select"
                  item-text="classNum"
                  item-value="_id"
                  name="Select Class"
                  :rules="classRules"
                  @change="getSections(selectStudents.select)"
04165779e   Neeraj Sharma   implement parents...
853
                  required
68d742034   Neeraj Sharma   implement new des...
854
                  class="ml-2"
04165779e   Neeraj Sharma   implement parents...
855
                ></v-select>
68d742034   Neeraj Sharma   implement new des...
856
              </v-flex>
67a276510   Shikha Mishra   fixed all bugs
857
              <v-flex lg3 md4 class="ml-2">
68d742034   Neeraj Sharma   implement new des...
858
                <v-layout>
aa8fc5033   Neeraj Sharma   implenment all pa...
859
860
861
862
863
864
865
                  <v-select
                    :items="addSection"
                    label="Select Section"
                    v-model="selectStudents.selectSection"
                    item-text="name"
                    item-value="_id"
                    name="Select Section"
aa8fc5033   Neeraj Sharma   implenment all pa...
866
867
                    required
                  ></v-select>
68d742034   Neeraj Sharma   implement new des...
868
869
870
871
872
873
                </v-layout>
              </v-flex>
            </v-layout>
          </v-flex>
        </v-card-actions>
        <v-spacer></v-spacer>
11d037abe   Neeraj Sharma   commit code
874
875
876
877
878
        <v-btn
          @click="findStudents()"
          round
          dark
          :loading="loading"
b0e0491ab   Shikha Mishra   solve the issue o...
879
          class="open-dialog-button hidden-xs-only hidden-sm-only"
11d037abe   Neeraj Sharma   commit code
880
        >Find</v-btn>
68d742034   Neeraj Sharma   implement new des...
881
882
883
        <v-card-title class="body-1" v-show="show">
          <v-btn icon large flat @click="displaySearch">
            <v-avatar size="27">
aa310d61a   Shikha Mishra   added functionali...
884
              <img src="/static/icon/search.png" alt="icon" />
68d742034   Neeraj Sharma   implement new des...
885
886
887
            </v-avatar>
          </v-btn>
        </v-card-title>
612b79bb4   Amber Dev   made serch auto f...
888
        <v-flex xs8 sm7 lg2 md3 v-if="showSearch">
68d742034   Neeraj Sharma   implement new des...
889
          <v-layout>
ac6f8f44b   Amber Dev   reset student form
890
891
892
893
894
895
896
            <v-text-field
              autofocus
              v-model="search"
              label="Search"
              prepend-inner-icon="search"
              color="primary"
            ></v-text-field>
68d742034   Neeraj Sharma   implement new des...
897
898
899
900
901
902
903
904
905
            <v-icon @click="closeSearch" color="error">close</v-icon>
          </v-layout>
        </v-flex>
      </v-toolbar>
      <v-card flat class="elevation-0 transparent">
        <v-flex class="hidden-xl-only hidden-lg-only hidden-md-only">
          <v-layout>
            <v-flex xs4>
              <label class="right mt-4">Select Class:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
906
            </v-flex>
68d742034   Neeraj Sharma   implement new des...
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
            <v-flex xs8>
              <v-select
                :items="addclass"
                label="Select Class"
                v-model="selectStudents.select"
                item-text="classNum"
                item-value="_id"
                name="Select Class"
                :rules="classRules"
                @change="getSections(selectStudents.select)"
                class="px-2"
              ></v-select>
            </v-flex>
          </v-layout>
          <v-layout>
            <v-flex xs4>
              <label class="right mt-4">Select Section:</label>
            </v-flex>
            <v-flex xs8>
              <v-select
                :items="addSection"
                label="Select Section"
                v-model="selectStudents.selectSection"
                item-text="name"
                item-value="_id"
                name="Select Section"
                :rules="sectionRules"
                class="px-2"
                required
              ></v-select>
            </v-flex>
          </v-layout>
          <v-layout>
            <v-flex xs5 class="mx-auto mb-2">
11d037abe   Neeraj Sharma   commit code
941
942
943
944
945
946
947
948
              <v-btn
                @click="findStudents()"
                block
                round
                dark
                :loading="loading"
                class="add-button"
              >Find</v-btn>
68d742034   Neeraj Sharma   implement new des...
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
            </v-flex>
          </v-layout>
        </v-flex>
      </v-card>
      <v-data-table
        :headers="headers"
        :items="studentsData"
        :pagination.sync="pagination"
        :search="search"
      >
        <template slot="items" slot-scope="props">
          <tr class="tr">
            <td class="text-xs-center td td-row">{{ props.item.rollNo}}</td>
            <td class="text-xs-center td td-row">
              <v-avatar size="40">
                <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" />
                <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" />
              </v-avatar>
            </td>
            <td class="text-xs-center td td-row">{{ props.item.name}}</td>
            <td class="text-xs-center td td-row">{{ props.item.gender }}</td>
7014df603   Shikha Mishra   Improve placehold...
970
971
972
973
974
975
            <td
              class="text-xs-center td td-row"
            >{{ props.item.parentId ? props.item.parentId.fatherName: '-' }}</td>
            <td
              class="text-xs-center td td-row"
            >{{ props.item.parentId ? props.item.parentId.motherName: '-' }}</td>
68d742034   Neeraj Sharma   implement new des...
976
            <td class="text-xs-center td td-row">{{ props.item.establishmentYear }}</td>
c8fc8e42e   Shikha Mishra   solved issues
977
            <!-- <td class="text-xs-center td td-row">{{ props.item.mobile}}</td> -->
68d742034   Neeraj Sharma   implement new des...
978
979
980
            <td class="text-xs-center td td-row">
              <v-switch
                class="pl-3"
b0e0491ab   Shikha Mishra   solve the issue o...
981
                :disabled="role === 'TEACHER'"
68d742034   Neeraj Sharma   implement new des...
982
983
984
985
986
987
988
989
990
991
992
993
                v-model="props.item.status"
                @change="suspendStudentStatus(props.item.status,props.item._id)"
              ></v-switch>
            </td>
            <td class="text-xs-center td td-row">
              <span>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:25px; height:25px; "
                    class="mr-3"
                    @click="profile(props.item)"
aa310d61a   Shikha Mishra   added functionali...
994
                    src="/static/icon/view.png"
68d742034   Neeraj Sharma   implement new des...
995
996
997
                  />
                  <span>View</span>
                </v-tooltip>
11d037abe   Neeraj Sharma   commit code
998
                <v-tooltip top v-if="role != 'TEACHER' ">
68d742034   Neeraj Sharma   implement new des...
999
1000
1001
1002
1003
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:18px; "
                    class="mr-3"
                    @click="editItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
1004
                    src="/static/icon/edit.png"
68d742034   Neeraj Sharma   implement new des...
1005
1006
1007
                  />
                  <span>Edit</span>
                </v-tooltip>
11d037abe   Neeraj Sharma   commit code
1008
                <v-tooltip top v-if="role != 'TEACHER' ">
68d742034   Neeraj Sharma   implement new des...
1009
1010
1011
1012
1013
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:20px; "
                    class="mr-3"
                    @click="deleteItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
1014
                    src="/static/icon/delete.png"
68d742034   Neeraj Sharma   implement new des...
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
                  />
                  <span>Delete</span>
                </v-tooltip>
              </span>
            </td>
          </tr>
        </template>
        <v-alert
          slot="no-results"
          :value="true"
          color="error"
          icon="warning"
        >Your search for "{{ search }}" found no results.</v-alert>
      </v-data-table>
ac6f8f44b   Amber Dev   reset student form
1029
      <!-- DIALOG -- ADD STUDENTS DETAILS -->
db965de89   Amber Dev   added dialog pers...
1030
      <v-dialog v-model="addStudentDialog" max-width="1280" v-if="addStudentDialog" persistent>
68d742034   Neeraj Sharma   implement new des...
1031
1032
1033
1034
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">Add Student</label>
ac6f8f44b   Amber Dev   reset student form
1035
1036
1037
1038
1039
              <v-icon
                size="24"
                class="right"
                @click="$refs.parentForm.reset();$refs.parentFormLgScr.reset();$refs.form.reset();e2 = 1;addStudentDialog = false"
              >cancel</v-icon>
68d742034   Neeraj Sharma   implement new des...
1040
1041
            </v-flex>
          </v-layout>
04165779e   Neeraj Sharma   implement parents...
1042
          <v-container fluid>
68d742034   Neeraj Sharma   implement new des...
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
            <v-layout align-center>
              <v-flex xs12>
                <v-stepper v-model="e2" flat class="card-style elevation-0" dark>
                  <v-stepper-header>
                    <v-stepper-step :complete="e2 > 1" step="1">Fill parent Details</v-stepper-step>
                    <v-divider></v-divider>
                    <v-stepper-step step="2">Fill Student Details</v-stepper-step>
                  </v-stepper-header>
                  <v-stepper-items>
                    <v-stepper-content step="1">
                      <v-container fluid class>
                        <v-flex xs12 sm12 class="hidden-md-only hidden-lg-only hidden-xl-only">
                          <v-form ref="parentForm" v-model="valid" lazy-validation>
                            <v-layout wrap>
                              <v-flex xs12 sm6>
0a7184bf8   Amber Dev   added internation...
1058
                                <!-- FATHER CELL NUMBER visible only on xs and sm screen -->
acab5c7cb   Neeraj Sharma   responsive design...
1059
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1060
1061
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Father Cell No:</label>
acab5c7cb   Neeraj Sharma   responsive design...
1062
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1063
                                  <v-flex xs12>
0a7184bf8   Amber Dev   added internation...
1064
1065
                                    <v-layout row wrap xs12>
                                      <v-flex sm3 class="mt-3">
c29ba4fbb   Amber Dev   added country codes
1066
1067
1068
1069
                                        <vue-country-code
                                          @onSelect="addFatherCellCode"
                                          class="black--text"
                                        ></vue-country-code>
0a7184bf8   Amber Dev   added internation...
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
                                      </v-flex>
  
                                      <v-flex sm9>
                                        <v-text-field
                                          v-model.trim="parentData.fatherCellNo"
                                          placeholder="fill your father Cell Number"
                                          type="number"
                                          :rules="fatheCellNoRules"
                                          counter="10"
                                          v-on:keyup="getParentDetails()"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
acab5c7cb   Neeraj Sharma   responsive design...
1084
1085
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1086
1087
                              </v-flex>
                              <v-flex xs12 sm6>
acab5c7cb   Neeraj Sharma   responsive design...
1088
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1089
1090
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Parent Email Id:</label>
acab5c7cb   Neeraj Sharma   responsive design...
1091
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1092
1093
1094
1095
1096
1097
1098
                                  <v-flex xs12>
                                    <v-text-field
                                      placeholder="fill Parent email"
                                      v-model="parentData.email"
                                      type="text"
                                      required
                                    ></v-text-field>
acab5c7cb   Neeraj Sharma   responsive design...
1099
1100
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1101
1102
1103
1104
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
                              <v-flex xs12 sm6>
acab5c7cb   Neeraj Sharma   responsive design...
1105
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1106
1107
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Father Name:</label>
acab5c7cb   Neeraj Sharma   responsive design...
1108
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1109
1110
1111
1112
1113
1114
                                  <v-flex xs12>
                                    <v-text-field
                                      v-model="parentData.fatherName"
                                      placeholder="Fill your father Name"
                                      required
                                    ></v-text-field>
acab5c7cb   Neeraj Sharma   responsive design...
1115
1116
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1117
1118
                              </v-flex>
                              <v-flex xs12 sm6>
acab5c7cb   Neeraj Sharma   responsive design...
1119
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Mother Name:</label>
                                  </v-flex>
                                  <v-flex xs12>
                                    <v-text-field
                                      v-model="parentData.motherName"
                                      placeholder="fill your Mother Name"
                                      type="text"
                                      required
                                    ></v-text-field>
acab5c7cb   Neeraj Sharma   responsive design...
1130
1131
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1132
1133
1134
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
0a7184bf8   Amber Dev   added internation...
1135
                              <!-- MOTHER CELL NUMBER - VISIBLE ONLY ON xs and sm screen-->
68d742034   Neeraj Sharma   implement new des...
1136
                              <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
1137
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1138
1139
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Mother Cell No:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1140
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1141
                                  <v-flex xs12>
0a7184bf8   Amber Dev   added internation...
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
                                    <v-layout row wrap>
                                      <v-flex sm3 class="mt-3">
                                        <vue-country-code @onSelect="onSelect" class="black--text"></vue-country-code>
                                      </v-flex>
                                      <v-flex sm9>
                                        <v-text-field
                                          v-model="parentData.motherCellNo"
                                          placeholder="Mother Cell Number"
                                          type="number"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
aa8fc5033   Neeraj Sharma   implenment all pa...
1155
1156
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1157
1158
                              </v-flex>
                              <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
1159
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1160
1161
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Father Profession:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1162
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1163
1164
1165
1166
1167
                                  <v-flex xs12>
                                    <v-text-field
                                      v-model="parentData.fatherProfession"
                                      placeholder="fill your father profession"
                                    ></v-text-field>
aa8fc5033   Neeraj Sharma   implenment all pa...
1168
1169
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1170
1171
1172
1173
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
                              <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
1174
                                <v-layout wrap>
68d742034   Neeraj Sharma   implement new des...
1175
1176
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Mother Profession:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1177
                                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
1178
1179
1180
1181
1182
                                  <v-flex xs12>
                                    <v-text-field
                                      v-model="parentData.motherProfession"
                                      placeholder="fill your mother profession"
                                    ></v-text-field>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1183
1184
                                  </v-flex>
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1185
                              </v-flex>
11797ea5a   Shikha Mishra   added password field
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
                              <v-flex xs12 sm6>
                                <v-layout wrap>
                                  <v-flex xs12 class="pt-4 subheading">
                                    <label>Password:</label>
                                  </v-flex>
                                  <v-flex xs12>
                                    <v-text-field
                                      v-model="parentData.password"
                                      placeholder="Enter Your Password"
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
68d742034   Neeraj Sharma   implement new des...
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
                            </v-layout>
                            <v-flex sm12 class="hidden-xs-only">
                              <v-card-actions>
                                <v-spacer></v-spacer>
                                <v-btn
                                  @click="submitParentDetails"
                                  round
                                  dark
                                  :loading="loading"
                                  v-show="showParent"
                                  class="add-button"
                                >Add</v-btn>
                                <v-btn
                                  v-show="showNext"
                                  @click="e2 = 2"
                                  round
                                  dark
                                  class="add-button"
                                >Next</v-btn>
                              </v-card-actions>
                            </v-flex>
                            <v-flex
                              xs6
                              class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2"
                            >
                              <v-btn
                                @click="submitParentDetails"
                                round
                                dark
                                :loading="loading"
                                v-show="showParent"
                                class="add-button"
                              >Add</v-btn>
                              <v-btn
                                v-show="showNext"
                                @click="e2 = 2"
                                round
                                dark
                                class="add-button"
                              >Next</v-btn>
                            </v-flex>
                          </v-form>
                        </v-flex>
0a7184bf8   Amber Dev   added internation...
1242
                        <!-- FATHER CELL NUMBER - HIDDEN xs and sm screen -->
68d742034   Neeraj Sharma   implement new des...
1243
                        <v-flex xs12 sm12 class="hidden-xs-only hidden-sm-only">
ac6f8f44b   Amber Dev   reset student form
1244
                          <v-form ref="parentFormLgScr" v-model="valid" lazy-validation>
68d742034   Neeraj Sharma   implement new des...
1245
1246
1247
1248
1249
1250
1251
                            <v-layout wrap>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Father Cell No:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
0a7184bf8   Amber Dev   added internation...
1252
1253
                                    <v-layout row wrap>
                                      <v-flex md3 class="mt-3">
c29ba4fbb   Amber Dev   added country codes
1254
1255
1256
1257
                                        <vue-country-code
                                          @onSelect="addFatherCellCode"
                                          class="black--text"
                                        ></vue-country-code>
0a7184bf8   Amber Dev   added internation...
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
                                      </v-flex>
                                      <v-flex md9>
                                        <v-text-field
                                          v-model.trim="parentData.fatherCellNo"
                                          placeholder="fill your father Cell Number"
                                          type="number"
                                          :rules="fatheCellNoRules"
                                          counter="10"
                                          required
                                          v-on:keyup="getParentDetails()"
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
                                  </v-flex>
                                </v-layout>
                              </v-flex>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Parent Email Id:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      placeholder="fill Parent email"
                                      v-model="parentData.email"
                                      type="text"
                                      required
                                    ></v-text-field>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1286
                                  </v-flex>
aa8fc5033   Neeraj Sharma   implenment all pa...
1287
                                </v-layout>
68d742034   Neeraj Sharma   implement new des...
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Father Name:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      v-model="parentData.fatherName"
                                      placeholder="Fill your father Name"
                                      required
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Mother Name:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      v-model="parentData.motherName"
                                      placeholder="fill your Mother Name"
                                      type="text"
                                      required
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
0a7184bf8   Amber Dev   added internation...
1322
                              <!-- MOTHER CELL NUMBER HIDDEN ON xs and sm screen -->
68d742034   Neeraj Sharma   implement new des...
1323
1324
1325
1326
1327
1328
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Mother Cell No:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
0a7184bf8   Amber Dev   added internation...
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
                                    <v-layout row wrap>
                                      <v-flex md3 class="mt-3">
                                        <vue-country-code @onSelect="onSelect" class="black--text"></vue-country-code>
                                      </v-flex>
                                      <v-flex md9>
                                        <v-text-field
                                          v-model="parentData.motherCellNo"
                                          placeholder="fill your  Mother Cell Number"
                                          type="number"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
68d742034   Neeraj Sharma   implement new des...
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
                                  </v-flex>
                                </v-layout>
                              </v-flex>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Father Profession:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      v-model="parentData.fatherProfession"
                                      placeholder="fill your father profession"
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
                            </v-layout>
                            <v-layout wrap>
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Mother Profession:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      v-model="parentData.motherProfession"
                                      placeholder="fill your mother profession"
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
11797ea5a   Shikha Mishra   added password field
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
                              <v-flex xs12 sm6>
                                <v-layout>
                                  <v-flex xs4 class="pt-4 subheading">
                                    <label class="right">Password:</label>
                                  </v-flex>
                                  <v-flex xs8 class="ml-3">
                                    <v-text-field
                                      :append-icon="e1 ? 'visibility_off' : 'visibility'"
                                      :append-icon-cb="() => (e1 = !e1)"
                                      :type="e1 ? 'password' : 'text'"
                                      :rules="password"
d5fcb1cd1   Shikha Mishra   issues resolved
1384
                                      v-model="parentData.password"
11797ea5a   Shikha Mishra   added password field
1385
                                      placeholder="Enter Your Password"
5d5315b0f   Shikha Mishra   close add-notific...
1386
                                      :disabled="isFatherCellExists"
11797ea5a   Shikha Mishra   added password field
1387
1388
1389
1390
1391
                                      required
                                    ></v-text-field>
                                  </v-flex>
                                </v-layout>
                              </v-flex>
68d742034   Neeraj Sharma   implement new des...
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
                            </v-layout>
                            <v-flex sm12 class="hidden-xs-only">
                              <v-card-actions>
                                <v-spacer></v-spacer>
                                <v-btn
                                  @click="submitParentDetails"
                                  round
                                  dark
                                  :loading="loading"
                                  v-show="showParent"
                                  class="add-button"
                                >Add</v-btn>
                                <v-btn
                                  v-show="showNext"
                                  @click="e2 = 2"
                                  round
                                  dark
                                  class="add-button"
                                >Next</v-btn>
                              </v-card-actions>
                            </v-flex>
                            <v-flex
                              xs6
                              class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2"
                            >
                              <v-btn
                                @click="submitParentDetails"
                                round
                                dark
                                :loading="loading"
                                v-show="showParent"
                                class="add-button"
                              >Add</v-btn>
                              <v-btn
                                v-show="showNext"
                                @click="e2 = 2"
                                round
                                dark
                                class="add-button"
                              >Next</v-btn>
                            </v-flex>
                          </v-form>
                        </v-flex>
                      </v-container>
                    </v-stepper-content>
                    <v-stepper-content step="2">
                      <v-flex xs12 sm12>
                        <v-form ref="form" v-model="valid" lazy-validation>
                          <v-layout>
                            <v-flex
                              xs12
                              class="text-xs-center text-sm-center text-md-center text-lg-center"
                            >
                              <v-avatar size="100px">
                                <img src="/static/icon/user.png" v-if="!imageUrl" />
                              </v-avatar>
                              <input
                                type="file"
                                style="display: none"
                                ref="image"
                                accept="image/*"
                                @change="onFilePicked"
                              />
                              <img
                                :src="imageData.imageUrl"
                                height="150"
                                v-if="imageUrl"
                                style="border-radius:50%; width:200px"
                              />
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex x4 sm4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Class:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1471
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
                                <v-flex xs8 sm8 class="ml-3">
                                  <v-select
                                    :items="addclass"
                                    label="Select Class"
                                    v-model="addStudents.select"
                                    item-text="classNum"
                                    item-value="_id"
                                    name="Select Class"
                                    :rules="classRules"
                                    @change="getSection(addStudents.select)"
                                    required
                                  ></v-select>
f4df757fe   Neeraj Sharma   responsive vie in...
1484
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1485
                              </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
1486
                            </v-flex>
68d742034   Neeraj Sharma   implement new des...
1487
                            <v-flex xs12 sm6>
0551a0f15   Neeraj Sharma   implemnet functio...
1488
                              <v-layout>
68d742034   Neeraj Sharma   implement new des...
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Select Section:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Section:</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-select
                                    :items="addSection"
                                    label="Select Section"
                                    v-model="addStudents.selectSection"
                                    item-text="name"
                                    item-value="_id"
                                    name="Select Section"
                                    :rules="sectionRules"
                                    required
                                  ></v-select>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Name:</label>
                                </v-flex>
                                <v-flex xs8 sm8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.name"
                                    placeholder="fill your full Name"
                                    name="name"
                                    type="text"
                                    :rules="nameRules"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1528
1529
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1530
1531
1532
1533
1534
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading">
                                  <label class="right">Email:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1535
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1536
1537
1538
1539
1540
1541
1542
1543
                                <v-flex xs8 sm8 class="ml-3">
                                  <v-text-field
                                    placeholder="fill your email"
                                    v-model="addStudents.email"
                                    type="text"
                                    name="email"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1544
1545
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading">
                                  <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
                                  <label
                                    class="right hidden-lg-only hidden-xl-only hidden-md-only"
                                  >D.O.B:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1556
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
                                <v-flex xs8 sm8 class="ml-3">
                                  <v-menu
                                    ref="menu"
                                    :close-on-content-click="false"
                                    v-model="menu"
                                    :nudge-right="40"
                                    lazy
                                    transition="scale-transition"
                                    offset-y
                                    full-width
                                    min-width="290px"
                                  >
                                    <v-text-field
                                      slot="activator"
                                      :rules="dateRules"
                                      v-model="addStudents.date"
                                      placeholder="Select date"
                                    ></v-text-field>
                                    <v-date-picker
                                      ref="picker"
                                      v-model="addStudents.date"
                                      :max="new Date().toISOString().substr(0, 10)"
                                      min="1950-01-01"
                                      @input="menu = false"
                                    ></v-date-picker>
                                  </v-menu>
0551a0f15   Neeraj Sharma   implemnet functio...
1583
1584
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1585
1586
1587
1588
1589
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">City:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1590
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1591
1592
1593
1594
1595
1596
1597
1598
1599
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.city"
                                    placeholder="fill your City Name"
                                    name="City"
                                    type="text"
                                    :rules="cityRules"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1600
1601
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1602
1603
1604
1605
1606
1607
1608
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">State:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1609
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1610
1611
1612
1613
1614
1615
1616
1617
1618
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.state"
                                    placeholder="fill your State Name"
                                    name="state"
                                    type="text"
                                    :rules="stateRules"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1619
1620
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1621
1622
1623
1624
1625
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">Pincode:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1626
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1627
1628
1629
1630
1631
1632
1633
1634
1635
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.pincode"
                                    placeholder="fill your pincode"
                                    name="pincode"
                                    type="number"
                                    :rules="pincode"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1636
1637
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Mobile:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1648
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1649
                                <v-flex xs8 class="ml-3">
c29ba4fbb   Amber Dev   added country codes
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
                                  <v-layout row wrap>
                                    <v-flex xs3 class="mt-3">
                                      <vue-country-code
                                        @onSelect="addStudentMobileCode"
                                        class="black--text"
                                      ></vue-country-code>
                                    </v-flex>
                                    <v-flex xs9>
                                      <v-text-field
                                        v-model="addStudents.mobile"
                                        placeholder="fill your MobileNo"
                                        name="mobileNo"
                                        type="number"
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1666
1667
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1668
1669
1670
1671
1672
1673
1674
1675
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Select Country:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Country:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1676
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1677
1678
1679
1680
1681
1682
1683
1684
                                <v-flex xs8 class="ml-3">
                                  <v-autocomplete
                                    v-model="addStudents.country"
                                    :rules="country"
                                    :items="countries"
                                    placeholder="Select Country Name"
                                    required
                                  ></v-autocomplete>
0551a0f15   Neeraj Sharma   implemnet functio...
1685
1686
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1687
1688
1689
1690
1691
1692
1693
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">Gender:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1694
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1695
1696
1697
1698
1699
1700
1701
1702
                                <v-flex xs8 class="ml-3">
                                  <v-select
                                    :items="gender"
                                    v-model="addStudents.gender"
                                    :rules="genderRules"
                                    label="Select Gender"
                                    required
                                  ></v-select>
0551a0f15   Neeraj Sharma   implemnet functio...
1703
1704
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1705
1706
1707
1708
1709
1710
1711
1712
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Blood:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1713
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1714
1715
1716
1717
1718
1719
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.bloodGroup"
                                    placeholder="Fill your Blood Group"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1720
1721
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Roll No:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1732
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1733
1734
1735
1736
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.rollNo"
                                    placeholder="Fill your Roll Number"
c8fc8e42e   Shikha Mishra   solved issues
1737
                                    :rules="rollNo"
68d742034   Neeraj Sharma   implement new des...
1738
1739
                                    required
                                  ></v-text-field>
d9bb52b5b   Neeraj Sharma   implement trello ...
1740
1741
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Medical Notes:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Medical:</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.medicalNotes"
                                    placeholder="Fill your Medical Notes"
                                    required
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1757
1758
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">Height:</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.height"
                                    placeholder="Fill your Height"
                                    required
                                  ></v-text-field>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right">Weight:</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.weight"
                                    placeholder="Fill your Weight"
                                    required
                                  ></v-text-field>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout wrap>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Uplaod :</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    label="Select Image"
                                    @click="pickFile"
                                    v-model="imageName"
                                    append-icon="attach_file"
                                  ></v-text-field>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 class="pt-4 subheading">
                                  <label class="right hidden-xs-only hidden-sm-only">Academic Year:</label>
                                  <label
                                    class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                  >Year:</label>
                                </v-flex>
                                <v-flex xs8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.establishmentYear"
                                    placeholder="fill your Academic Year"
                                    name="state"
                                    type="number"
                                    :rules="establishmentYearRules"
                                    required
                                  ></v-text-field>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout wrap class="hidden-xs-only hidden-sm-only">
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading">
                                  <label class="right">Present Address:</label>
                                </v-flex>
                                <v-flex xs8 sm8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.presentAddress"
                                    :rules="presentAddress"
                                    placeholder="fill Your present Address"
                                    @keyup="copyData"
                                  ></v-text-field>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading addressForm">
                                  <label class="right">Permanent Address:</label>
                                </v-flex>
                                <v-flex xs12 sm8 class="ml-3">
                                  <v-switch
                                    v-model="addStudents.permanentAddress"
                                    label="Select Permanent Address"
                                    :value="addStudents.presentAddress"
                                  ></v-switch>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout class="hidden-xs-only hidden-sm-only">
                            <v-flex xs12 sm6>
                              <v-layout>
                                <v-flex xs4 sm4 class="pt-4 subheading addressForm">
                                  <label class="right">Permanent Address:</label>
                                </v-flex>
                                <v-flex xs12 sm8 class="ml-3">
                                  <v-text-field
                                    v-model="addStudents.permanentAddress"
                                    :rules="permanentAddress"
                                    placeholder="fill Your Permanent Address"
                                  ></v-text-field>
0551a0f15   Neeraj Sharma   implemnet functio...
1874
                                </v-flex>
68d742034   Neeraj Sharma   implement new des...
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
                            <v-flex xs12 sm12>
                              <v-layout>
                                <v-flex xs12 sm12 class="pt-4 subheading text-xs-center">
                                  <label class>Present Address:</label>
                                </v-flex>
                              </v-layout>
                              <v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1886
                                <v-flex xs12 sm12>
68d742034   Neeraj Sharma   implement new des...
1887
1888
1889
1890
1891
1892
1893
                                  <v-textarea
                                    name="input-4-3"
                                    v-model="addStudents.presentAddress"
                                    :rules="presentAddress"
                                    placeholder="fill Your present Address"
                                    required
                                  ></v-textarea>
0551a0f15   Neeraj Sharma   implemnet functio...
1894
1895
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1896
1897
                            </v-flex>
                            <v-flex xs12 sm12>
0551a0f15   Neeraj Sharma   implemnet functio...
1898
                              <v-layout>
68d742034   Neeraj Sharma   implement new des...
1899
1900
1901
1902
1903
1904
                                <v-flex
                                  xs12
                                  sm12
                                  class="pt-4 pr-4 subheading text-xs-center addressForm"
                                >
                                  <label>Permanent Address:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1905
1906
                                </v-flex>
                              </v-layout>
68d742034   Neeraj Sharma   implement new des...
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
                              <v-layout>
                                <v-flex xs12 sm12>
                                  <v-textarea
                                    name="input-4-3"
                                    v-model="addStudents.permanentAddress"
                                    :rules="permanentAddress"
                                    placeholder="fill Your Permanent Address"
                                    required
                                  ></v-textarea>
                                </v-flex>
                              </v-layout>
                            </v-flex>
                          </v-layout>
                          <v-layout>
                            <v-flex xs12 sm12>
                              <v-layout class="right">
                                <!-- <v-flex xs6> -->
                                <v-btn round dark @click="e2 = 1" class="clear-button">Back</v-btn>
                                <!-- </v-flex>
                                <v-flex xs6>-->
                                <v-btn
                                  @click="submit"
                                  round
                                  dark
                                  :loading="loading"
                                  class="add-button"
                                >Add</v-btn>
                                <!-- </v-flex> -->
                              </v-layout>
                            </v-flex>
                          </v-layout>
                        </v-form>
                      </v-flex>
                    </v-stepper-content>
                  </v-stepper-items>
                </v-stepper>
04165779e   Neeraj Sharma   implement parents...
1943
1944
              </v-flex>
            </v-layout>
b82d0d998   Neeraj Sharma   changes and modif...
1945
          </v-container>
68d742034   Neeraj Sharma   implement new des...
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
        </v-card>
      </v-dialog>
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        :color="color"
      >{{ text }}</v-snackbar>
36fc987df   Neeraj Sharma   add loader in all...
1956
1957
1958
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
68d742034   Neeraj Sharma   implement new des...
1959
    </v-container>
e3e2a04c6   Neeraj Sharma   first commit
1960
1961
1962
  </template>
  
  <script>
e3e2a04c6   Neeraj Sharma   first commit
1963
  import http from "@/Services/http.js";
506be6fd7   Neeraj Sharma   implemet dyamic i...
1964
  import moment from "moment";
495e4037c   Neeraj Sharma   update
1965
  import countryList from "@/script/country.js";
0cd2fbfba   Neeraj Sharma   implement create ...
1966
  import parent from "@/script/parents.js";
e3e2a04c6   Neeraj Sharma   first commit
1967
1968
  
  export default {
e3e2a04c6   Neeraj Sharma   first commit
1969
    data: () => ({
c29ba4fbb   Amber Dev   added country codes
1970
1971
1972
1973
1974
      /* EDIT DETAILS MOBILE */
      editedStudentMobileCode: "",
      /* ADD FATHER CELL */
      addedFatherCellCode: "",
      addedStudentMobileCode: '',
11797ea5a   Shikha Mishra   added password field
1975
      e1: true,
04165779e   Neeraj Sharma   implement parents...
1976
1977
1978
      e2: 0,
      showParent: true,
      showNext: false,
e3e2a04c6   Neeraj Sharma   first commit
1979
1980
1981
      snackbar: false,
      y: "top",
      x: "right",
710438de6   Shikha Mishra   added teacher mod...
1982
      role: "",
e3e2a04c6   Neeraj Sharma   first commit
1983
      mode: "",
080d88547   Shikha Mishra   issues solved
1984
      append: "",
e3e2a04c6   Neeraj Sharma   first commit
1985
1986
      timeout: 3000,
      text: "",
68d742034   Neeraj Sharma   implement new des...
1987
1988
1989
      show: true,
      color: "",
      showSearch: false,
04165779e   Neeraj Sharma   implement parents...
1990
      showLoader: false,
e3e2a04c6   Neeraj Sharma   first commit
1991
      loading: false,
3815afe8c   Neeraj Sharma   fixed all bugs in...
1992
      editLoading: false,
b82d0d998   Neeraj Sharma   changes and modif...
1993
1994
      date: null,
      search: "",
11797ea5a   Shikha Mishra   added password field
1995
      password: "",
e3e2a04c6   Neeraj Sharma   first commit
1996
      menu: false,
b82d0d998   Neeraj Sharma   changes and modif...
1997
      menu1: false,
68d742034   Neeraj Sharma   implement new des...
1998
1999
2000
      editStudentDialog: false,
      profileStudentDialog: false,
      addStudentDialog: false,
e3e2a04c6   Neeraj Sharma   first commit
2001
      valid: true,
b82d0d998   Neeraj Sharma   changes and modif...
2002
2003
2004
      addclass: [],
      addSection: [],
      gender: ["Male", "Female"],
e3e2a04c6   Neeraj Sharma   first commit
2005
      pagination: {
b0e0491ab   Shikha Mishra   solve the issue o...
2006
        rowsPerPage: 10,
e3e2a04c6   Neeraj Sharma   first commit
2007
      },
b82d0d998   Neeraj Sharma   changes and modif...
2008
2009
2010
2011
      imageData: {},
      imageName: "",
      imageUrl: "",
      imageFile: "",
3815afe8c   Neeraj Sharma   fixed all bugs in...
2012
2013
      editImageName: "",
      editImageUrl: "",
b0e0491ab   Shikha Mishra   solve the issue o...
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
      nameRules: [(v) => !!v || " Full Name is required"],
      dateRules: [(v) => !!v || " DOB is required"],
      cityRules: [(v) => !!v || " City Name is required"],
      pincode: [(v) => !!v || " Pincode is required"],
      country: [(v) => !!v || " Country Name is required"],
      rollNo: [(v) => !!v || "Roll No is required"],
      permanentAddress: [(v) => !!v || " Permanent Address is required"],
      presentAddress: [(v) => !!v || " Present Address  is required"],
      stateRules: [(v) => !!v || "State Name is required"],
      classRules: [(v) => !!v || " Class Name is required"],
      sectionRules: [(v) => !!v || " Section Name is required"],
      genderRules: [(v) => !!v || " Select Gender is required"],
f6200ce53   Neeraj Sharma   send number via a...
2026
      fatheCellNoRules: [
b0e0491ab   Shikha Mishra   solve the issue o...
2027
2028
        (v) => !!v || " father Cell Number  is required",
        (v) => v <= 10000000000 || "Max 10 characters is required",
f6200ce53   Neeraj Sharma   send number via a...
2029
      ],
11797ea5a   Shikha Mishra   added password field
2030
      password: [
b0e0491ab   Shikha Mishra   solve the issue o...
2031
        (v) => !!v || "Password field is Required.",
11d037abe   Neeraj Sharma   commit code
2032
        // v => (/^(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/).test(v) && v.length >= 8
11797ea5a   Shikha Mishra   added password field
2033
      ],
b0e0491ab   Shikha Mishra   solve the issue o...
2034
2035
      mobileNoRule: [(v) => !!v || " Mobile Number is required"],
      establishmentYearRules: [(v) => !!v || " Academic Year  is required"],
b82d0d998   Neeraj Sharma   changes and modif...
2036
      errorMessages: "",
495e4037c   Neeraj Sharma   update
2037
      countries: [],
e3e2a04c6   Neeraj Sharma   first commit
2038
2039
      headers: [
        {
5d32331fa   Neeraj Sharma   fix student list ...
2040
          text: "Roll No.",
e3e2a04c6   Neeraj Sharma   first commit
2041
2042
          align: "center",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2043
          value: "rollNo",
e3e2a04c6   Neeraj Sharma   first commit
2044
        },
04165779e   Neeraj Sharma   implement parents...
2045
2046
2047
2048
        {
          text: "Profile Pic",
          value: "profilePicUrl",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2049
          align: "center",
04165779e   Neeraj Sharma   implement parents...
2050
        },
e3e2a04c6   Neeraj Sharma   first commit
2051
        { text: "Name", value: "name", sortable: false, align: "center" },
b82d0d998   Neeraj Sharma   changes and modif...
2052
        { text: "Gender", value: "gender", sortable: false, align: "center" },
04165779e   Neeraj Sharma   implement parents...
2053
2054
2055
2056
        {
          text: "Father Name",
          value: "fatherName",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2057
          align: "center",
04165779e   Neeraj Sharma   implement parents...
2058
2059
2060
2061
2062
        },
        {
          text: "Mother Name",
          value: "motherName",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2063
          align: "center",
04165779e   Neeraj Sharma   implement parents...
2064
2065
2066
2067
2068
        },
        {
          text: "Academic Year",
          value: "establishmentYear",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2069
          align: "center",
04165779e   Neeraj Sharma   implement parents...
2070
        },
c8fc8e42e   Shikha Mishra   solved issues
2071
        // { text: "Mobile No", value: "mobile", sortable: false, align: "center" },
200c2d171   Neeraj Sharma   implement change ...
2072
2073
2074
2075
        {
          text: "Status",
          value: "status",
          sortable: false,
b0e0491ab   Shikha Mishra   solve the issue o...
2076
          align: "center",
200c2d171   Neeraj Sharma   implement change ...
2077
        },
b0e0491ab   Shikha Mishra   solve the issue o...
2078
        { text: "Action", value: "", sortable: false, align: "center" },
e3e2a04c6   Neeraj Sharma   first commit
2079
      ],
68d742034   Neeraj Sharma   implement new des...
2080
      studentsData: [],
04165779e   Neeraj Sharma   implement parents...
2081
      parentId: "",
e3e2a04c6   Neeraj Sharma   first commit
2082
      editedIndex: -1,
04165779e   Neeraj Sharma   implement parents...
2083
      parentData: {},
b82d0d998   Neeraj Sharma   changes and modif...
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
      addStudents: {
        role: "STUDENT",
        name: "",
        email: "",
        date: "",
        city: "",
        pincode: "",
        country: "",
        permanentAddress: "",
        presentAddress: "",
        mobile: "",
        state: "",
        gender: "",
b82d0d998   Neeraj Sharma   changes and modif...
2097
2098
        select: "",
        selectSection: "",
04165779e   Neeraj Sharma   implement parents...
2099
2100
2101
2102
2103
        bloodGroup: "",
        allergies: "",
        medicalNotes: "",
        height: "",
        weight: "",
af4cbc7be   Neeraj Sharma   add field roll nu...
2104
        rollNo: "",
b0e0491ab   Shikha Mishra   solve the issue o...
2105
        establishmentYear: new Date().getFullYear(),
b82d0d998   Neeraj Sharma   changes and modif...
2106
      },
04165779e   Neeraj Sharma   implement parents...
2107
      selectStudents: {
99ffa9511   Neeraj Sharma   add ,view, and ed...
2108
        select: "",
b0e0491ab   Shikha Mishra   solve the issue o...
2109
        selectSection: "",
04165779e   Neeraj Sharma   implement parents...
2110
      },
e3e2a04c6   Neeraj Sharma   first commit
2111
2112
2113
2114
      editedItem: {
        role: "STUDENT",
        name: "",
        email: "",
506be6fd7   Neeraj Sharma   implemet dyamic i...
2115
        dob: "",
b82d0d998   Neeraj Sharma   changes and modif...
2116
2117
2118
2119
2120
2121
2122
2123
        city: "",
        pincode: "",
        country: "",
        permanentAddress: "",
        presentAddress: "",
        mobile: "",
        state: "",
        gender: "",
b82d0d998   Neeraj Sharma   changes and modif...
2124
2125
        select: "",
        selectSection: "",
04165779e   Neeraj Sharma   implement parents...
2126
2127
2128
2129
2130
        bloodGroup: "",
        allergies: "",
        medicalNotes: "",
        height: "",
        weight: "",
af4cbc7be   Neeraj Sharma   add field roll nu...
2131
        rollNo: "",
b0e0491ab   Shikha Mishra   solve the issue o...
2132
        establishmentYear: new Date().getFullYear(),
5d5315b0f   Shikha Mishra   close add-notific...
2133
      },
b0e0491ab   Shikha Mishra   solve the issue o...
2134
      isFatherCellExists: false,
e3e2a04c6   Neeraj Sharma   first commit
2135
    }),
b82d0d998   Neeraj Sharma   changes and modif...
2136
2137
2138
    watch: {
      menu(val) {
        val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
e3e2a04c6   Neeraj Sharma   first commit
2139
      },
b82d0d998   Neeraj Sharma   changes and modif...
2140
2141
      menu1(val) {
        val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
b0e0491ab   Shikha Mishra   solve the issue o...
2142
      },
8e8d14254   Shikha Mishra   Cleared data whil...
2143
2144
2145
2146
2147
2148
2149
      addStudentDialog: function (val) {
        if (!val) {
          this.parentData = [];
          this.addStudents = [];
          this.imageName = "";
          this.imageFile = "";
          this.imageUrl = "";
39a6d21a0   Shikha Mishra   improve add stude...
2150
          this.e2 = 1;
8e8d14254   Shikha Mishra   Cleared data whil...
2151
2152
        }
      },
b82d0d998   Neeraj Sharma   changes and modif...
2153
2154
    },
    methods: {
c29ba4fbb   Amber Dev   added country codes
2155
2156
      editStudentMobileCode({ name, iso2, dialCode }) {
        // console.log("Edit father cell", name,iso2);
d0ffa80fe   Amber Dev   added dialcode
2157
        this.editedStudentMobileCode = dialCode;
c29ba4fbb   Amber Dev   added country codes
2158
2159
      },
      addFatherCellCode({ name, iso2, dialCode }) {
d0ffa80fe   Amber Dev   added dialcode
2160
        this.addedFatherCellCode = dialCode;
c29ba4fbb   Amber Dev   added country codes
2161
2162
      },
      addStudentMobileCode({ name, iso2, dialCode }){
d0ffa80fe   Amber Dev   added dialcode
2163
        this.addedStudentMobileCode =dialCode;
c29ba4fbb   Amber Dev   added country codes
2164
      },
0a7184bf8   Amber Dev   added internation...
2165
      onSelect({ name, iso2, dialCode }) {
c29ba4fbb   Amber Dev   added country codes
2166
        // console.log("country codes", name, iso2, dialCode);
0a7184bf8   Amber Dev   added internation...
2167
      },
04165779e   Neeraj Sharma   implement parents...
2168
2169
2170
2171
2172
2173
      findStudents() {
        this.showLoader = true;
        http()
          .get("/getStudentWithClass", {
            params: {
              classId: this.selectStudents.select,
b0e0491ab   Shikha Mishra   solve the issue o...
2174
2175
              sectionId: this.selectStudents.selectSection,
            },
04165779e   Neeraj Sharma   implement parents...
2176
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2177
          .then((response) => {
68d742034   Neeraj Sharma   implement new des...
2178
            this.studentsData = response.data.data;
506be6fd7   Neeraj Sharma   implemet dyamic i...
2179
            this.showLoader = false;
506be6fd7   Neeraj Sharma   implemet dyamic i...
2180
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2181
          .catch((err) => {
860da881d   Shikha Mishra   comment all consoles
2182
            //   console.log("err====>", err);
506be6fd7   Neeraj Sharma   implemet dyamic i...
2183
            this.showLoader = false;
860da881d   Shikha Mishra   comment all consoles
2184
2185
2186
            this.snackbar = true;
            this.color = "error";
            this.text = error.response.data.message;
506be6fd7   Neeraj Sharma   implemet dyamic i...
2187
2188
          });
      },
b82d0d998   Neeraj Sharma   changes and modif...
2189
2190
      getSections(_id) {
        var token = this.$store.state.token;
79583580d   Neeraj Sharma   implement task ma...
2191
        this.showLoader = true;
7014df603   Shikha Mishra   Improve placehold...
2192
        this.studentsData = [];
b82d0d998   Neeraj Sharma   changes and modif...
2193
2194
2195
2196
2197
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
b0e0491ab   Shikha Mishra   solve the issue o...
2198
              headers: { Authorization: "Bearer " + token },
b82d0d998   Neeraj Sharma   changes and modif...
2199
2200
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
2201
          .then((response) => {
b82d0d998   Neeraj Sharma   changes and modif...
2202
            this.addSection = response.data.data;
79583580d   Neeraj Sharma   implement task ma...
2203
            this.showLoader = false;
b82d0d998   Neeraj Sharma   changes and modif...
2204
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2205
          .catch((err) => {
79583580d   Neeraj Sharma   implement task ma...
2206
            this.showLoader = false;
b82d0d998   Neeraj Sharma   changes and modif...
2207
2208
          });
      },
79006bdcb   Neeraj Sharma   uplaod images all...
2209
2210
      getSection(_id) {
        var token = this.$store.state.token;
79583580d   Neeraj Sharma   implement task ma...
2211
        this.showLoader = true;
79006bdcb   Neeraj Sharma   uplaod images all...
2212
2213
2214
2215
2216
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
b0e0491ab   Shikha Mishra   solve the issue o...
2217
              headers: { Authorization: "Bearer " + token },
79006bdcb   Neeraj Sharma   uplaod images all...
2218
2219
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
2220
          .then((response) => {
79006bdcb   Neeraj Sharma   uplaod images all...
2221
            this.addSection = response.data.data;
79583580d   Neeraj Sharma   implement task ma...
2222
            this.showLoader = false;
79006bdcb   Neeraj Sharma   uplaod images all...
2223
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2224
          .catch((err) => {
79583580d   Neeraj Sharma   implement task ma...
2225
            this.showLoader = false;
79006bdcb   Neeraj Sharma   uplaod images all...
2226
2227
          });
      },
b82d0d998   Neeraj Sharma   changes and modif...
2228
2229
2230
      pickFile() {
        this.$refs.image.click();
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2231
2232
2233
      pickEditFile() {
        this.$refs.editDataImage.click();
      },
b0e0491ab   Shikha Mishra   solve the issue o...
2234
      dates: function (date) {
080d88547   Shikha Mishra   issues solved
2235
        return moment(date).format("MMMM DD, YYYY");
11d037abe   Neeraj Sharma   commit code
2236
        return date;
506be6fd7   Neeraj Sharma   implemet dyamic i...
2237
      },
b82d0d998   Neeraj Sharma   changes and modif...
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
      onFilePicked(e) {
        // console.log(e)
        const files = e.target.files;
        this.imageData.upload = e.target.files[0];
        if (files[0] !== undefined) {
          this.imageName = files[0].name;
          if (this.imageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.imageUrl = fr.result;
            this.imageFile = files[0]; // this is an image file that can be sent to server...
            this.imageData.imageUrl = URL.createObjectURL(this.imageFile);
b82d0d998   Neeraj Sharma   changes and modif...
2253
2254
2255
2256
2257
2258
2259
          });
        } else {
          this.imageName = "";
          this.imageFile = "";
          this.imageUrl = "";
        }
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2260
      onEditFilePicked(e) {
860da881d   Shikha Mishra   comment all consoles
2261
        //   console.log(e);
3815afe8c   Neeraj Sharma   fixed all bugs in...
2262
2263
2264
        const files = e.target.files;
        if (files[0] !== undefined) {
          this.editImageName = files[0].name;
860da881d   Shikha Mishra   comment all consoles
2265
          // console.log("this.editImageName", this.editImageName);
3815afe8c   Neeraj Sharma   fixed all bugs in...
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
  
          if (this.editImageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.editImageUrl = fr.result;
            this.editiImageFile = files[0]; // this is an image file that can be sent to server...
          });
        } else {
          this.editImageName = "";
          this.editiImageFile = "";
        }
      },
e3e2a04c6   Neeraj Sharma   first commit
2281
      editItem(item) {
68d742034   Neeraj Sharma   implement new des...
2282
        this.editedIndex = this.studentsData.indexOf(item);
e3e2a04c6   Neeraj Sharma   first commit
2283
        this.editedItem = Object.assign({}, item);
a354eff46   Neeraj Sharma   fix changes
2284
2285
2286
2287
        this.editedItem.fatherName = item.parentId.fatherName;
        this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
        this.editedItem.motherName = item.parentId.motherName;
        this.editedItem.motherCellNo = item.parentId.motherCellNo;
04165779e   Neeraj Sharma   implement parents...
2288
2289
2290
2291
        this.editedItem.dob =
          this.editedItem.dob != undefined
            ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10))
            : (this.editedItem.dob = "");
68d742034   Neeraj Sharma   implement new des...
2292
        this.editStudentDialog = true;
e3e2a04c6   Neeraj Sharma   first commit
2293
2294
      },
      profile(item) {
68d742034   Neeraj Sharma   implement new des...
2295
        this.editedIndex = this.studentsData.indexOf(item);
e3e2a04c6   Neeraj Sharma   first commit
2296
        this.editedItem = Object.assign({}, item);
a354eff46   Neeraj Sharma   fix changes
2297
2298
2299
2300
        this.editedItem.fatherName = item.parentId.fatherName;
        this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
        this.editedItem.motherName = item.parentId.motherName;
        this.editedItem.motherCellNo = item.parentId.motherCellNo;
68d742034   Neeraj Sharma   implement new des...
2301
        this.profileStudentDialog = true;
e3e2a04c6   Neeraj Sharma   first commit
2302
      },
e3e2a04c6   Neeraj Sharma   first commit
2303
2304
      deleteItem(item) {
        let deleteStudent = {
b0e0491ab   Shikha Mishra   solve the issue o...
2305
          studentId: item._id,
e3e2a04c6   Neeraj Sharma   first commit
2306
2307
        };
        http()
b82d0d998   Neeraj Sharma   changes and modif...
2308
2309
2310
          .delete(
            "/deleteStudent",
            confirm("Are you sure you want to delete this?") && {
b0e0491ab   Shikha Mishra   solve the issue o...
2311
              params: deleteStudent,
b82d0d998   Neeraj Sharma   changes and modif...
2312
2313
            }
          )
b0e0491ab   Shikha Mishra   solve the issue o...
2314
          .then((response) => {
9c887fee0   Neeraj Sharma   changes
2315
            this.snackbar = true;
68d742034   Neeraj Sharma   implement new des...
2316
2317
            this.text = response.data.message;
            this.color = "green";
3815afe8c   Neeraj Sharma   fixed all bugs in...
2318
            this.findStudents();
e3e2a04c6   Neeraj Sharma   first commit
2319
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2320
          .catch((error) => {
68d742034   Neeraj Sharma   implement new des...
2321
2322
2323
            this.snackbar = true;
            this.text = error.response.data.message;
            this.color = "error";
e3e2a04c6   Neeraj Sharma   first commit
2324
2325
          });
      },
e3e2a04c6   Neeraj Sharma   first commit
2326
      close() {
68d742034   Neeraj Sharma   implement new des...
2327
        this.editStudentDialog = false;
e3e2a04c6   Neeraj Sharma   first commit
2328
      },
68d742034   Neeraj Sharma   implement new des...
2329
2330
      closeStudentProfile() {
        this.profileStudentDialog = false;
e3e2a04c6   Neeraj Sharma   first commit
2331
      },
d9bb52b5b   Neeraj Sharma   implement trello ...
2332
2333
2334
      copyData() {
        this.addStudents.permanentAddress = this.addStudents.presentAddress;
      },
e3e2a04c6   Neeraj Sharma   first commit
2335
2336
      submit() {
        if (this.$refs.form.validate()) {
1c1942362   Neeraj Sharma   commit code Schoo...
2337
          let addStudent = {
04165779e   Neeraj Sharma   implement parents...
2338
            parentId: this.parentId,
b82d0d998   Neeraj Sharma   changes and modif...
2339
2340
2341
2342
2343
2344
2345
2346
2347
            name: this.addStudents.name,
            email: this.addStudents.email,
            role: this.addStudents.role,
            dob: this.addStudents.date,
            city: this.addStudents.city,
            pincode: this.addStudents.pincode,
            country: this.addStudents.country,
            permanentAddress: this.addStudents.permanentAddress,
            presentAddress: this.addStudents.presentAddress,
c29ba4fbb   Amber Dev   added country codes
2348
            countryCode: this.addedStudentMobileCode,
4efdca564   Neeraj Sharma   solve bugs parent...
2349
            mobile: this.addStudents.mobile,
b82d0d998   Neeraj Sharma   changes and modif...
2350
2351
            state: this.addStudents.state,
            gender: this.addStudents.gender,
b82d0d998   Neeraj Sharma   changes and modif...
2352
2353
2354
            establishmentYear: this.addStudents.establishmentYear,
            classId: this.addStudents.select,
            sectionId: this.addStudents.selectSection,
04165779e   Neeraj Sharma   implement parents...
2355
            bloodGroup: this.addStudents.bloodGroup,
04165779e   Neeraj Sharma   implement parents...
2356
2357
            medicalNotes: this.addStudents.medicalNotes,
            height: this.addStudents.height,
af4cbc7be   Neeraj Sharma   add field roll nu...
2358
            weight: this.addStudents.weight,
b0e0491ab   Shikha Mishra   solve the issue o...
2359
            rollNo: this.addStudents.rollNo,
e3e2a04c6   Neeraj Sharma   first commit
2360
          };
ebe04cc1d   Neeraj Sharma   solve issue uploa...
2361
2362
2363
          if (this.imageUrl) {
            var str = this.imageUrl;
            const [baseUrl, imageUrl] = str.split(/,/);
ebe04cc1d   Neeraj Sharma   solve issue uploa...
2364
2365
            addStudent.upload = imageUrl;
          }
5f1d4b444   Neeraj Sharma   fix design and fi...
2366
          this.loading = true;
e3e2a04c6   Neeraj Sharma   first commit
2367
          http()
1c1942362   Neeraj Sharma   commit code Schoo...
2368
            .post("/createStudent", addStudent)
b0e0491ab   Shikha Mishra   solve the issue o...
2369
            .then((response) => {
4430dd671   Neeraj Sharma   somethings change...
2370
2371
              this.snackbar = true;
              this.text = "New Student added successfully";
404356387   Neeraj Sharma   fixed snackbar co...
2372
              this.color = "green";
68d742034   Neeraj Sharma   implement new des...
2373
              this.addStudentDialog = false;
9037797ee   Amber Dev   bug for form reset
2374
2375
2376
2377
2378
2379
              this.$refs.parentForm.reset();
              this.$refs.parentFormLgScr.reset();
              this.$refs.form.reset();
              this.e2 = 1;
              // this.clear();
              // this.clearParents();
5f1d4b444   Neeraj Sharma   fix design and fi...
2380
              this.loading = false;
e3e2a04c6   Neeraj Sharma   first commit
2381
            })
b0e0491ab   Shikha Mishra   solve the issue o...
2382
            .catch((error) => {
9c887fee0   Neeraj Sharma   changes
2383
2384
              this.snackbar = true;
              this.text = error.response.data.message;
404356387   Neeraj Sharma   fixed snackbar co...
2385
              this.color = "error";
5f1d4b444   Neeraj Sharma   fix design and fi...
2386
              this.loading = false;
e3e2a04c6   Neeraj Sharma   first commit
2387
2388
2389
            });
        }
      },
e3e2a04c6   Neeraj Sharma   first commit
2390
2391
      clear() {
        this.$refs.form.reset();
0551a0f15   Neeraj Sharma   implemnet functio...
2392
        this.imageUrl = "";
e3e2a04c6   Neeraj Sharma   first commit
2393
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2394
2395
2396
      clearParents() {
        this.$refs.parentForm.reset();
      },
e3e2a04c6   Neeraj Sharma   first commit
2397
      save() {
1c1942362   Neeraj Sharma   commit code Schoo...
2398
        let editStudent = {
04165779e   Neeraj Sharma   implement parents...
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
          studentId: this.editedItem._id,
          name: this.editedItem.name,
          email: this.editedItem.email,
          role: this.editedItem.role,
          dob: this.editedItem.dob,
          city: this.editedItem.city,
          pincode: this.editedItem.pincode,
          country: this.editedItem.country,
          permanentAddress: this.editedItem.permanentAddress,
          presentAddress: this.editedItem.presentAddress,
4efdca564   Neeraj Sharma   solve bugs parent...
2409
          mobile: this.editedItem.mobile,
04165779e   Neeraj Sharma   implement parents...
2410
2411
          state: this.editedItem.state,
          gender: this.editedItem.gender,
04165779e   Neeraj Sharma   implement parents...
2412
2413
2414
2415
          establishmentYear: this.editedItem.establishmentYear,
          classId: this.editedItem.select,
          sectionId: this.editedItem.selectSection,
          bloodGroup: this.editedItem.bloodGroup,
04165779e   Neeraj Sharma   implement parents...
2416
2417
          medicalNotes: this.editedItem.medicalNotes,
          height: this.editedItem.height,
af4cbc7be   Neeraj Sharma   add field roll nu...
2418
          weight: this.editedItem.weight,
b0e0491ab   Shikha Mishra   solve the issue o...
2419
          rollNo: this.editedItem.rollNo,
04165779e   Neeraj Sharma   implement parents...
2420
        };
3815afe8c   Neeraj Sharma   fixed all bugs in...
2421
2422
2423
2424
        if (this.editImageUrl) {
          var str = this.editImageUrl;
          const [baseUrl, editImageUrl] = str.split(/,/);
          editStudent.upload = editImageUrl;
04165779e   Neeraj Sharma   implement parents...
2425
        }
3815afe8c   Neeraj Sharma   fixed all bugs in...
2426
        this.editLoading = true;
e3e2a04c6   Neeraj Sharma   first commit
2427
        http()
1c1942362   Neeraj Sharma   commit code Schoo...
2428
          .put("/updateStudent", editStudent)
b0e0491ab   Shikha Mishra   solve the issue o...
2429
          .then((response) => {
0551a0f15   Neeraj Sharma   implemnet functio...
2430
            this.snackbar = true;
4430dd671   Neeraj Sharma   somethings change...
2431
            this.text = response.data.message;
404356387   Neeraj Sharma   fixed snackbar co...
2432
            this.color = "green";
0551a0f15   Neeraj Sharma   implemnet functio...
2433
            this.imageUrl = "";
506be6fd7   Neeraj Sharma   implemet dyamic i...
2434
            this.findStudents();
99ffa9511   Neeraj Sharma   add ,view, and ed...
2435
            this.close();
3815afe8c   Neeraj Sharma   fixed all bugs in...
2436
            this.editLoading = false;
e3e2a04c6   Neeraj Sharma   first commit
2437
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2438
          .catch((error) => {
4430dd671   Neeraj Sharma   somethings change...
2439
2440
            this.snackbar = true;
            this.text = error.response.data.statusText;
404356387   Neeraj Sharma   fixed snackbar co...
2441
            this.color = "error";
3815afe8c   Neeraj Sharma   fixed all bugs in...
2442
            this.editLoading = false;
e3e2a04c6   Neeraj Sharma   first commit
2443
          });
e3e2a04c6   Neeraj Sharma   first commit
2444
      },
04165779e   Neeraj Sharma   implement parents...
2445
2446
      submitParentDetails() {
        if (this.$refs.parentForm.validate()) {
4efdca564   Neeraj Sharma   solve bugs parent...
2447
2448
          this.parentData.fatherCellNo = this.parentData.fatherCellNo;
          this.parentData.motherCellNo = this.parentData.motherCellNo;
04165779e   Neeraj Sharma   implement parents...
2449
2450
2451
          let addparentDetails = {
            email: this.parentData.email,
            fatherName: this.parentData.fatherName,
c29ba4fbb   Amber Dev   added country codes
2452
            countryCode: this.addedFatherCellCode,
04165779e   Neeraj Sharma   implement parents...
2453
2454
2455
            fatherCellNo: this.parentData.fatherCellNo,
            motherName: this.parentData.motherName,
            motherCellNo: this.parentData.motherCellNo,
3ce6253e2   Neeraj Sharma   pass the value mo...
2456
2457
            fatherProfession: this.parentData.fatherProfession,
            motherProfession: this.parentData.motherProfession,
11797ea5a   Shikha Mishra   added password field
2458
            password: this.parentData.password,
b0e0491ab   Shikha Mishra   solve the issue o...
2459
            role: "PARENT",
04165779e   Neeraj Sharma   implement parents...
2460
2461
2462
2463
          };
          this.loading = true;
          http()
            .post("/createParent", addparentDetails)
b0e0491ab   Shikha Mishra   solve the issue o...
2464
            .then((response) => {
04165779e   Neeraj Sharma   implement parents...
2465
2466
              this.parentId = response.data.data.id;
              this.e2 = 2;
4430dd671   Neeraj Sharma   somethings change...
2467
              this.snackbar = true;
404356387   Neeraj Sharma   fixed snackbar co...
2468
2469
              this.text = response.data.message;
              this.color = "green";
04165779e   Neeraj Sharma   implement parents...
2470
2471
2472
2473
              // this.getStudentList();
              this.clear();
              this.loading = false;
            })
b0e0491ab   Shikha Mishra   solve the issue o...
2474
            .catch((error) => {
4430dd671   Neeraj Sharma   somethings change...
2475
2476
              this.snackbar = true;
              this.text = error.response.data.message;
68d742034   Neeraj Sharma   implement new des...
2477
              this.color = "error";
404356387   Neeraj Sharma   fixed snackbar co...
2478
2479
2480
              if (error.response.data.statusText) {
                this.text = error.response.data.statusText;
              }
04165779e   Neeraj Sharma   implement parents...
2481
2482
2483
2484
2485
              this.loading = false;
            });
        }
      },
      getParentDetails() {
fc77c38e0   Neeraj Sharma   fixed all task ch...
2486
        if (this.parentData.fatherCellNo.length > 9) {
d9bb52b5b   Neeraj Sharma   implement trello ...
2487
          this.showLoader = true;
e00e865a5   Shikha Mishra   disabled password...
2488
          this.isFatherCellExists = false;
04165779e   Neeraj Sharma   implement parents...
2489
2490
          http()
            .get("getParticularParent", {
fc77c38e0   Neeraj Sharma   fixed all task ch...
2491
              params: { fatherCellNo: this.parentData.fatherCellNo },
04165779e   Neeraj Sharma   implement parents...
2492
              headers: {
b0e0491ab   Shikha Mishra   solve the issue o...
2493
2494
                Authorization: "Bearer " + this.$store.state.token,
              },
04165779e   Neeraj Sharma   implement parents...
2495
            })
b0e0491ab   Shikha Mishra   solve the issue o...
2496
            .then((response) => {
04165779e   Neeraj Sharma   implement parents...
2497
2498
2499
2500
              this.showNext = true;
              this.showParent = false;
              this.parentData = response.data.data;
              this.parentId = response.data.data._id;
d9bb52b5b   Neeraj Sharma   implement trello ...
2501
              this.showLoader = false;
5d5315b0f   Shikha Mishra   close add-notific...
2502
              this.isFatherCellExists = true;
04165779e   Neeraj Sharma   implement parents...
2503
            })
b0e0491ab   Shikha Mishra   solve the issue o...
2504
            .catch((error) => {
860da881d   Shikha Mishra   comment all consoles
2505
              // console.log("err====>", error.response.data.message);
d9bb52b5b   Neeraj Sharma   implement trello ...
2506
2507
              this.text = error.response.data.message;
              this.snackbar = true;
8e8d14254   Shikha Mishra   Cleared data whil...
2508
              this.color = "error";
4efdca564   Neeraj Sharma   solve bugs parent...
2509
2510
2511
2512
2513
2514
2515
2516
2517
              if (this.text === "Data not found!") {
                this.showNext = false;
                this.showParent = true;
                this.parentData.email = "";
                this.parentData.fatherName = "";
                this.parentData.motherName = "";
                this.parentData.motherCellNo = "";
                this.parentData.fatherProfession = "";
                this.parentData.motherProfession = "";
11797ea5a   Shikha Mishra   added password field
2518
                this.parentData.password = "";
4efdca564   Neeraj Sharma   solve bugs parent...
2519
              }
d9bb52b5b   Neeraj Sharma   implement trello ...
2520
              this.showLoader = false;
04165779e   Neeraj Sharma   implement parents...
2521
2522
            });
        }
200c2d171   Neeraj Sharma   implement change ...
2523
2524
2525
2526
      },
      suspendStudentStatus(status, id) {
        let suspendStudentData = {
          studentId: id,
b0e0491ab   Shikha Mishra   solve the issue o...
2527
          status: status,
200c2d171   Neeraj Sharma   implement change ...
2528
2529
2530
        };
        http()
          .put("/suspendStudentAccount", suspendStudentData)
b0e0491ab   Shikha Mishra   solve the issue o...
2531
          .then((response) => {
ba223fa18   Neeraj Sharma   implement change ...
2532
            this.findStudents();
200c2d171   Neeraj Sharma   implement change ...
2533
            this.text = response.data.message;
404356387   Neeraj Sharma   fixed snackbar co...
2534
            this.color = "green";
200c2d171   Neeraj Sharma   implement change ...
2535
2536
            this.snackbar = true;
          })
b0e0491ab   Shikha Mishra   solve the issue o...
2537
          .catch((error) => {
ba223fa18   Neeraj Sharma   implement change ...
2538
            this.snackbar = true;
404356387   Neeraj Sharma   fixed snackbar co...
2539
            this.color = "error";
200c2d171   Neeraj Sharma   implement change ...
2540
2541
            this.text = error.response.data.message;
          });
68d742034   Neeraj Sharma   implement new des...
2542
2543
2544
2545
2546
2547
2548
2549
      },
      displaySearch() {
        (this.show = false), (this.showSearch = true);
      },
      closeSearch() {
        this.showSearch = false;
        this.show = true;
        this.search = "";
b0e0491ab   Shikha Mishra   solve the issue o...
2550
      },
e3e2a04c6   Neeraj Sharma   first commit
2551
2552
    },
    mounted() {
495e4037c   Neeraj Sharma   update
2553
      const getCountryList = countryList();
710438de6   Shikha Mishra   added teacher mod...
2554
      this.role = this.$store.state.role;
495e4037c   Neeraj Sharma   update
2555
      this.countries = getCountryList;
b82d0d998   Neeraj Sharma   changes and modif...
2556
2557
2558
      var token = this.$store.state.token;
      http()
        .get("/getClassesList", {
b0e0491ab   Shikha Mishra   solve the issue o...
2559
          headers: { Authorization: "Bearer " + token },
b82d0d998   Neeraj Sharma   changes and modif...
2560
        })
b0e0491ab   Shikha Mishra   solve the issue o...
2561
        .then((response) => {
b82d0d998   Neeraj Sharma   changes and modif...
2562
          this.addclass = response.data.data;
b82d0d998   Neeraj Sharma   changes and modif...
2563
        })
b0e0491ab   Shikha Mishra   solve the issue o...
2564
        .catch((error) => {
00e4bc4e1   Neeraj Sharma   fixed auntentication
2565
2566
2567
2568
2569
2570
2571
          this.showLoader = false;
          if (error.response.status === 401) {
            this.$router.replace({ path: "/" });
            this.$store.dispatch("setToken", null);
            this.$store.dispatch("Id", null);
            this.$store.dispatch("Role", null);
          }
b82d0d998   Neeraj Sharma   changes and modif...
2572
        });
b0e0491ab   Shikha Mishra   solve the issue o...
2573
    },
e3e2a04c6   Neeraj Sharma   first commit
2574
2575
2576
  };
  </script>
  <style scoped>
e3e2a04c6   Neeraj Sharma   first commit
2577
  .active {
687e0b929   Neeraj Sharma   add user,attenden...
2578
    background-color: gray;
e3e2a04c6   Neeraj Sharma   first commit
2579
2580
2581
2582
2583
    color: white !important;
  }
  .activebtn {
    color: black !important;
  }
e3e2a04c6   Neeraj Sharma   first commit
2584
  </style>