Commit a354eff46ef28d8e62d9dccba7ad801277aa6cb7

Authored by Neeraj Sharma
1 parent 04165779ed

fix changes

Showing 1 changed file with 520 additions and 510 deletions   Show diff stats
src/pages/Students/students.vue
... ... @@ -953,8 +953,8 @@
953 953 <td id="td" class="text-xs-center">{{ props.item.email }}</td>
954 954 <td id="td" class="text-xs-center">{{ dates(props.item.dob) }}</td>
955 955 <td id="td" class="text-xs-center">{{ props.item.gender }}</td>
956   - <td id="td" class="text-xs-center">{{ props.item.fatherName }}</td>
957   - <td id="td" class="text-xs-center">{{ props.item.motherName }}</td>
  956 + <td id="td" class="text-xs-center">{{ props.item.parentId.fatherName }}</td>
  957 + <td id="td" class="text-xs-center">{{ props.item.parentId.motherName }}</td>
958 958 <td id="td" class="text-xs-center">{{ props.item.establishmentYear }}</td>
959 959 <td id="td" class="text-xs-center">{{ props.item.mobile}}</td>
960 960  
... ... @@ -1017,113 +1017,113 @@
1017 1017 color="success"
1018 1018 >{{ text }}</v-snackbar>
1019 1019 <v-flex xs12 sm12>
1020   - <v-form ref="parentForm" v-model="valid" lazy-validation>
1021   - <v-container fluid>
1022   - <v-layout>
1023   - <v-flex xs12 sm6>
1024   - <v-layout>
1025   - <v-flex xs4 class="pt-4 subheading">
1026   - <label class="right">Parent Email Id:</label>
1027   - </v-flex>
1028   - <v-flex xs8 class="ml-3">
1029   - <v-text-field
1030   - placeholder="fill Parent email"
1031   - :rules="emailRules"
1032   - v-model="parentData.email"
1033   - type="text"
1034   - v-on:keyup="getParentDetails"
1035   - name="email"
1036   - required
1037   - ></v-text-field>
1038   - </v-flex>
1039   - </v-layout>
1040   - </v-flex>
1041   - <v-flex xs12 sm6>
1042   - <v-layout>
1043   - <v-flex xs4 class="pt-4 subheading">
1044   - <label class="right">Father Name:</label>
1045   - </v-flex>
1046   - <v-flex xs8 class="ml-3">
1047   - <v-text-field
1048   - v-model="parentData.fatherName"
1049   - :rules="fatherNameRules"
1050   - placeholder="Fill your father Name"
1051   - required
1052   - ></v-text-field>
1053   - </v-flex>
1054   - </v-layout>
1055   - </v-flex>
1056   - </v-layout>
1057   - <v-layout>
1058   - <v-flex xs12 sm6>
1059   - <v-layout>
1060   - <v-flex xs4 class="pt-4 subheading">
1061   - <label class="right">Father Cell No:</label>
1062   - </v-flex>
1063   - <v-flex xs8 class="ml-3">
1064   - <v-text-field
1065   - v-model="parentData.fatherCellNo"
1066   - placeholder="fill your father Cell Number"
1067   - name="state"
1068   - type="number"
1069   - :rules="fatheCellNoRules"
1070   - required
1071   - ></v-text-field>
1072   - </v-flex>
1073   - </v-layout>
1074   - </v-flex>
1075   - <v-flex xs12 sm6>
1076   - <v-layout>
1077   - <v-flex xs4 class="pt-4 subheading">
1078   - <label class="right">Mother Name:</label>
1079   - </v-flex>
1080   - <v-flex xs8 class="ml-3">
1081   - <v-text-field
1082   - v-model="parentData.motherName"
1083   - placeholder="fill your Mother Name"
1084   - name="state"
1085   - type="text"
1086   - :rules="motherNameRules"
1087   - required
1088   - ></v-text-field>
1089   - </v-flex>
1090   - </v-layout>
1091   - </v-flex>
1092   - </v-layout>
1093   - <v-layout>
1094   - <v-flex xs12 sm6>
1095   - <v-layout>
1096   - <v-flex xs4 class="pt-4 subheading">
1097   - <label class="right">Mother Cell No:</label>
1098   - </v-flex>
1099   - <v-flex xs8 class="ml-3">
1100   - <v-text-field
1101   - v-model="parentData.motherCellNo"
1102   - placeholder="fill your Mother Cell Number"
1103   - name="state"
1104   - type="number"
1105   - :rules="motherCellNoRules"
1106   - required
1107   - ></v-text-field>
1108   - </v-flex>
1109   - </v-layout>
1110   - </v-flex>
1111   - </v-layout>
1112   - <v-flex xs12 sm12>
1113   - <v-card-actions>
1114   - <v-spacer></v-spacer>
1115   - <v-btn
1116   - @click="submitParentDetails"
1117   - round
1118   - dark
1119   - :loading="loading"
1120   - v-show="showParent"
1121   - >Add</v-btn>
1122   - <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
1123   - </v-card-actions>
  1020 + <v-form ref="parentForm" v-model="valid" lazy-validation>
  1021 + <v-container fluid>
  1022 + <v-layout>
  1023 + <v-flex xs12 sm6>
  1024 + <v-layout>
  1025 + <v-flex xs4 class="pt-4 subheading">
  1026 + <label class="right">Parent Email Id:</label>
  1027 + </v-flex>
  1028 + <v-flex xs8 class="ml-3">
  1029 + <v-text-field
  1030 + placeholder="fill Parent email"
  1031 + :rules="emailRules"
  1032 + v-model="parentData.email"
  1033 + type="text"
  1034 + v-on:keyup="getParentDetails"
  1035 + name="email"
  1036 + required
  1037 + ></v-text-field>
  1038 + </v-flex>
  1039 + </v-layout>
  1040 + </v-flex>
  1041 + <v-flex xs12 sm6>
  1042 + <v-layout>
  1043 + <v-flex xs4 class="pt-4 subheading">
  1044 + <label class="right">Father Name:</label>
  1045 + </v-flex>
  1046 + <v-flex xs8 class="ml-3">
  1047 + <v-text-field
  1048 + v-model="parentData.fatherName"
  1049 + :rules="fatherNameRules"
  1050 + placeholder="Fill your father Name"
  1051 + required
  1052 + ></v-text-field>
  1053 + </v-flex>
  1054 + </v-layout>
  1055 + </v-flex>
  1056 + </v-layout>
  1057 + <v-layout>
  1058 + <v-flex xs12 sm6>
  1059 + <v-layout>
  1060 + <v-flex xs4 class="pt-4 subheading">
  1061 + <label class="right">Father Cell No:</label>
  1062 + </v-flex>
  1063 + <v-flex xs8 class="ml-3">
  1064 + <v-text-field
  1065 + v-model="parentData.fatherCellNo"
  1066 + placeholder="fill your father Cell Number"
  1067 + name="state"
  1068 + type="number"
  1069 + :rules="fatheCellNoRules"
  1070 + required
  1071 + ></v-text-field>
  1072 + </v-flex>
  1073 + </v-layout>
1124 1074 </v-flex>
1125   - </v-container>
1126   - </v-form>
  1075 + <v-flex xs12 sm6>
  1076 + <v-layout>
  1077 + <v-flex xs4 class="pt-4 subheading">
  1078 + <label class="right">Mother Name:</label>
  1079 + </v-flex>
  1080 + <v-flex xs8 class="ml-3">
  1081 + <v-text-field
  1082 + v-model="parentData.motherName"
  1083 + placeholder="fill your Mother Name"
  1084 + name="state"
  1085 + type="text"
  1086 + :rules="motherNameRules"
  1087 + required
  1088 + ></v-text-field>
  1089 + </v-flex>
  1090 + </v-layout>
  1091 + </v-flex>
  1092 + </v-layout>
  1093 + <v-layout>
  1094 + <v-flex xs12 sm6>
  1095 + <v-layout>
  1096 + <v-flex xs4 class="pt-4 subheading">
  1097 + <label class="right">Mother Cell No:</label>
  1098 + </v-flex>
  1099 + <v-flex xs8 class="ml-3">
  1100 + <v-text-field
  1101 + v-model="parentData.motherCellNo"
  1102 + placeholder="fill your Mother Cell Number"
  1103 + name="state"
  1104 + type="number"
  1105 + :rules="motherCellNoRules"
  1106 + required
  1107 + ></v-text-field>
  1108 + </v-flex>
  1109 + </v-layout>
  1110 + </v-flex>
  1111 + </v-layout>
  1112 + <v-flex xs12 sm12>
  1113 + <v-card-actions>
  1114 + <v-spacer></v-spacer>
  1115 + <v-btn
  1116 + @click="submitParentDetails"
  1117 + round
  1118 + dark
  1119 + :loading="loading"
  1120 + v-show="showParent"
  1121 + >Add</v-btn>
  1122 + <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
  1123 + </v-card-actions>
  1124 + </v-flex>
  1125 + </v-container>
  1126 + </v-form>
1127 1127 </v-flex>
1128 1128 </v-flex>
1129 1129 </v-layout>
... ... @@ -1140,410 +1140,410 @@
1140 1140 color="success"
1141 1141 >{{ text }}</v-snackbar>
1142 1142 <v-flex xs12 sm12>
1143   - <v-form ref="form" v-model="valid" lazy-validation>
1144   - <v-container fluid>
1145   - <v-layout>
1146   - <v-flex
1147   - xs12
1148   - class="text-xs-center text-sm-center text-md-center text-lg-center mr-4"
1149   - >
1150   - <v-avatar size="100px">
1151   - <img src="/static/icon/user.png" v-if="!imageUrl" />
1152   - </v-avatar>
1153   - <input
1154   - type="file"
1155   - style="display: none"
1156   - ref="image"
1157   - accept="image/*"
1158   - @change="onFilePicked"
1159   - />
1160   - <img
1161   - :src="imageData.imageUrl"
1162   - height="150"
1163   - v-if="imageUrl"
1164   - style="border-radius:50%; width:200px"
1165   - />
1166   - </v-flex>
1167   - </v-layout>
1168   - <v-layout>
1169   - <v-flex xs12 sm6>
1170   - <v-layout>
1171   - <v-flex xs4 class="pt-4 subheading">
1172   - <label class="right">Select Class:</label>
1173   - </v-flex>
1174   - <v-flex xs8 class="ml-3">
1175   - <v-select
1176   - :items="addclass"
1177   - label="Select Class"
1178   - v-model="addStudents.select"
1179   - item-text="classNum"
1180   - item-value="_id"
1181   - name="Select Class"
1182   - :rules="classRules"
1183   - @change="getSection(addStudents.select)"
1184   - required
1185   - ></v-select>
1186   - </v-flex>
1187   - </v-layout>
1188   - </v-flex>
1189   - <v-flex xs12 sm6>
1190   - <v-layout>
1191   - <v-flex xs4 class="pt-4 subheading">
1192   - <label class="right">Select Section:</label>
1193   - </v-flex>
1194   - <v-flex xs8 class="ml-3">
1195   - <v-select
1196   - :items="addSection"
1197   - label="Select Section"
1198   - v-model="addStudents.selectSection"
1199   - item-text="name"
1200   - item-value="_id"
1201   - name="Select Section"
1202   - :rules="sectionRules"
1203   - required
1204   - ></v-select>
1205   - </v-flex>
1206   - </v-layout>
1207   - </v-flex>
1208   - </v-layout>
1209   - <v-layout>
1210   - <v-flex xs12 sm6>
1211   - <v-layout>
1212   - <v-flex xs4 class="pt-4 subheading">
1213   - <label class="right">Full Name:</label>
1214   - </v-flex>
1215   - <v-flex xs8 class="ml-3">
1216   - <v-text-field
1217   - v-model="addStudents.name"
1218   - placeholder="fill your full Name"
1219   - name="name"
1220   - type="text"
1221   - :rules="nameRules"
1222   - required
1223   - ></v-text-field>
1224   - </v-flex>
1225   - </v-layout>
1226   - </v-flex>
1227   - <v-flex xs12 sm6>
1228   - <v-layout>
1229   - <v-flex xs4 class="pt-4 subheading">
1230   - <label class="right">Email ID:</label>
1231   - </v-flex>
1232   - <v-flex xs8 class="ml-3">
1233   - <v-text-field
1234   - placeholder="fill your email"
1235   - :rules="emailRules"
1236   - v-model="addStudents.email"
1237   - type="text"
1238   - name="email"
1239   - required
1240   - ></v-text-field>
1241   - </v-flex>
1242   - </v-layout>
1243   - </v-flex>
1244   - </v-layout>
1245   - <v-layout>
1246   - <v-flex xs12 sm6>
1247   - <v-layout>
1248   - <v-flex xs4 class="pt-4 subheading">
1249   - <label class="right">Date of Birth:</label>
1250   - </v-flex>
1251   - <v-flex xs8 class="ml-3">
1252   - <v-menu
1253   - ref="menu"
1254   - :close-on-content-click="false"
1255   - v-model="menu"
1256   - :nudge-right="40"
1257   - lazy
1258   - transition="scale-transition"
1259   - offset-y
1260   - full-width
1261   - min-width="290px"
1262   - >
1263   - <v-text-field
1264   - slot="activator"
1265   - :rules="dateRules"
1266   - v-model="addStudents.date"
1267   - placeholder="Select date"
1268   - ></v-text-field>
1269   - <v-date-picker
1270   - ref="picker"
1271   - v-model="addStudents.date"
1272   - :max="new Date().toISOString().substr(0, 10)"
1273   - min="1950-01-01"
1274   - @input="menu = false"
1275   - ></v-date-picker>
1276   - </v-menu>
1277   - </v-flex>
1278   - </v-layout>
1279   - </v-flex>
1280   - <v-flex xs12 sm6>
1281   - <v-layout>
1282   - <v-flex xs4 class="pt-4 subheading">
1283   - <label class="right">City:</label>
1284   - </v-flex>
1285   - <v-flex xs8 class="ml-3">
1286   - <v-text-field
1287   - v-model="addStudents.city"
1288   - placeholder="fill your City Name"
1289   - name="City"
1290   - type="text"
1291   - :rules="cityRules"
1292   - required
1293   - ></v-text-field>
1294   - </v-flex>
1295   - </v-layout>
1296   - </v-flex>
1297   - </v-layout>
1298   - <v-layout>
1299   - <v-flex xs12 sm6>
1300   - <v-layout>
1301   - <v-flex xs4 class="pt-4 subheading">
1302   - <label class="right">State:</label>
1303   - </v-flex>
1304   - <v-flex xs8 class="ml-3">
1305   - <v-text-field
1306   - v-model="addStudents.state"
1307   - placeholder="fill your State Name"
1308   - name="state"
1309   - type="text"
1310   - :rules="stateRules"
1311   - required
1312   - ></v-text-field>
1313   - </v-flex>
1314   - </v-layout>
1315   - </v-flex>
1316   - <v-flex xs12 sm6>
1317   - <v-layout>
1318   - <v-flex xs4 class="pt-4 subheading">
1319   - <label class="right">Pincode:</label>
1320   - </v-flex>
1321   - <v-flex xs8 class="ml-3">
1322   - <v-text-field
1323   - v-model="addStudents.pincode"
1324   - placeholder="fill your pincode"
1325   - name="pincode"
1326   - type="number"
1327   - :rules="pincode"
1328   - required
1329   - ></v-text-field>
1330   - </v-flex>
1331   - </v-layout>
1332   - </v-flex>
1333   - </v-layout>
1334   - <v-layout>
1335   - <v-flex xs12 sm6>
1336   - <v-layout>
1337   - <v-flex xs4 class="pt-4 subheading">
1338   - <label class="right">Mobile No:</label>
1339   - </v-flex>
1340   - <v-flex xs8 class="ml-3">
1341   - <v-text-field
1342   - v-model="addStudents.mobile"
1343   - placeholder="fill your MobileNo"
1344   - name="mobileNo"
1345   - type="number"
1346   - :rules="mobileNoRules"
1347   - required
1348   - ></v-text-field>
1349   - </v-flex>
1350   - </v-layout>
1351   - </v-flex>
1352   - <v-flex xs12 sm6>
1353   - <v-layout>
1354   - <v-flex xs4 class="pt-4 subheading">
1355   - <label class="right">Select Country:</label>
1356   - </v-flex>
1357   - <v-flex xs8 class="ml-3">
1358   - <v-autocomplete
1359   - v-model="addStudents.country"
1360   - :rules="country"
1361   - :items="countries"
1362   - placeholder="Select Country Name"
1363   - required
1364   - ></v-autocomplete>
1365   - </v-flex>
1366   - </v-layout>
1367   - </v-flex>
1368   - </v-layout>
1369   - <v-layout>
1370   - <v-flex xs12 sm6>
1371   - <v-layout>
1372   - <v-flex xs4 class="pt-4 subheading">
1373   - <label class="right">Gender:</label>
1374   - </v-flex>
1375   - <v-flex xs8 class="ml-3">
1376   - <v-select
1377   - :items="gender"
1378   - v-model="addStudents.gender"
1379   - :rules="genderRules"
1380   - label="Select Gender"
1381   - required
1382   - ></v-select>
1383   - </v-flex>
1384   - </v-layout>
1385   - </v-flex>
1386   - <v-flex xs12 sm6>
1387   - <v-layout>
1388   - <v-flex xs4 class="pt-4 subheading">
1389   - <label class="right">Blood Group:</label>
1390   - </v-flex>
1391   - <v-flex xs8 class="ml-3">
1392   - <v-text-field
1393   - v-model="addStudents.bloodGroup"
1394   - placeholder="Fill your Blood Group"
1395   - required
1396   - ></v-text-field>
1397   - </v-flex>
1398   - </v-layout>
1399   - </v-flex>
1400   - </v-layout>
1401   - <v-layout>
1402   - <v-flex xs12 sm6>
1403   - <v-layout>
1404   - <v-flex xs4 class="pt-4 subheading">
1405   - <label class="right">Allergies:</label>
1406   - </v-flex>
1407   - <v-flex xs8 class="ml-3">
1408   - <v-text-field
1409   - v-model="addStudents.allergies"
1410   - placeholder="Fill your Allergies"
1411   - required
1412   - ></v-text-field>
1413   - </v-flex>
1414   - </v-layout>
1415   - </v-flex>
1416   - <v-flex xs12 sm6>
1417   - <v-layout>
1418   - <v-flex xs4 class="pt-4 subheading">
1419   - <label class="right">Medical Notes:</label>
1420   - </v-flex>
1421   - <v-flex xs8 class="ml-3">
1422   - <v-text-field
1423   - v-model="addStudents.medicalNotes"
1424   - placeholder="Fill your Medical Notes"
1425   - required
1426   - ></v-text-field>
1427   - </v-flex>
1428   - </v-layout>
1429   - </v-flex>
1430   - </v-layout>
1431   - <v-layout>
1432   - <v-flex xs12 sm6>
1433   - <v-layout>
1434   - <v-flex xs4 class="pt-4 subheading">
1435   - <label class="right">Height:</label>
1436   - </v-flex>
1437   - <v-flex xs8 class="ml-3">
1438   - <v-text-field
1439   - v-model="addStudents.height"
1440   - placeholder="Fill your Height"
1441   - required
1442   - ></v-text-field>
1443   - </v-flex>
1444   - </v-layout>
1445   - </v-flex>
1446   - <v-flex xs12 sm6>
1447   - <v-layout>
1448   - <v-flex xs4 class="pt-4 subheading">
1449   - <label class="right">Weight:</label>
1450   - </v-flex>
1451   - <v-flex xs8 class="ml-3">
1452   - <v-text-field
1453   - v-model="addStudents.weight"
1454   - placeholder="Fill your Weight"
1455   - required
1456   - ></v-text-field>
1457   - </v-flex>
1458   - </v-layout>
1459   - </v-flex>
1460   - </v-layout>
1461   - <v-layout>
1462   - <v-flex xs12 sm6>
1463   - <v-layout>
1464   - <v-flex xs4 class="pt-4 subheading">
1465   - <label class="right">Uplaod Image:</label>
1466   - </v-flex>
1467   - <v-flex xs8 class="ml-3">
1468   - <v-text-field
1469   - label="Select Image"
1470   - @click="pickFile"
1471   - v-model="imageName"
1472   - append-icon="attach_file"
1473   - ></v-text-field>
1474   - </v-flex>
1475   - </v-layout>
1476   - </v-flex>
1477   - <v-flex xs12 sm6>
1478   - <v-layout>
1479   - <v-flex xs4 class="pt-4 subheading">
1480   - <label class="right">Academic Year:</label>
1481   - </v-flex>
1482   - <v-flex xs8 class="ml-3">
1483   - <v-text-field
1484   - v-model="addStudents.establishmentYear"
1485   - placeholder="fill your Academic Year"
1486   - name="state"
1487   - type="number"
1488   - :rules="establishmentYearRules"
1489   - required
1490   - ></v-text-field>
1491   - </v-flex>
1492   - </v-layout>
1493   - </v-flex>
1494   - </v-layout>
1495   - <v-layout>
1496   - <v-flex xs12 sm12>
1497   - <v-layout>
1498   - <v-flex
1499   - xs3
1500   - class="pt-4 subheading pl-4"
1501   - style="max-width: 17%;"
  1143 + <v-form ref="form" v-model="valid" lazy-validation>
  1144 + <v-container fluid>
  1145 + <v-layout>
  1146 + <v-flex
  1147 + xs12
  1148 + class="text-xs-center text-sm-center text-md-center text-lg-center mr-4"
  1149 + >
  1150 + <v-avatar size="100px">
  1151 + <img src="/static/icon/user.png" v-if="!imageUrl" />
  1152 + </v-avatar>
  1153 + <input
  1154 + type="file"
  1155 + style="display: none"
  1156 + ref="image"
  1157 + accept="image/*"
  1158 + @change="onFilePicked"
  1159 + />
  1160 + <img
  1161 + :src="imageData.imageUrl"
  1162 + height="150"
  1163 + v-if="imageUrl"
  1164 + style="border-radius:50%; width:200px"
  1165 + />
  1166 + </v-flex>
  1167 + </v-layout>
  1168 + <v-layout>
  1169 + <v-flex xs12 sm6>
  1170 + <v-layout>
  1171 + <v-flex xs4 class="pt-4 subheading">
  1172 + <label class="right">Select Class:</label>
  1173 + </v-flex>
  1174 + <v-flex xs8 class="ml-3">
  1175 + <v-select
  1176 + :items="addclass"
  1177 + label="Select Class"
  1178 + v-model="addStudents.select"
  1179 + item-text="classNum"
  1180 + item-value="_id"
  1181 + name="Select Class"
  1182 + :rules="classRules"
  1183 + @change="getSection(addStudents.select)"
  1184 + required
  1185 + ></v-select>
  1186 + </v-flex>
  1187 + </v-layout>
  1188 + </v-flex>
  1189 + <v-flex xs12 sm6>
  1190 + <v-layout>
  1191 + <v-flex xs4 class="pt-4 subheading">
  1192 + <label class="right">Select Section:</label>
  1193 + </v-flex>
  1194 + <v-flex xs8 class="ml-3">
  1195 + <v-select
  1196 + :items="addSection"
  1197 + label="Select Section"
  1198 + v-model="addStudents.selectSection"
  1199 + item-text="name"
  1200 + item-value="_id"
  1201 + name="Select Section"
  1202 + :rules="sectionRules"
  1203 + required
  1204 + ></v-select>
  1205 + </v-flex>
  1206 + </v-layout>
  1207 + </v-flex>
  1208 + </v-layout>
  1209 + <v-layout>
  1210 + <v-flex xs12 sm6>
  1211 + <v-layout>
  1212 + <v-flex xs4 class="pt-4 subheading">
  1213 + <label class="right">Full Name:</label>
  1214 + </v-flex>
  1215 + <v-flex xs8 class="ml-3">
  1216 + <v-text-field
  1217 + v-model="addStudents.name"
  1218 + placeholder="fill your full Name"
  1219 + name="name"
  1220 + type="text"
  1221 + :rules="nameRules"
  1222 + required
  1223 + ></v-text-field>
  1224 + </v-flex>
  1225 + </v-layout>
  1226 + </v-flex>
  1227 + <v-flex xs12 sm6>
  1228 + <v-layout>
  1229 + <v-flex xs4 class="pt-4 subheading">
  1230 + <label class="right">Email ID:</label>
  1231 + </v-flex>
  1232 + <v-flex xs8 class="ml-3">
  1233 + <v-text-field
  1234 + placeholder="fill your email"
  1235 + :rules="emailRules"
  1236 + v-model="addStudents.email"
  1237 + type="text"
  1238 + name="email"
  1239 + required
  1240 + ></v-text-field>
  1241 + </v-flex>
  1242 + </v-layout>
  1243 + </v-flex>
  1244 + </v-layout>
  1245 + <v-layout>
  1246 + <v-flex xs12 sm6>
  1247 + <v-layout>
  1248 + <v-flex xs4 class="pt-4 subheading">
  1249 + <label class="right">Date of Birth:</label>
  1250 + </v-flex>
  1251 + <v-flex xs8 class="ml-3">
  1252 + <v-menu
  1253 + ref="menu"
  1254 + :close-on-content-click="false"
  1255 + v-model="menu"
  1256 + :nudge-right="40"
  1257 + lazy
  1258 + transition="scale-transition"
  1259 + offset-y
  1260 + full-width
  1261 + min-width="290px"
1502 1262 >
1503   - <label class>Present Address:</label>
1504   - </v-flex>
1505   - <v-flex xs12>
1506   - <v-text-field
1507   - name="input-4-3"
1508   - v-model="addStudents.presentAddress"
1509   - :rules="presentAddress"
1510   - placeholder="fill Your present Address"
1511   - required
1512   - ></v-text-field>
1513   - </v-flex>
1514   - </v-layout>
1515   - </v-flex>
1516   - <v-flex xs12 sm12>
1517   - <v-layout>
1518   - <v-flex xs3 class="pt-4 subheading" style="max-width: 17%;">
1519   - <label>Permanent Address:</label>
1520   - </v-flex>
1521   - <v-flex xs12>
1522 1263 <v-text-field
1523   - name="input-4-3"
1524   - v-model="addStudents.permanentAddress"
1525   - :rules="permanentAddress"
1526   - placeholder="fill Your Permanent Address"
1527   - required
  1264 + slot="activator"
  1265 + :rules="dateRules"
  1266 + v-model="addStudents.date"
  1267 + placeholder="Select date"
1528 1268 ></v-text-field>
1529   - </v-flex>
1530   - </v-layout>
1531   - </v-flex>
1532   - </v-layout>
1533   - <v-layout>
1534   - <v-flex xs12 sm12>
1535   - <v-card-actions>
1536   - <!-- <v-btn @click="clear" round dark>clear</v-btn> -->
1537   - <v-btn round dark @click="e2 = 1">
1538   - <v-icon dark left>arrow_back</v-icon>Back
1539   - </v-btn>
1540   - <v-spacer></v-spacer>
1541   - <v-btn @click="submit" round dark :loading="loading">Add</v-btn>
1542   - </v-card-actions>
1543   - </v-flex>
1544   - </v-layout>
1545   - </v-container>
1546   - </v-form>
  1269 + <v-date-picker
  1270 + ref="picker"
  1271 + v-model="addStudents.date"
  1272 + :max="new Date().toISOString().substr(0, 10)"
  1273 + min="1950-01-01"
  1274 + @input="menu = false"
  1275 + ></v-date-picker>
  1276 + </v-menu>
  1277 + </v-flex>
  1278 + </v-layout>
  1279 + </v-flex>
  1280 + <v-flex xs12 sm6>
  1281 + <v-layout>
  1282 + <v-flex xs4 class="pt-4 subheading">
  1283 + <label class="right">City:</label>
  1284 + </v-flex>
  1285 + <v-flex xs8 class="ml-3">
  1286 + <v-text-field
  1287 + v-model="addStudents.city"
  1288 + placeholder="fill your City Name"
  1289 + name="City"
  1290 + type="text"
  1291 + :rules="cityRules"
  1292 + required
  1293 + ></v-text-field>
  1294 + </v-flex>
  1295 + </v-layout>
  1296 + </v-flex>
  1297 + </v-layout>
  1298 + <v-layout>
  1299 + <v-flex xs12 sm6>
  1300 + <v-layout>
  1301 + <v-flex xs4 class="pt-4 subheading">
  1302 + <label class="right">State:</label>
  1303 + </v-flex>
  1304 + <v-flex xs8 class="ml-3">
  1305 + <v-text-field
  1306 + v-model="addStudents.state"
  1307 + placeholder="fill your State Name"
  1308 + name="state"
  1309 + type="text"
  1310 + :rules="stateRules"
  1311 + required
  1312 + ></v-text-field>
  1313 + </v-flex>
  1314 + </v-layout>
  1315 + </v-flex>
  1316 + <v-flex xs12 sm6>
  1317 + <v-layout>
  1318 + <v-flex xs4 class="pt-4 subheading">
  1319 + <label class="right">Pincode:</label>
  1320 + </v-flex>
  1321 + <v-flex xs8 class="ml-3">
  1322 + <v-text-field
  1323 + v-model="addStudents.pincode"
  1324 + placeholder="fill your pincode"
  1325 + name="pincode"
  1326 + type="number"
  1327 + :rules="pincode"
  1328 + required
  1329 + ></v-text-field>
  1330 + </v-flex>
  1331 + </v-layout>
  1332 + </v-flex>
  1333 + </v-layout>
  1334 + <v-layout>
  1335 + <v-flex xs12 sm6>
  1336 + <v-layout>
  1337 + <v-flex xs4 class="pt-4 subheading">
  1338 + <label class="right">Mobile No:</label>
  1339 + </v-flex>
  1340 + <v-flex xs8 class="ml-3">
  1341 + <v-text-field
  1342 + v-model="addStudents.mobile"
  1343 + placeholder="fill your MobileNo"
  1344 + name="mobileNo"
  1345 + type="number"
  1346 + :rules="mobileNoRules"
  1347 + required
  1348 + ></v-text-field>
  1349 + </v-flex>
  1350 + </v-layout>
  1351 + </v-flex>
  1352 + <v-flex xs12 sm6>
  1353 + <v-layout>
  1354 + <v-flex xs4 class="pt-4 subheading">
  1355 + <label class="right">Select Country:</label>
  1356 + </v-flex>
  1357 + <v-flex xs8 class="ml-3">
  1358 + <v-autocomplete
  1359 + v-model="addStudents.country"
  1360 + :rules="country"
  1361 + :items="countries"
  1362 + placeholder="Select Country Name"
  1363 + required
  1364 + ></v-autocomplete>
  1365 + </v-flex>
  1366 + </v-layout>
  1367 + </v-flex>
  1368 + </v-layout>
  1369 + <v-layout>
  1370 + <v-flex xs12 sm6>
  1371 + <v-layout>
  1372 + <v-flex xs4 class="pt-4 subheading">
  1373 + <label class="right">Gender:</label>
  1374 + </v-flex>
  1375 + <v-flex xs8 class="ml-3">
  1376 + <v-select
  1377 + :items="gender"
  1378 + v-model="addStudents.gender"
  1379 + :rules="genderRules"
  1380 + label="Select Gender"
  1381 + required
  1382 + ></v-select>
  1383 + </v-flex>
  1384 + </v-layout>
  1385 + </v-flex>
  1386 + <v-flex xs12 sm6>
  1387 + <v-layout>
  1388 + <v-flex xs4 class="pt-4 subheading">
  1389 + <label class="right">Blood Group:</label>
  1390 + </v-flex>
  1391 + <v-flex xs8 class="ml-3">
  1392 + <v-text-field
  1393 + v-model="addStudents.bloodGroup"
  1394 + placeholder="Fill your Blood Group"
  1395 + required
  1396 + ></v-text-field>
  1397 + </v-flex>
  1398 + </v-layout>
  1399 + </v-flex>
  1400 + </v-layout>
  1401 + <v-layout>
  1402 + <v-flex xs12 sm6>
  1403 + <v-layout>
  1404 + <v-flex xs4 class="pt-4 subheading">
  1405 + <label class="right">Allergies:</label>
  1406 + </v-flex>
  1407 + <v-flex xs8 class="ml-3">
  1408 + <v-text-field
  1409 + v-model="addStudents.allergies"
  1410 + placeholder="Fill your Allergies"
  1411 + required
  1412 + ></v-text-field>
  1413 + </v-flex>
  1414 + </v-layout>
  1415 + </v-flex>
  1416 + <v-flex xs12 sm6>
  1417 + <v-layout>
  1418 + <v-flex xs4 class="pt-4 subheading">
  1419 + <label class="right">Medical Notes:</label>
  1420 + </v-flex>
  1421 + <v-flex xs8 class="ml-3">
  1422 + <v-text-field
  1423 + v-model="addStudents.medicalNotes"
  1424 + placeholder="Fill your Medical Notes"
  1425 + required
  1426 + ></v-text-field>
  1427 + </v-flex>
  1428 + </v-layout>
  1429 + </v-flex>
  1430 + </v-layout>
  1431 + <v-layout>
  1432 + <v-flex xs12 sm6>
  1433 + <v-layout>
  1434 + <v-flex xs4 class="pt-4 subheading">
  1435 + <label class="right">Height:</label>
  1436 + </v-flex>
  1437 + <v-flex xs8 class="ml-3">
  1438 + <v-text-field
  1439 + v-model="addStudents.height"
  1440 + placeholder="Fill your Height"
  1441 + required
  1442 + ></v-text-field>
  1443 + </v-flex>
  1444 + </v-layout>
  1445 + </v-flex>
  1446 + <v-flex xs12 sm6>
  1447 + <v-layout>
  1448 + <v-flex xs4 class="pt-4 subheading">
  1449 + <label class="right">Weight:</label>
  1450 + </v-flex>
  1451 + <v-flex xs8 class="ml-3">
  1452 + <v-text-field
  1453 + v-model="addStudents.weight"
  1454 + placeholder="Fill your Weight"
  1455 + required
  1456 + ></v-text-field>
  1457 + </v-flex>
  1458 + </v-layout>
  1459 + </v-flex>
  1460 + </v-layout>
  1461 + <v-layout>
  1462 + <v-flex xs12 sm6>
  1463 + <v-layout>
  1464 + <v-flex xs4 class="pt-4 subheading">
  1465 + <label class="right">Uplaod Image:</label>
  1466 + </v-flex>
  1467 + <v-flex xs8 class="ml-3">
  1468 + <v-text-field
  1469 + label="Select Image"
  1470 + @click="pickFile"
  1471 + v-model="imageName"
  1472 + append-icon="attach_file"
  1473 + ></v-text-field>
  1474 + </v-flex>
  1475 + </v-layout>
  1476 + </v-flex>
  1477 + <v-flex xs12 sm6>
  1478 + <v-layout>
  1479 + <v-flex xs4 class="pt-4 subheading">
  1480 + <label class="right">Academic Year:</label>
  1481 + </v-flex>
  1482 + <v-flex xs8 class="ml-3">
  1483 + <v-text-field
  1484 + v-model="addStudents.establishmentYear"
  1485 + placeholder="fill your Academic Year"
  1486 + name="state"
  1487 + type="number"
  1488 + :rules="establishmentYearRules"
  1489 + required
  1490 + ></v-text-field>
  1491 + </v-flex>
  1492 + </v-layout>
  1493 + </v-flex>
  1494 + </v-layout>
  1495 + <v-layout>
  1496 + <v-flex xs12 sm12>
  1497 + <v-layout>
  1498 + <v-flex
  1499 + xs3
  1500 + class="pt-4 subheading pl-4"
  1501 + style="max-width: 17%;"
  1502 + >
  1503 + <label class>Present Address:</label>
  1504 + </v-flex>
  1505 + <v-flex xs12>
  1506 + <v-text-field
  1507 + name="input-4-3"
  1508 + v-model="addStudents.presentAddress"
  1509 + :rules="presentAddress"
  1510 + placeholder="fill Your present Address"
  1511 + required
  1512 + ></v-text-field>
  1513 + </v-flex>
  1514 + </v-layout>
  1515 + </v-flex>
  1516 + <v-flex xs12 sm12>
  1517 + <v-layout>
  1518 + <v-flex xs3 class="pt-4 subheading" style="max-width: 17%;">
  1519 + <label>Permanent Address:</label>
  1520 + </v-flex>
  1521 + <v-flex xs12>
  1522 + <v-text-field
  1523 + name="input-4-3"
  1524 + v-model="addStudents.permanentAddress"
  1525 + :rules="permanentAddress"
  1526 + placeholder="fill Your Permanent Address"
  1527 + required
  1528 + ></v-text-field>
  1529 + </v-flex>
  1530 + </v-layout>
  1531 + </v-flex>
  1532 + </v-layout>
  1533 + <v-layout>
  1534 + <v-flex xs12 sm12>
  1535 + <v-card-actions>
  1536 + <!-- <v-btn @click="clear" round dark>clear</v-btn> -->
  1537 + <v-btn round dark @click="e2 = 1">
  1538 + <v-icon dark left>arrow_back</v-icon>Back
  1539 + </v-btn>
  1540 + <v-spacer></v-spacer>
  1541 + <v-btn @click="submit" round dark :loading="loading">Add</v-btn>
  1542 + </v-card-actions>
  1543 + </v-flex>
  1544 + </v-layout>
  1545 + </v-container>
  1546 + </v-form>
1547 1547 </v-flex>
1548 1548 </v-container>
1549 1549 </v-stepper-content>
... ... @@ -1914,7 +1914,7 @@ export default {
1914 1914 state: "",
1915 1915 gender: "",
1916 1916 fatherName: "",
1917   - fatheCellNo: "",
  1917 + fatherCellNo: "",
1918 1918 motherName: "",
1919 1919 motherCellNo: "",
1920 1920 select: "",
... ... @@ -2066,6 +2066,10 @@ export default {
2066 2066 editItem(item) {
2067 2067 this.editedIndex = this.desserts.indexOf(item);
2068 2068 this.editedItem = Object.assign({}, item);
  2069 + this.editedItem.fatherName = item.parentId.fatherName;
  2070 + this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
  2071 + this.editedItem.motherName = item.parentId.motherName;
  2072 + this.editedItem.motherCellNo = item.parentId.motherCellNo;
2069 2073 // if(this.editedItem.dob != undefined){
2070 2074 // this.editedItem.dob = this.editedItem.dob.substring(0, 10)
2071 2075 // }else if(this.editedItem.dob = undefined){
... ... @@ -2078,8 +2082,14 @@ export default {
2078 2082 this.dialog = true;
2079 2083 },
2080 2084 profile(item) {
  2085 + console.log("item", item);
2081 2086 this.editedIndex = this.desserts.indexOf(item);
2082 2087 this.editedItem = Object.assign({}, item);
  2088 + this.editedItem.fatherName = item.parentId.fatherName;
  2089 + this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
  2090 + this.editedItem.motherName = item.parentId.motherName;
  2091 + this.editedItem.motherCellNo = item.parentId.motherCellNo;
  2092 +
2083 2093 this.dialog1 = true;
2084 2094 },
2085 2095 deleteItem(item) {
... ...