Commit b39d2afd24806c4700422620091dbea0fd3cf131

Authored by Neeraj Sharma
1 parent 813e55a793

responsive dashboard

src/pages/Class/addclass.vue
... ... @@ -179,7 +179,7 @@
179 179 src="/static/icon/edit1.png"
180 180 >
181 181 <img
182   - style="cursor:pointer; height:20px; "
  182 + style="cursor:pointer; width:20px; height:20px; "
183 183 class="mr-5"
184 184 @click="deleteItem(props.item)"
185 185 src="/static/icon/delete1.png"
... ...
src/pages/Event/event.vue
... ... @@ -234,7 +234,7 @@
234 234 src="/static/icon/edit1.png"
235 235 >
236 236 <img
237   - style="cursor:pointer; height:20px; "
  237 + style="cursor:pointer;width:20px; height:20px; "
238 238 class="mr-5"
239 239 @click="deleteItem(props.item)"
240 240 src="/static/icon/delete1.png"
... ...
src/pages/News/news.vue
... ... @@ -260,7 +260,7 @@
260 260 src="/static/icon/edit1.png"
261 261 >
262 262 <img
263   - style="cursor:pointer; height:20px; "
  263 + style="cursor:pointer;width:20px; height:20px; "
264 264 class="mr-5"
265 265 @click="deleteItem(props.item)"
266 266 src="/static/icon/delete1.png"
... ...
src/pages/Notification/notification.vue
... ... @@ -231,7 +231,7 @@
231 231 src="/static/icon/edit1.png"
232 232 >
233 233 <img
234   - style="cursor:pointer; height:20px; "
  234 + style="cursor:pointer;width:20px; height:20px; "
235 235 class="mr-5"
236 236 @click="deleteItem(props.item)"
237 237 src="/static/icon/delete1.png"
... ...
src/pages/Reminder/reminder.vue
... ... @@ -228,7 +228,7 @@
228 228 src="/static/icon/edit1.png"
229 229 >
230 230 <img
231   - style="cursor:pointer; height:20px; "
  231 + style="cursor:pointer; width:20px;height:20px; "
232 232 class="mr-5"
233 233 @click="deleteItem(props.item)"
234 234 src="/static/icon/delete1.png"
... ...
src/pages/Section/section.vue
... ... @@ -207,7 +207,7 @@
207 207 src="/static/icon/edit1.png"
208 208 >
209 209 <img
210   - style="cursor:pointer; height:20px; "
  210 + style="cursor:pointer; width:20px; height:20px; "
211 211 class="mr-5"
212 212 @click="deleteItem(props.item)"
213 213 src="/static/icon/delete1.png"
... ...
src/pages/Students/students.vue
... ... @@ -973,7 +973,7 @@
973 973 src="/static/icon/edit1.png"
974 974 />
975 975 <img
976   - style="cursor:pointer; height:20px; "
  976 + style="cursor:pointer;width:20px; height:20px; "
977 977 class="mr-5"
978 978 @click="deleteItem(props.item)"
979 979 src="/static/icon/delete1.png"
... ...
src/pages/Teachers/teachers.vue
... ... @@ -520,7 +520,7 @@
520 520 src="/static/icon/edit1.png"
521 521 />
522 522 <img
523   - style="cursor:pointer; height:20px; "
  523 + style="cursor:pointer;width:20px; height:20px; "
524 524 class="mr-5"
525 525 @click="deleteItem(props.item)"
526 526 src="/static/icon/delete1.png"
... ...
src/pages/TimeTable/timeTable.vue
... ... @@ -407,7 +407,7 @@
407 407 <!-- ****** EXISTING-USERS TIME-TABLE ****** -->
408 408  
409 409 <v-card flat>
410   - <v-card-actions>
  410 + <v-card-actions class="hidden-xs-only hidden-sm-only">
411 411 <v-layout>
412 412 <label class="right mt-4 ml-5">Select Class:</label>
413 413 <v-select
... ... @@ -436,6 +436,44 @@
436 436 <v-spacer></v-spacer>
437 437 <v-btn @click="findTimeTable()" round dark :loading="loading" class="left">Find</v-btn>
438 438 </v-card-actions>
  439 + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only">
  440 + <v-flex xs4 sm2 class="mt-4 ml-2">
  441 + <label>Select Class:</label>
  442 + </v-flex>
  443 + <v-flex xs6 sm9>
  444 + <v-select
  445 + :items="addclass"
  446 + label="Select Class"
  447 + v-model="selectTimeTable.select"
  448 + item-text="classNum"
  449 + item-value="_id"
  450 + name="Select Class"
  451 + @change="getSections(selectTimeTable.select)"
  452 + required
  453 + ></v-select>
  454 + </v-flex>
  455 + </v-layout>
  456 + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only">
  457 + <v-flex xs4 sm2 class="mt-4 ml-2">
  458 + <label>Select Section:</label>
  459 + </v-flex>
  460 + <v-flex xs6 sm9>
  461 + <v-select
  462 + :items="addSection"
  463 + label="Select Section"
  464 + v-model="selectTimeTable.selectSection"
  465 + item-text="name"
  466 + item-value="_id"
  467 + name="Select Section"
  468 + required
  469 + ></v-select>
  470 + </v-flex>
  471 + </v-layout>
  472 + <v-layout class="hidden-xl-only hidden-lg-only hidden-md-only">
  473 + <v-flex xs12>
  474 + <v-btn @click="findTimeTable()" round dark :loading="loading" class="right mr-4 mb-2">Find</v-btn>
  475 + </v-flex>
  476 + </v-layout>
439 477 </v-card>
440 478 <v-flex xs12>
441 479 <v-data-table
... ... @@ -462,7 +500,7 @@
462 500 src="/static/icon/edit1.png"
463 501 />
464 502 <img
465   - style="cursor:pointer; height:20px; "
  503 + style="cursor:pointer;width:20px; height:20px; "
466 504 class="mr-5"
467 505 @click="deleteItem(props.item)"
468 506 src="/static/icon/delete1.png"
... ... @@ -499,7 +537,7 @@
499 537 @click="updateTimeTable(list, timeTableList)"
500 538 />
501 539 <img
502   - style="cursor:pointer; height:20px; "
  540 + style="cursor:pointer; width:20px; height:20px; "
503 541 src="/static/icon/delete1.png"
504 542 @click="deleteTimeTable(list,props.item.lectures)"
505 543 />
... ... @@ -779,7 +817,7 @@ export default {
779 817 timeOutRules: [v => !!v || "Time Out is required"],
780 818 lectureRules: [v => !!v || "Lecture No is required"],
781 819 subjectNameRules: [v => !!v || "Subject Name is required"],
782   - getParticulerLecture:"",
  820 + getParticulerLecture: "",
783 821 headers: [
784 822 {
785 823 text: "No",
... ... @@ -922,7 +960,7 @@ export default {
922 960 },
923 961 getTimeTable(item) {
924 962 this.showLoader = true;
925   - this.getParticulerLecture = item._id
  963 + this.getParticulerLecture = item._id;
926 964 var token = this.$store.state.token;
927 965 http()
928 966 .get(
... ... @@ -1013,38 +1051,38 @@ export default {
1013 1051 },
1014 1052 AddLecture() {
1015 1053 if (this.$refs.lectureForm.validate()) {
1016   - http()
1017   - .post("/addLecture", this.addlectures)
1018   - .then(response => {
1019   - if ((this.snackbar = true)) {
1020   - this.text = "New Add Lecture successfully";
1021   - }
  1054 + http()
  1055 + .post("/addLecture", this.addlectures)
  1056 + .then(response => {
  1057 + if ((this.snackbar = true)) {
  1058 + this.text = "New Add Lecture successfully";
  1059 + }
1022 1060 var token = this.$store.state.token;
1023 1061 http()
1024   - .get(
1025   - "/getParticularTimeTable",
1026   - { params: { timeTableId: this.getParticulerLecture } },
1027   - {
  1062 + .get(
  1063 + "/getParticularTimeTable",
  1064 + { params: { timeTableId: this.getParticulerLecture } },
  1065 + {
1028 1066 headers: { Authorization: "Bearer " + token }
1029   - }
1030   - )
1031   - .then(response => {
1032   - this.timeTableList = response.data.data;
1033   - this.showLoader = false;
1034   - })
1035   - .catch(err => {
1036   - this.showLoader = false;
1037   - // console.log("err====>", err);
1038   - });
1039   - this.closedialogLecture();
1040   - this.clearLeactureData();
1041   - })
1042   - .catch(error => {
1043   - if ((this.snackbar = true)) {
1044   - this.text = error.response.data.message;
1045   - this.text = error.response.data.statusText;
1046   - }
1047   - });
  1067 + }
  1068 + )
  1069 + .then(response => {
  1070 + this.timeTableList = response.data.data;
  1071 + this.showLoader = false;
  1072 + })
  1073 + .catch(err => {
  1074 + this.showLoader = false;
  1075 + // console.log("err====>", err);
  1076 + });
  1077 + this.closedialogLecture();
  1078 + this.clearLeactureData();
  1079 + })
  1080 + .catch(error => {
  1081 + if ((this.snackbar = true)) {
  1082 + this.text = error.response.data.message;
  1083 + this.text = error.response.data.statusText;
  1084 + }
  1085 + });
1048 1086 }
1049 1087 },
1050 1088 updateParticularTable() {
... ... @@ -1172,7 +1210,7 @@ export default {
1172 1210 clear() {
1173 1211 this.$refs.form.reset();
1174 1212 },
1175   - clearLeactureData(){
  1213 + clearLeactureData() {
1176 1214 this.$refs.lectureForm.reset();
1177 1215 },
1178 1216 save() {
... ... @@ -1371,9 +1409,9 @@ h4 {
1371 1409 .pl-3 {
1372 1410 padding-left: 0px !important;
1373 1411 }
1374   - .right {
  1412 + /* .right {
1375 1413 float: none !important;
1376   - }
  1414 + } */
1377 1415 .subheading {
1378 1416 font-size: 14px !important;
1379 1417 }
... ...
static/css/custom.css
... ... @@ -33,7 +33,7 @@
33 33  
34 34 @media screen and (max-width: 600px) {
35 35 img {
36   - position: absolute;
  36 + /* position: absolute; */
37 37 top: 13px;
38 38 left: 10px;
39 39 height: 34px;
... ...