Commit a0650f86b4e5a4e05d77681e91c01a09d77c1e2e
1 parent
afc98f0286
Exists in
master
and in
3 other branches
implement class validation of edit students and parenst
Showing
2 changed files
with
57 additions
and
65 deletions
Show diff stats
src/pages/Parent/parents.vue
... | ... | @@ -161,7 +161,10 @@ |
161 | 161 | </v-flex> |
162 | 162 | </v-layout> |
163 | 163 | </v-card-text> |
164 | - <v-card-text style="height: 600px;" class="hidden-lg-only hidden-xl-only hidden-md-only"> | |
164 | + <v-card-text | |
165 | + style="height: 600px;" | |
166 | + class="hidden-lg-only hidden-xl-only hidden-md-only" | |
167 | + > | |
165 | 168 | <v-flex xs12> |
166 | 169 | <v-layout wrap> |
167 | 170 | <v-flex xs12 class="pt-4 subheading"> |
... | ... | @@ -900,14 +903,17 @@ export default { |
900 | 903 | http() |
901 | 904 | .put("/updateParent", this.editedItem) |
902 | 905 | .then(response => { |
903 | - if ((this.snackbar = true)) { | |
904 | - this.text = "Successfully Student Existing User"; | |
905 | - } | |
906 | + this.snackbar = true; | |
907 | + this.color = "green"; | |
908 | + this.text = "Successfully Student Existing User"; | |
906 | 909 | this.getParentDetails(); |
907 | 910 | this.close(); |
908 | 911 | }) |
909 | 912 | .catch(error => { |
910 | - if ((this.snackbar = true)) { | |
913 | + this.snackbar = true; | |
914 | + this.color = "error"; | |
915 | + this.text = error.response.data.message; | |
916 | + if (error.response.data.statusText) { | |
911 | 917 | this.text = error.response.data.statusText; |
912 | 918 | } |
913 | 919 | }); |
... | ... | @@ -920,17 +926,17 @@ export default { |
920 | 926 | .post("/createParent", this.parentData) |
921 | 927 | .then(response => { |
922 | 928 | this.parentId = response.data.data.id; |
923 | - if ((this.snackbar = true)) { | |
924 | - this.text = "successfully"; | |
925 | - } | |
929 | + this.snackbar = true; | |
930 | + this.text = response.data.data.message; | |
926 | 931 | this.getParentDetails(); |
927 | 932 | this.clear(); |
928 | 933 | this.loading = false; |
929 | 934 | }) |
930 | 935 | .catch(error => { |
931 | 936 | console.log(error.response.data); |
932 | - if ((this.snackbar = true)) { | |
933 | - this.text = error.response.data.message; | |
937 | + this.snackbar = true; | |
938 | + this.text = error.response.data.message; | |
939 | + if (error.response.data.statusText) { | |
934 | 940 | this.text = error.response.data.statusText; |
935 | 941 | } |
936 | 942 | this.loading = false; | ... | ... |
src/pages/Students/students.vue
... | ... | @@ -471,7 +471,7 @@ |
471 | 471 | |
472 | 472 | <!-- ****** PROFILE VIEW STUDENTS DEATILS ****** --> |
473 | 473 | |
474 | - <v-dialog v-model="dialog1" max-width="1100px" scrollable> | |
474 | + <v-dialog v-model="dialog1" max-width="1200px" scrollable> | |
475 | 475 | <v-card> |
476 | 476 | <v-toolbar color="grey lighten-2" flat> |
477 | 477 | <v-spacer></v-spacer> |
... | ... | @@ -488,19 +488,19 @@ |
488 | 488 | </v-flex> |
489 | 489 | <v-container grid-list-md> |
490 | 490 | <v-layout wrap> |
491 | - <v-flex xs12 sm6> | |
491 | + <v-flex xs12 sm5> | |
492 | 492 | <v-layout> |
493 | - <v-flex xs6 sm5> | |
493 | + <v-flex xs6 sm6> | |
494 | 494 | <h5 class="right my-1"> |
495 | 495 | <b>Full Name:</b> |
496 | 496 | </h5> |
497 | 497 | </v-flex> |
498 | - <v-flex sm7 xs6> | |
498 | + <v-flex sm6 xs6> | |
499 | 499 | <h5 class="my-1 left">{{ editedItem.name }}</h5> |
500 | 500 | </v-flex> |
501 | 501 | </v-layout> |
502 | 502 | </v-flex> |
503 | - <v-flex xs12 sm6> | |
503 | + <v-flex xs12 sm7> | |
504 | 504 | <v-layout> |
505 | 505 | <v-flex xs6 sm4> |
506 | 506 | <h5 class="right my-1"> |
... | ... | @@ -514,21 +514,21 @@ |
514 | 514 | </v-flex> |
515 | 515 | </v-layout> |
516 | 516 | <v-layout wrap> |
517 | - <v-flex xs12 sm6> | |
517 | + <v-flex xs12 sm5> | |
518 | 518 | <v-layout> |
519 | - <v-flex xs6 sm5> | |
519 | + <v-flex xs6 sm6> | |
520 | 520 | <b> |
521 | 521 | <h5 class="right my-1"> |
522 | 522 | <b>Gender:</b> |
523 | 523 | </h5> |
524 | 524 | </b> |
525 | 525 | </v-flex> |
526 | - <v-flex sm7 xs6> | |
526 | + <v-flex sm6 xs6> | |
527 | 527 | <h5 class="my-1 left">{{ editedItem.gender }}</h5> |
528 | 528 | </v-flex> |
529 | 529 | </v-layout> |
530 | 530 | </v-flex> |
531 | - <v-flex xs12 sm6> | |
531 | + <v-flex xs12 sm7> | |
532 | 532 | <v-layout> |
533 | 533 | <v-flex xs6 sm4> |
534 | 534 | <b> |
... | ... | @@ -537,42 +537,28 @@ |
537 | 537 | </h5> |
538 | 538 | </b> |
539 | 539 | </v-flex> |
540 | - <v-flex sm7 xs6> | |
540 | + <v-flex sm8 xs6> | |
541 | 541 | <h5 class="my-1">{{ dates(editedItem.dob) }}</h5> |
542 | 542 | </v-flex> |
543 | 543 | </v-layout> |
544 | 544 | </v-flex> |
545 | 545 | </v-layout> |
546 | 546 | <v-layout wrap> |
547 | - <v-flex xs12 sm6> | |
547 | + <v-flex xs12 sm5> | |
548 | 548 | <v-layout> |
549 | - <v-flex xs6 sm5> | |
549 | + <v-flex xs6 sm6> | |
550 | 550 | <b> |
551 | 551 | <h5 class="right my-1"> |
552 | 552 | <b>Blood Group:</b> |
553 | 553 | </h5> |
554 | 554 | </b> |
555 | 555 | </v-flex> |
556 | - <v-flex sm7 xs6> | |
556 | + <v-flex sm6 xs6> | |
557 | 557 | <h5 class="my-1 left">{{ editedItem.bloodGroup }}</h5> |
558 | 558 | </v-flex> |
559 | 559 | </v-layout> |
560 | 560 | </v-flex> |
561 | - <!-- <v-flex xs12 sm6> | |
562 | - <v-layout> | |
563 | - <v-flex xs6 sm4> | |
564 | - <b> | |
565 | - <h5 class="right my-1"> | |
566 | - <b>Allergies:</b> | |
567 | - </h5> | |
568 | - </b> | |
569 | - </v-flex> | |
570 | - <v-flex sm8 xs6> | |
571 | - <h5 class="my-1">{{ editedItem.allergies }}</h5> | |
572 | - </v-flex> | |
573 | - </v-layout> | |
574 | - </v-flex>--> | |
575 | - <v-flex xs12 sm6> | |
561 | + <v-flex xs12 sm7> | |
576 | 562 | <v-layout> |
577 | 563 | <v-flex xs6 sm4> |
578 | 564 | <b> |
... | ... | @@ -581,28 +567,28 @@ |
581 | 567 | </h5> |
582 | 568 | </b> |
583 | 569 | </v-flex> |
584 | - <v-flex sm6 xs6> | |
570 | + <v-flex sm8 xs6> | |
585 | 571 | <h5 class="my-1">{{ editedItem.rollNo }}</h5> |
586 | 572 | </v-flex> |
587 | 573 | </v-layout> |
588 | 574 | </v-flex> |
589 | 575 | </v-layout> |
590 | 576 | <v-layout wrap> |
591 | - <v-flex xs12 sm6> | |
577 | + <v-flex xs12 sm5> | |
592 | 578 | <v-layout> |
593 | - <v-flex xs6 sm5> | |
579 | + <v-flex xs6 sm6> | |
594 | 580 | <b> |
595 | 581 | <h5 class="right my-1"> |
596 | 582 | <b>Height:</b> |
597 | 583 | </h5> |
598 | 584 | </b> |
599 | 585 | </v-flex> |
600 | - <v-flex sm7 xs6> | |
586 | + <v-flex sm6 xs6> | |
601 | 587 | <h5 class="my-1 left">{{ editedItem.height }}</h5> |
602 | 588 | </v-flex> |
603 | 589 | </v-layout> |
604 | 590 | </v-flex> |
605 | - <v-flex xs12 sm6> | |
591 | + <v-flex xs12 sm7> | |
606 | 592 | <v-layout> |
607 | 593 | <v-flex xs6 sm4> |
608 | 594 | <b> |
... | ... | @@ -618,21 +604,21 @@ |
618 | 604 | </v-flex> |
619 | 605 | </v-layout> |
620 | 606 | <v-layout wrap> |
621 | - <v-flex xs12 sm6> | |
607 | + <v-flex xs12 sm5> | |
622 | 608 | <v-layout> |
623 | - <v-flex xs6 sm5> | |
609 | + <v-flex xs6 sm6> | |
624 | 610 | <b> |
625 | 611 | <h5 class="right my-1"> |
626 | 612 | <b>City:</b> |
627 | 613 | </h5> |
628 | 614 | </b> |
629 | 615 | </v-flex> |
630 | - <v-flex sm7 xs6> | |
616 | + <v-flex sm6 xs6> | |
631 | 617 | <h5 class="my-1 left">{{ editedItem.city }}</h5> |
632 | 618 | </v-flex> |
633 | 619 | </v-layout> |
634 | 620 | </v-flex> |
635 | - <v-flex xs12 sm6> | |
621 | + <v-flex xs12 sm7> | |
636 | 622 | <v-layout> |
637 | 623 | <v-flex xs6 sm4> |
638 | 624 | <b> |
... | ... | @@ -648,23 +634,23 @@ |
648 | 634 | </v-flex> |
649 | 635 | </v-layout> |
650 | 636 | <v-layout wrap> |
651 | - <v-flex xs12 sm6> | |
637 | + <v-flex xs12 sm5> | |
652 | 638 | <v-layout> |
653 | - <v-flex xs6 sm5> | |
639 | + <v-flex xs6 sm6> | |
654 | 640 | <b> |
655 | 641 | <h5 class="right my-1"> |
656 | 642 | <b>Pincode:</b> |
657 | 643 | </h5> |
658 | 644 | </b> |
659 | 645 | </v-flex> |
660 | - <v-flex sm7 xs6> | |
646 | + <v-flex sm6 xs6> | |
661 | 647 | <h5 class="my-1">{{ editedItem.pincode }}</h5> |
662 | 648 | </v-flex> |
663 | 649 | </v-layout> |
664 | 650 | </v-flex> |
665 | - <v-flex xs12 sm5> | |
651 | + <v-flex xs12 sm7> | |
666 | 652 | <v-layout> |
667 | - <v-flex xs6 sm5> | |
653 | + <v-flex xs6 sm4> | |
668 | 654 | <b> |
669 | 655 | <h5 class="right my-1"> |
670 | 656 | <b>Country:</b> |
... | ... | @@ -678,9 +664,9 @@ |
678 | 664 | </v-flex> |
679 | 665 | </v-layout> |
680 | 666 | <v-layout wrap> |
681 | - <v-flex xs12 sm6> | |
667 | + <v-flex xs12 sm5> | |
682 | 668 | <v-layout> |
683 | - <v-flex sm5 xs6> | |
669 | + <v-flex sm6 xs6> | |
684 | 670 | <b> |
685 | 671 | <h5 class="right my-1"> |
686 | 672 | <b>Mobile No:</b> |
... | ... | @@ -692,7 +678,7 @@ |
692 | 678 | </v-flex> |
693 | 679 | </v-layout> |
694 | 680 | </v-flex> |
695 | - <v-flex xs12 sm6> | |
681 | + <v-flex xs12 sm7> | |
696 | 682 | <v-layout> |
697 | 683 | <v-flex xs6 sm4> |
698 | 684 | <b> |
... | ... | @@ -722,9 +708,9 @@ |
722 | 708 | </v-flex> |
723 | 709 | </v-layout> |
724 | 710 | </v-flex> |
725 | - <v-flex xs12 sm6> | |
711 | + <v-flex xs12 sm7> | |
726 | 712 | <v-layout> |
727 | - <v-flex xs6 sm6> | |
713 | + <v-flex xs6 sm4> | |
728 | 714 | <b> |
729 | 715 | <h5 class="right my-1"> |
730 | 716 | <b>FatherCellNo:</b> |
... | ... | @@ -752,16 +738,16 @@ |
752 | 738 | </v-flex> |
753 | 739 | </v-layout> |
754 | 740 | </v-flex> |
755 | - <v-flex xs12 sm6> | |
741 | + <v-flex xs12 sm7> | |
756 | 742 | <v-layout> |
757 | - <v-flex xs6 sm6> | |
743 | + <v-flex xs6 sm4> | |
758 | 744 | <b> |
759 | 745 | <h5 class="my-1 right"> |
760 | 746 | <b>AcademicYear:</b> |
761 | 747 | </h5> |
762 | 748 | </b> |
763 | 749 | </v-flex> |
764 | - <v-flex sm5 xs6> | |
750 | + <v-flex sm5 xs8> | |
765 | 751 | <h5 class="my-1">{{ editedItem.establishmentYear }}</h5> |
766 | 752 | </v-flex> |
767 | 753 | </v-layout> |
... | ... | @@ -782,30 +768,30 @@ |
782 | 768 | </v-flex> |
783 | 769 | </v-layout> |
784 | 770 | </v-flex> |
785 | - <v-flex xs12 sm5 class="hidden-xs-only"> | |
771 | + <v-flex xs12 sm7 class="hidden-xs-only"> | |
786 | 772 | <v-layout wrap> |
787 | - <v-flex sm6> | |
773 | + <v-flex sm4> | |
788 | 774 | <b> |
789 | 775 | <h5 class="my-1 right"> |
790 | 776 | <b>present Address:</b> |
791 | 777 | </h5> |
792 | 778 | </b> |
793 | 779 | </v-flex> |
794 | - <v-flex sm5> | |
780 | + <v-flex sm8> | |
795 | 781 | <h5 class="my-1">{{ editedItem.presentAddress }}</h5> |
796 | 782 | </v-flex> |
797 | 783 | </v-layout> |
798 | 784 | </v-flex> |
799 | 785 | <v-flex sm6 class="hidden-xs-only"> |
800 | 786 | <v-layout wrap> |
801 | - <v-flex sm6> | |
787 | + <v-flex sm5> | |
802 | 788 | <b> |
803 | 789 | <h5 class="my-1 right"> |
804 | 790 | <b>Permanent Address:</b> |
805 | 791 | </h5> |
806 | 792 | </b> |
807 | 793 | </v-flex> |
808 | - <v-flex sm6> | |
794 | + <v-flex sm7> | |
809 | 795 | <h5 class="my-1">{{ editedItem.permanentAddress }}</h5> |
810 | 796 | </v-flex> |
811 | 797 | </v-layout> | ... | ... |