Commit 29ac0dbb24e52d33f97b75a9c42ecd5764daba46

Authored by Neeraj Sharma
1 parent f9b486fe1c

something changes

src/Services/http.js
1 import axios from 'axios' 1 import axios from 'axios'
2 import store from '@/store/store' 2 import store from '@/store/store'
3 3
4 const baseDomain = "http://13.234.251.173:8001/v1";
5
6 const baseURL = `${baseDomain}`;
7
4 export default () => { 8 export default () => {
5 return axios.create({ 9 return axios.create({
6 // baseURL: 'http://192.168.2.221:3002/v1', 10 // baseURL: 'http://192.168.2.221:3002/v1',
7 baseURL: 'http://13.234.251.173:8001/v1', 11 baseURL,
8 headers: { 12 headers: {
9 Authorization: `Bearer ${store.state.token}` 13 Authorization: `Bearer ${store.state.token}`
10 } 14 }
11 }) 15 })
12 } 16 }
src/components/ThemeSettings.vue
1 <template> 1 <template>
2 <div id="themeSetting"> 2 <div id="themeSetting">
3 <v-toolbar color="blue" dark> 3 <v-toolbar color="blue" dark>
4 <v-toolbar-title>Theme Settings</v-toolbar-title> 4 <v-toolbar-title>Theme Settings</v-toolbar-title>
5 </v-toolbar> 5 </v-toolbar>
6 <v-container> 6 <v-container>
7 <v-layout column> 7 <v-layout column>
8 <v-flex> 8 <v-flex>
9 <v-subheader class="px-1 my-2">Color Option</v-subheader> 9 <v-subheader class="px-1 my-2">Color Option</v-subheader>
10 <div class="color-option"> 10 <div class="color-option">
11 <v-layout wrap> 11 <v-layout wrap>
12 <label 12 <label
13 class="color-option--label flex xs6 pa-1" 13 class="color-option--label flex xs6 pa-1"
14 v-for="(option,index) in themeColorOptions" 14 v-for="(option,index) in themeColorOptions"
15 :key="index" 15 :key="index"
16 > 16 >
17 <input type="radio" name="color" v-bind:value="option.key" v-model="themeColor" /> 17 <input type="radio" name="color" v-bind:value="option.key" v-model="themeColor" />
18 <span class="color-option--item bg"> 18 <span class="color-option--item bg">
19 <span class="overlay"> 19 <span class="overlay">
20 <span class="material-icons">check</span> 20 <span class="material-icons">check</span>
21 </span> 21 </span>
22 <span class="color-option--item--header sideNav" :class="option.value.sideNav"></span> 22 <span class="color-option--item--header sideNav" :class="option.value.sideNav"></span>
23 <span class="color-option--item--header mainNav" :class="option.value.mainNav"></span> 23 <span class="color-option--item--header mainNav" :class="option.value.mainNav"></span>
24 <span class="sideMenu" :class="option.value.sideManu"></span> 24 <span class="sideMenu" :class="option.value.sideManu"></span>
25 </span> 25 </span>
26 </label> 26 </label>
27 </v-layout> 27 </v-layout>
28 </div> 28 </div>
29 <div class="theme-options"> 29 <div class="theme-options">
30 <v-subheader class="px-1 my-2">Sidebar Option</v-subheader> 30 <v-subheader class="px-1 my-2">Sidebar Option</v-subheader>
31 <v-divider></v-divider> 31 <v-divider></v-divider>
32 <div class="my-3"> 32 <div class="my-3">
33 <v-btn-toggle v-model="sideBarOption"> 33 <v-btn-toggle v-model="sideBarOption">
34 <v-btn flat value="dark">Dark</v-btn> 34 <v-btn flat value="dark">Dark</v-btn>
35 <v-btn flat value="light">Light</v-btn> 35 <v-btn flat value="light">Light</v-btn>
36 </v-btn-toggle> 36 </v-btn-toggle>
37 </div> 37 </div>
38 </div> 38 </div>
39 </v-flex> 39 </v-flex>
40 </v-layout> 40 </v-layout>
41 </v-container> 41 </v-container>
42 </div> 42 </div>
43 </template> 43 </template>
44 44
45 <script> 45 <script>
46 import colors from "vuetify/es5/util/colors"; 46 import colors from "vuetify/es5/util/colors";
47 export default { 47 export default {
48 data() { 48 data() {
49 return { 49 return {
50 themeColor: "indigo", 50 themeColor: "indigo",
51 sideBarOption: "light", 51 sideBarOption: "light",
52 colors: colors 52 colors: colors
53 }; 53 };
54 }, 54 },
55 computed: { 55 computed: {
56 themeColorOptions() { 56 themeColorOptions() {
57 return [ 57 return [
58 { 58 {
59 key: "blue", 59 key: "blue",
60 value: { 60 value: {
61 sideNav: "blue", 61 sideNav: "blue",
62 mainNav: "blue", 62 mainNav: "blue",
63 sideManu: "white" 63 sideManu: "white"
64 } 64 }
65 }, 65 },
66 { 66 {
67 key: "lightBlue", 67 key: "lightBlue",
68 value: { 68 value: {
69 sideNav: "blue", 69 sideNav: "blue",
70 mainNav: "white", 70 mainNav: "white",
71 sideManu: "blue lighten-1" 71 sideManu: "blue lighten-1"
72 } 72 }
73 }, 73 },
74 { 74 {
75 key: "teal", 75 key: "teal",
76 value: { 76 value: {
77 sideNav: "teal", 77 sideNav: "teal",
78 mainNav: "teal", 78 mainNav: "teal",
79 sideManu: "white" 79 sideManu: "white"
80 } 80 }
81 }, 81 },
82 { 82 {
83 key: "red", 83 key: "red",
84 value: { 84 value: {
85 sideNav: "red", 85 sideNav: "red",
86 mainNav: "red", 86 mainNav: "red",
87 sideManu: "white" 87 sideManu: "white"
88 } 88 }
89 }, 89 },
90 { 90 {
91 key: "orange", 91 key: "orange",
92 value: { 92 value: {
93 sideNav: "orange", 93 sideNav: "orange",
94 mainNav: "orange", 94 mainNav: "orange",
95 sideManu: "white" 95 sideManu: "white"
96 } 96 }
97 }, 97 },
98 { 98 {
99 key: "purple", 99 key: "purple",
100 value: { 100 value: {
101 sideNav: "purple", 101 sideNav: "purple",
102 mainNav: "purple", 102 mainNav: "purple",
103 sideManu: "white" 103 sideManu: "white"
104 } 104 }
105 }, 105 },
106 { 106 {
107 key: "indigo", 107 key: "indigo",
108 value: { 108 value: {
109 sideNav: "indigo", 109 sideNav: "indigo",
110 mainNav: "indigo", 110 mainNav: "indigo",
111 sideManu: "white" 111 sideManu: "white"
112 } 112 }
113 }, 113 },
114 { 114 {
115 key: "cyan", 115 key: "cyan",
116 value: { 116 value: {
117 sideNav: "cyan", 117 sideNav: "cyan",
118 mainNav: "cyan", 118 mainNav: "cyan",
119 sideManu: "white" 119 sideManu: "white"
120 } 120 }
121 }, 121 },
122 { 122 {
123 key: "pink", 123 key: "pink",
124 value: { 124 value: {
125 sideNav: "pink", 125 sideNav: "pink",
126 mainNav: "pink", 126 mainNav: "pink",
127 sideManu: "white" 127 sideManu: "white"
128 } 128 }
129 }, 129 },
130 { 130 {
131 key: "green", 131 key: "green",
132 value: { 132 value: {
133 sideNav: "green", 133 sideNav: "green",
134 mainNav: "green", 134 mainNav: "green",
135 sideManu: "white" 135 sideManu: "white"
136 } 136 }
137 } 137 }
138 ]; 138 ];
139 } 139 }
140 }, 140 },
141 watch: { 141 watch: {
142 themeColor: { 142 themeColor: {
143 handler(val) { 143 handler(val) {
144 console.log(val); 144 // console.log(val);
145 this.$vuetify.theme.primary = this.colors[val].base; 145 this.$vuetify.theme.primary = this.colors[val].base;
146 }, 146 },
147 immediate: true 147 immediate: true
148 }, 148 },
149 sideBarOption: { 149 sideBarOption: {
150 handler(val) { 150 handler(val) {
151 this.$vuetify.dark = val === "dark"; 151 this.$vuetify.dark = val === "dark";
152 }, 152 },
153 immediate: true 153 immediate: true
154 } 154 }
155 } 155 }
156 }; 156 };
157 </script> 157 </script>
158 <style lang="stylus" scoped> 158 <style lang="stylus" scoped>
159 .color-option { 159 .color-option {
160 &--label { 160 &--label {
161 position: relative; 161 position: relative;
162 display: block; 162 display: block;
163 cursor: pointer; 163 cursor: pointer;
164 164
165 & input[type='radio'] { 165 & input[type='radio'] {
166 display: none; 166 display: none;
167 167
168 &+span { 168 &+span {
169 position: relative; 169 position: relative;
170 170
171 &>.overlay { 171 &>.overlay {
172 display: none; 172 display: none;
173 position: absolute; 173 position: absolute;
174 top: 0; 174 top: 0;
175 bottom: 0; 175 bottom: 0;
176 right: 0; 176 right: 0;
177 left: 0; 177 left: 0;
178 width: 100%; 178 width: 100%;
179 height: 100%; 179 height: 100%;
180 background-color: rgba(0, 0, 0, 0.3); 180 background-color: rgba(0, 0, 0, 0.3);
181 text-align: center; 181 text-align: center;
182 line-height: 30px; 182 line-height: 30px;
183 color: #fff; 183 color: #fff;
184 } 184 }
185 } 185 }
186 186
187 &:checked+span>.overlay { 187 &:checked+span>.overlay {
188 display: block; 188 display: block;
189 } 189 }
190 } 190 }
191 191
192 & .bg { 192 & .bg {
193 background-color: #f1f1f1; 193 background-color: #f1f1f1;
194 } 194 }
195 } 195 }
196 196
197 &--item { 197 &--item {
198 overflow: hidden; 198 overflow: hidden;
199 display: block; 199 display: block;
200 box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); 200 box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
201 margin-bottom: 15px; 201 margin-bottom: 15px;
202 202
203 &--header { 203 &--header {
204 height: 10px; 204 height: 10px;
205 } 205 }
206 206
207 &>span { 207 &>span {
208 display: block; 208 display: block;
209 float: left; 209 float: left;
210 width: 50%; 210 width: 50%;
211 height: 20px; 211 height: 20px;
212 } 212 }
213 } 213 }
214 } 214 }
215 </style> 215 </style>
216 216
217 <style> 217 <style>
218 .indigo { 218 .indigo {
219 background-color: #444b54 !important; 219 background-color: #444b54 !important;
220 border-color: #444b54 !important; 220 border-color: #444b54 !important;
221 } 221 }
222 </style> 222 </style>
223 223
1 // The Vue build version to load with the `import` command 1 // The Vue build version to load with the `import` command
2 // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 2 // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 import Vue from 'vue'; 3 import Vue from 'vue';
4 import App from './App'; 4 import App from './App';
5 import Vuetify from 'vuetify'; 5 import Vuetify from 'vuetify';
6 import router from './router'; 6 import router from './router';
7 import 'font-awesome/css/font-awesome.css'; 7 import 'font-awesome/css/font-awesome.css';
8 import './theme/default.styl'; 8 import './theme/default.styl';
9 import VeeValidate from 'vee-validate'; 9 import VeeValidate from 'vee-validate';
10 import colors from 'vuetify/es5/util/colors'; 10 import colors from 'vuetify/es5/util/colors';
11 import Truncate from 'lodash.truncate'; 11 import Truncate from 'lodash.truncate';
12 import store from '@/store/store' 12 import store from '@/store/store'
13 import FullCalendar from 'vue-full-calendar'; 13 import FullCalendar from 'vue-full-calendar';
14 import JsonCSV from 'vue-json-csv' 14 import JsonCSV from 'vue-json-csv'
15 import VueHtml2Canvas from 'vue-html2canvas'; 15 import VueHtml2Canvas from 'vue-html2canvas';
16 import 'babel-polyfill'; 16 import 'babel-polyfill';
17 import VueHtmlToPaper from 'vue-html-to-paper'; 17 import VueHtmlToPaper from 'vue-html-to-paper';
18 18
19 const options = { 19 const options = {
20 name: '_blank', 20 name: '_blank',
21 specs: [ 21 specs: [
22 'fullscreen=yes', 22 'fullscreen=yes',
23 'titlebar=yes', 23 'titlebar=yes',
24 'scrollbars=yes' 24 'scrollbars=yes'
25 ], 25 ],
26 styles: [ 26 styles: [
27 'https://unpkg.com/vuetify/dist/vuetify.min.css', 27 'https://unpkg.com/vuetify/dist/vuetify.min.css',
28 'https://unpkg.com/kidlat-css/css/kidlat.css' 28 'https://unpkg.com/kidlat-css/css/kidlat.css'
29 ] 29 ]
30 } 30 }
31
32 Vue.use(VueHtmlToPaper, options); 31 Vue.use(VueHtmlToPaper, options);
33 32
34 // or, using the defaults with no stylesheet 33 // or, using the defaults with no stylesheet
35 34
36 Vue.use(VueHtmlToPaper); 35 Vue.use(VueHtmlToPaper);
37 Vue.use(VueHtml2Canvas); 36 Vue.use(VueHtml2Canvas);
38 37
39 Vue.component('downloadCsv', JsonCSV) 38 Vue.component('downloadCsv', JsonCSV)
40 39
41 Vue.config.productionTip = false; 40 Vue.config.productionTip = false;
42 Vue.use(FullCalendar); 41 Vue.use(FullCalendar);
43 42
44 // Helpers 43 // Helpers
45 // Global filters 44 // Global filters
46 // Vue.use(VueAxios, axios); 45 // Vue.use(VueAxios, axios);
47 Vue.filter('truncate', Truncate); 46 Vue.filter('truncate', Truncate);
48 Vue.use(VeeValidate, { fieldsBagName: 'formFields' }); 47 Vue.use(VeeValidate, { fieldsBagName: 'formFields' });
49 VeeValidate.Validator.localize({ 48 VeeValidate.Validator.localize({
50 en: { 49 en: {
51 custom: { 50 custom: {
52 password2: { 51 password2: {
53 is: 'The passwords do not match' 52 is: 'The passwords do not match'
54 } 53 }
55 } 54 }
56 } 55 }
57 }) 56 })
58 Vue.use(Vuetify, { 57 Vue.use(Vuetify, {
59 // theme: { 58 // theme: {
60 // primary: "f1f1f1", // #E53935 59 // primary: "f1f1f1", // #E53935
61 // // secondary: colors.indigo.lighten4, // #FFCDD2 60 // // secondary: colors.indigo.lighten4, // #FFCDD2
62 // // accent: colors.indigo.base // #3F51B5 61 // // accent: colors.indigo.base // #3F51B5
63 // }, 62 // },
64 options: { 63 options: {
65 themeVariations: ['primary', 'secondary', 'accent'], 64 themeVariations: ['primary', 'secondary', 'accent'],
66 extra: { 65 extra: {
67 mainToolbar: { 66 mainToolbar: {
68 color: 'primary', 67 color: 'primary',
69 }, 68 },
70 sideToolbar: {}, 69 sideToolbar: {},
71 sideNav: 'primary', 70 sideNav: 'primary',
72 mainNav: 'primary lighten-1', 71 mainNav: 'primary lighten-1',
73 bodyBg: '', 72 bodyBg: '',
74 } 73 }
75 } 74 }
76 }); 75 });
77 // Bootstrap application components 76 // Bootstrap application components
78 77
79 78
80 79
81 /* eslint-disable no-new */ 80 /* eslint-disable no-new */
82 new Vue({ 81 new Vue({
83 el: '#app', 82 el: '#app',
84 router, 83 router,
85 store, 84 store,
86 components: { App }, 85 components: { App },
87 template: '<App/>' 86 template: '<App/>'
88 }); 87 });
src/pages/Administrator/systemAdmin.vue
1 <template> 1 <template>
2 <v-app id="pages-dasboard"> 2 <v-app id="pages-dasboard">
3 <v-tabs grow slider-color="gray"> 3 <v-tabs grow slider-color="gray">
4 <v-tab 4 <v-tab
5 ripple 5 ripple
6 @click="activeTab('existing')" 6 @click="activeTab('existing')"
7 v-bind:class="{ active: isActive }" 7 v-bind:class="{ active: isActive }"
8 id="tab" 8 id="tab"
9 class="subheading" 9 class="subheading"
10 >Existing System Admin</v-tab> 10 >Existing System Admin</v-tab>
11 <v-tab 11 <v-tab
12 ripple 12 ripple
13 @click="activeTab('new')" 13 @click="activeTab('new')"
14 v-bind:class="{ active: newActive }" 14 v-bind:class="{ active: newActive }"
15 id="tab1" 15 id="tab1"
16 User 16 User
17 class="subheading" 17 class="subheading"
18 >Add New System Admin</v-tab> 18 >Add New System Admin</v-tab>
19 <!-- ****** EDIT System Admin DETAILS ****** --> 19 <!-- ****** EDIT System Admin DETAILS ****** -->
20 <v-tab-item> 20 <v-tab-item>
21 <v-snackbar 21 <v-snackbar
22 :timeout="timeout" 22 :timeout="timeout"
23 :top="y === 'top'" 23 :top="y === 'top'"
24 :right="x === 'right'" 24 :right="x === 'right'"
25 :vertical="mode === 'vertical'" 25 :vertical="mode === 'vertical'"
26 v-model="snackbar" 26 v-model="snackbar"
27 color="success" 27 color="success"
28 >{{ text }}</v-snackbar> 28 >{{ text }}</v-snackbar>
29 <v-dialog v-model="dialog" max-width="1100px" scrollable> 29 <v-dialog v-model="dialog" max-width="1100px" scrollable>
30 <v-card flat> 30 <v-card flat>
31 <v-toolbar color="grey lighten-2" flat> 31 <v-toolbar color="grey lighten-2" flat>
32 <v-spacer></v-spacer> 32 <v-spacer></v-spacer>
33 <v-toolbar-title>Edit System Admin Profile</v-toolbar-title> 33 <v-toolbar-title>Edit System Admin Profile</v-toolbar-title>
34 <v-spacer></v-spacer> 34 <v-spacer></v-spacer>
35 </v-toolbar> 35 </v-toolbar>
36 <v-card-text style="height: 800px;"> 36 <v-card-text style="height: 800px;">
37 <v-layout> 37 <v-layout>
38 <v-flex 38 <v-flex
39 xs12 39 xs12
40 class="text-xs-center text-sm-center text-md-center text-lg-center my-4" 40 class="text-xs-center text-sm-center text-md-center text-lg-center my-4"
41 > 41 >
42 <v-avatar size="160px"> 42 <v-avatar size="160px">
43 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl && !imageUrl" /> 43 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl && !imageUrl" />
44 <img 44 <img
45 :src="editedItem.profilePicUrl" 45 :src="editedItem.profilePicUrl"
46 v-else-if="editedItem.profilePicUrl && !imageUrl" 46 v-else-if="editedItem.profilePicUrl && !imageUrl"
47 /> 47 />
48 <img 48 <img
49 v-if="imageUrl" 49 v-if="imageUrl"
50 :src="imageUrl" 50 :src="imageUrl"
51 height="150" 51 height="150"
52 style="border-radius:50%; width:200px" 52 style="border-radius:50%; width:200px"
53 /> 53 />
54 </v-avatar> 54 </v-avatar>
55 <input 55 <input
56 type="file" 56 type="file"
57 style="display:none" 57 style="display:none"
58 ref="image" 58 ref="image"
59 accept="image/*" 59 accept="image/*"
60 @change="onFilePicked" 60 @change="onFilePicked"
61 /> 61 />
62 </v-flex> 62 </v-flex>
63 </v-layout> 63 </v-layout>
64 <v-layout wrap> 64 <v-layout wrap>
65 <v-flex xs12 sm6> 65 <v-flex xs12 sm6>
66 <v-layout> 66 <v-layout>
67 <v-flex xs4 sm4 class="pt-4 subheading"> 67 <v-flex xs4 sm4 class="pt-4 subheading">
68 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label> 68 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
69 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label> 69 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label>
70 </v-flex> 70 </v-flex>
71 <v-flex xs8 sm6 class="ml-3"> 71 <v-flex xs8 sm6 class="ml-3">
72 <v-text-field 72 <v-text-field
73 v-model="editedItem.name" 73 v-model="editedItem.name"
74 placeholder="fill your full Name" 74 placeholder="fill your full Name"
75 type="text" 75 type="text"
76 required 76 required
77 ></v-text-field> 77 ></v-text-field>
78 </v-flex> 78 </v-flex>
79 </v-layout> 79 </v-layout>
80 </v-flex> 80 </v-flex>
81 <v-flex xs12 sm6> 81 <v-flex xs12 sm6>
82 <v-layout> 82 <v-layout>
83 <v-flex xs4 sm4 class="pt-4 subheading"> 83 <v-flex xs4 sm4 class="pt-4 subheading">
84 <label class="right">Email ID:</label> 84 <label class="right">Email ID:</label>
85 </v-flex> 85 </v-flex>
86 <v-flex xs8 sm6 class="ml-3"> 86 <v-flex xs8 sm6 class="ml-3">
87 <v-text-field 87 <v-text-field
88 placeholder="fill your email" 88 placeholder="fill your email"
89 v-model="editedItem.email" 89 v-model="editedItem.email"
90 type="text" 90 type="text"
91 required 91 required
92 ></v-text-field> 92 ></v-text-field>
93 </v-flex> 93 </v-flex>
94 </v-layout> 94 </v-layout>
95 </v-flex> 95 </v-flex>
96 </v-layout> 96 </v-layout>
97 <v-layout wrap> 97 <v-layout wrap>
98 <v-flex xs12 sm6> 98 <v-flex xs12 sm6>
99 <v-layout> 99 <v-layout>
100 <v-flex xs4 sm4 class="pt-4 subheading"> 100 <v-flex xs4 sm4 class="pt-4 subheading">
101 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label> 101 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
102 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label> 102 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label>
103 </v-flex> 103 </v-flex>
104 <v-flex xs8 sm6 class="ml-3"> 104 <v-flex xs8 sm6 class="ml-3">
105 <v-menu 105 <v-menu
106 ref="menu" 106 ref="menu"
107 :close-on-content-click="false" 107 :close-on-content-click="false"
108 v-model="menu2" 108 v-model="menu2"
109 :nudge-right="40" 109 :nudge-right="40"
110 lazy 110 lazy
111 transition="scale-transition" 111 transition="scale-transition"
112 offset-y 112 offset-y
113 full-width 113 full-width
114 min-width="290px" 114 min-width="290px"
115 > 115 >
116 <v-text-field 116 <v-text-field
117 slot="activator" 117 slot="activator"
118 v-model="editedItem.dob" 118 v-model="editedItem.dob"
119 placeholder="Select date" 119 placeholder="Select date"
120 ></v-text-field> 120 ></v-text-field>
121 <v-date-picker 121 <v-date-picker
122 ref="picker" 122 ref="picker"
123 v-model="editedItem.dob" 123 v-model="editedItem.dob"
124 :max="new Date().toISOString().substr(0, 10)" 124 :max="new Date().toISOString().substr(0, 10)"
125 min="1950-01-01" 125 min="1950-01-01"
126 @input="menu2 = false" 126 @input="menu2 = false"
127 ></v-date-picker> 127 ></v-date-picker>
128 </v-menu> 128 </v-menu>
129 </v-flex> 129 </v-flex>
130 </v-layout> 130 </v-layout>
131 </v-flex> 131 </v-flex>
132 <v-flex xs12 sm6> 132 <v-flex xs12 sm6>
133 <v-layout> 133 <v-layout>
134 <v-flex xs4 class="pt-4 subheading"> 134 <v-flex xs4 class="pt-4 subheading">
135 <label class="right">City:</label> 135 <label class="right">City:</label>
136 </v-flex> 136 </v-flex>
137 <v-flex xs8 sm6 class="ml-3"> 137 <v-flex xs8 sm6 class="ml-3">
138 <v-text-field 138 <v-text-field
139 v-model="editedItem.city" 139 v-model="editedItem.city"
140 placeholder="fill your City Name" 140 placeholder="fill your City Name"
141 type="text" 141 type="text"
142 required 142 required
143 ></v-text-field> 143 ></v-text-field>
144 </v-flex> 144 </v-flex>
145 </v-layout> 145 </v-layout>
146 </v-flex> 146 </v-flex>
147 </v-layout> 147 </v-layout>
148 <v-layout wrap> 148 <v-layout wrap>
149 <v-flex xs12 sm6> 149 <v-flex xs12 sm6>
150 <v-layout> 150 <v-layout>
151 <v-flex xs4 class="pt-4 subheading"> 151 <v-flex xs4 class="pt-4 subheading">
152 <label class="right">State:</label> 152 <label class="right">State:</label>
153 </v-flex> 153 </v-flex>
154 <v-flex xs8 sm6 class="ml-3"> 154 <v-flex xs8 sm6 class="ml-3">
155 <v-text-field 155 <v-text-field
156 v-model="editedItem.state" 156 v-model="editedItem.state"
157 placeholder="fill your State Name" 157 placeholder="fill your State Name"
158 type="text" 158 type="text"
159 required 159 required
160 ></v-text-field> 160 ></v-text-field>
161 </v-flex> 161 </v-flex>
162 </v-layout> 162 </v-layout>
163 </v-flex> 163 </v-flex>
164 <v-flex xs12 sm6> 164 <v-flex xs12 sm6>
165 <v-layout> 165 <v-layout>
166 <v-flex xs4 class="pt-4 subheading"> 166 <v-flex xs4 class="pt-4 subheading">
167 <label class="right">PinCode:</label> 167 <label class="right">PinCode:</label>
168 </v-flex> 168 </v-flex>
169 <v-flex xs8 sm6 class="ml-3"> 169 <v-flex xs8 sm6 class="ml-3">
170 <v-text-field 170 <v-text-field
171 v-model="editedItem.pincode" 171 v-model="editedItem.pincode"
172 placeholder="fill your pincode" 172 placeholder="fill your pincode"
173 type="number" 173 type="number"
174 required 174 required
175 ></v-text-field> 175 ></v-text-field>
176 </v-flex> 176 </v-flex>
177 </v-layout> 177 </v-layout>
178 </v-flex> 178 </v-flex>
179 </v-layout> 179 </v-layout>
180 <v-layout wrap> 180 <v-layout wrap>
181 <v-flex xs12 sm6> 181 <v-flex xs12 sm6>
182 <v-layout> 182 <v-layout>
183 <v-flex xs4 class="pt-4 subheading"> 183 <v-flex xs4 class="pt-4 subheading">
184 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label> 184 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
185 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label> 185 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label>
186 </v-flex> 186 </v-flex>
187 <v-flex xs8 sm6 class="ml-3"> 187 <v-flex xs8 sm6 class="ml-3">
188 <v-text-field 188 <v-text-field
189 v-model="editedItem.mobileNo" 189 v-model="editedItem.mobileNo"
190 placeholder="fill your MobileNo" 190 placeholder="fill your MobileNo"
191 type="number" 191 type="number"
192 required 192 required
193 ></v-text-field> 193 ></v-text-field>
194 </v-flex> 194 </v-flex>
195 </v-layout> 195 </v-layout>
196 </v-flex> 196 </v-flex>
197 <v-flex xs12 sm6> 197 <v-flex xs12 sm6>
198 <v-layout> 198 <v-layout>
199 <v-flex xs4 class="pt-4 subheading"> 199 <v-flex xs4 class="pt-4 subheading">
200 <label class="right hidden-xs-only hidden-sm-only">Select Country:</label> 200 <label class="right hidden-xs-only hidden-sm-only">Select Country:</label>
201 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label> 201 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label>
202 </v-flex> 202 </v-flex>
203 <v-flex xs8 sm6 class="ml-3"> 203 <v-flex xs8 sm6 class="ml-3">
204 <v-autocomplete 204 <v-autocomplete
205 v-model="editedItem.country" 205 v-model="editedItem.country"
206 :items="countries" 206 :items="countries"
207 placeholder="Select Country Name" 207 placeholder="Select Country Name"
208 required 208 required
209 ></v-autocomplete> 209 ></v-autocomplete>
210 </v-flex> 210 </v-flex>
211 </v-layout> 211 </v-layout>
212 </v-flex> 212 </v-flex>
213 </v-layout> 213 </v-layout>
214 <v-layout wrap> 214 <v-layout wrap>
215 <v-flex xs12 sm6> 215 <v-flex xs12 sm6>
216 <v-layout> 216 <v-layout>
217 <v-flex xs4 class="pt-4 subheading"> 217 <v-flex xs4 class="pt-4 subheading">
218 <label class="right">Join Date:</label> 218 <label class="right">Join Date:</label>
219 </v-flex> 219 </v-flex>
220 <v-flex xs8 sm6 class="ml-3"> 220 <v-flex xs8 sm6 class="ml-3">
221 <v-menu 221 <v-menu
222 ref="menu" 222 ref="menu"
223 :close-on-content-click="false" 223 :close-on-content-click="false"
224 v-model="menu3" 224 v-model="menu3"
225 :nudge-right="40" 225 :nudge-right="40"
226 lazy 226 lazy
227 transition="scale-transition" 227 transition="scale-transition"
228 offset-y 228 offset-y
229 full-width 229 full-width
230 min-width="290px" 230 min-width="290px"
231 > 231 >
232 <v-text-field 232 <v-text-field
233 slot="activator" 233 slot="activator"
234 v-model="editedItem.joinDate" 234 v-model="editedItem.joinDate"
235 placeholder="Select date" 235 placeholder="Select date"
236 ></v-text-field> 236 ></v-text-field>
237 <v-date-picker 237 <v-date-picker
238 ref="picker" 238 ref="picker"
239 v-model="editedItem.joinDate" 239 v-model="editedItem.joinDate"
240 :max="new Date().toISOString().substr(0, 10)" 240 :max="new Date().toISOString().substr(0, 10)"
241 min="1950-01-01" 241 min="1950-01-01"
242 @input="menu3 = false" 242 @input="menu3 = false"
243 ></v-date-picker> 243 ></v-date-picker>
244 </v-menu> 244 </v-menu>
245 </v-flex> 245 </v-flex>
246 </v-layout> 246 </v-layout>
247 </v-flex> 247 </v-flex>
248 <v-flex xs12 sm6> 248 <v-flex xs12 sm6>
249 <v-layout> 249 <v-layout>
250 <v-flex xs4 class="pt-4 subheading"> 250 <v-flex xs4 class="pt-4 subheading">
251 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label> 251 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
252 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label> 252 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label>
253 </v-flex> 253 </v-flex>
254 <v-flex xs8 sm6 class="ml-3"> 254 <v-flex xs8 sm6 class="ml-3">
255 <v-text-field 255 <v-text-field
256 label="Select Image" 256 label="Select Image"
257 @click="pickFile" 257 @click="pickFile"
258 v-model="imageName" 258 v-model="imageName"
259 append-icon="attach_file" 259 append-icon="attach_file"
260 ></v-text-field> 260 ></v-text-field>
261 </v-flex> 261 </v-flex>
262 </v-layout> 262 </v-layout>
263 </v-flex> 263 </v-flex>
264 </v-layout> 264 </v-layout>
265 <v-layout class="hidden-xs-only hidden-sm-only" wrap> 265 <v-layout class="hidden-xs-only hidden-sm-only" wrap>
266 <v-flex xs12 sm12> 266 <v-flex xs12 sm12>
267 <v-layout> 267 <v-layout>
268 <v-flex xs4 sm2 class="pt-4 subheading ml-5"> 268 <v-flex xs4 sm2 class="pt-4 subheading ml-5">
269 <label class="right pr-2">Present Address:</label> 269 <label class="right pr-2">Present Address:</label>
270 </v-flex> 270 </v-flex>
271 <v-flex xs8 sm10> 271 <v-flex xs8 sm10>
272 <v-text-field 272 <v-text-field
273 name="input-4-3" 273 name="input-4-3"
274 v-model="editedItem.presentAddress" 274 v-model="editedItem.presentAddress"
275 placeholder="fill Your present Address" 275 placeholder="fill Your present Address"
276 required 276 required
277 ></v-text-field> 277 ></v-text-field>
278 </v-flex> 278 </v-flex>
279 </v-layout> 279 </v-layout>
280 </v-flex> 280 </v-flex>
281 <v-flex xs12 sm12> 281 <v-flex xs12 sm12>
282 <v-layout> 282 <v-layout>
283 <v-flex xs4 sm2 class="pt-4 subheading ml-5 addressForm"> 283 <v-flex xs4 sm2 class="pt-4 subheading ml-5 addressForm">
284 <label class="pr-2">Permanent Address:</label> 284 <label class="pr-2">Permanent Address:</label>
285 </v-flex> 285 </v-flex>
286 <v-flex xs12 sm10> 286 <v-flex xs12 sm10>
287 <v-text-field 287 <v-text-field
288 name="input-4-3" 288 name="input-4-3"
289 v-model="editedItem.permanentAddress" 289 v-model="editedItem.permanentAddress"
290 placeholder="fill Your Permanent Address" 290 placeholder="fill Your Permanent Address"
291 required 291 required
292 ></v-text-field> 292 ></v-text-field>
293 </v-flex> 293 </v-flex>
294 </v-layout> 294 </v-layout>
295 </v-flex> 295 </v-flex>
296 </v-layout> 296 </v-layout>
297 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap> 297 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
298 <v-flex xs12 sm12> 298 <v-flex xs12 sm12>
299 <v-layout> 299 <v-layout>
300 <v-flex xs12 sm3 class="pt-4 subheading text-xs-center"> 300 <v-flex xs12 sm3 class="pt-4 subheading text-xs-center">
301 <label class>Present Address:</label> 301 <label class>Present Address:</label>
302 </v-flex> 302 </v-flex>
303 </v-layout> 303 </v-layout>
304 <v-layout> 304 <v-layout>
305 <v-flex xs12 sm12> 305 <v-flex xs12 sm12>
306 <v-textarea 306 <v-textarea
307 name="input-4-3" 307 name="input-4-3"
308 v-model="editedItem.presentAddress" 308 v-model="editedItem.presentAddress"
309 placeholder="fill Your present Address" 309 placeholder="fill Your present Address"
310 required 310 required
311 ></v-textarea> 311 ></v-textarea>
312 </v-flex> 312 </v-flex>
313 </v-layout> 313 </v-layout>
314 </v-flex> 314 </v-flex>
315 <v-flex xs12 sm12> 315 <v-flex xs12 sm12>
316 <v-layout> 316 <v-layout>
317 <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm"> 317 <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm">
318 <label>Permanent Address:</label> 318 <label>Permanent Address:</label>
319 </v-flex> 319 </v-flex>
320 </v-layout> 320 </v-layout>
321 <v-layout> 321 <v-layout>
322 <v-flex xs12 sm12> 322 <v-flex xs12 sm12>
323 <v-textarea 323 <v-textarea
324 name="input-4-3" 324 name="input-4-3"
325 v-model="editedItem.permanentAddress" 325 v-model="editedItem.permanentAddress"
326 placeholder="fill Your Permanent Address" 326 placeholder="fill Your Permanent Address"
327 required 327 required
328 ></v-textarea> 328 ></v-textarea>
329 </v-flex> 329 </v-flex>
330 </v-layout> 330 </v-layout>
331 </v-flex> 331 </v-flex>
332 </v-layout> 332 </v-layout>
333 <v-layout> 333 <v-layout>
334 <v-flex xs12 sm12> 334 <v-flex xs12 sm12>
335 <v-layout> 335 <v-layout>
336 <v-flex xs6> 336 <v-flex xs6>
337 <v-btn round dark @click.native="close">Cancel</v-btn> 337 <v-btn round dark @click.native="close">Cancel</v-btn>
338 </v-flex> 338 </v-flex>
339 <v-flex xs6> 339 <v-flex xs6>
340 <v-btn @click="save" round dark :loading="loading" class="right">Save</v-btn> 340 <v-btn @click="save" round dark :loading="loading" class="right">Save</v-btn>
341 </v-flex> 341 </v-flex>
342 </v-layout> 342 </v-layout>
343 </v-flex> 343 </v-flex>
344 </v-layout> 344 </v-layout>
345 </v-card-text> 345 </v-card-text>
346 </v-card> 346 </v-card>
347 </v-dialog> 347 </v-dialog>
348 348
349 <!-- ****** PROFILE VIEW System Admin DETAILS ****** --> 349 <!-- ****** PROFILE VIEW System Admin DETAILS ****** -->
350 350
351 <v-dialog v-model="dialog1" max-width="600px" scrollable> 351 <v-dialog v-model="dialog1" max-width="600px" scrollable>
352 <v-card> 352 <v-card>
353 <v-toolbar color="grey lighten-2" flat> 353 <v-toolbar color="grey lighten-2" flat>
354 <v-spacer></v-spacer> 354 <v-spacer></v-spacer>
355 <v-toolbar-title> 355 <v-toolbar-title>
356 <h3> System Admin</h3> 356 <h3> System Admin</h3>
357 </v-toolbar-title> 357 </v-toolbar-title>
358 <v-spacer></v-spacer> 358 <v-spacer></v-spacer>
359 <v-icon @click="close1">close</v-icon> 359 <v-icon @click="close1">close</v-icon>
360 </v-toolbar> 360 </v-toolbar>
361 <v-card-text style="height: 700px;"> 361 <v-card-text style="height: 700px;">
362 <v-container grid-list-md> 362 <v-container grid-list-md>
363 <v-layout wrap> 363 <v-layout wrap>
364 <v-flex> 364 <v-flex>
365 <v-flex align-center justify-center layout text-xs-center> 365 <v-flex align-center justify-center layout text-xs-center>
366 <v-avatar size="160px"> 366 <v-avatar size="160px">
367 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" /> 367 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" />
368 <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" /> 368 <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" />
369 </v-avatar> 369 </v-avatar>
370 </v-flex> 370 </v-flex>
371 <v-layout> 371 <v-layout>
372 <v-flex xs5 sm6> 372 <v-flex xs5 sm6>
373 <h5 class="right my-1"> 373 <h5 class="right my-1">
374 <b>Full Name:</b> 374 <b>Full Name:</b>
375 </h5> 375 </h5>
376 </v-flex> 376 </v-flex>
377 <v-flex sm6 xs8> 377 <v-flex sm6 xs8>
378 <h5 class="my-1">{{ editedItem.name }}</h5> 378 <h5 class="my-1">{{ editedItem.name }}</h5>
379 </v-flex> 379 </v-flex>
380 </v-layout> 380 </v-layout>
381 <v-layout> 381 <v-layout>
382 <v-flex xs5 sm6> 382 <v-flex xs5 sm6>
383 <h5 class="right my-1"> 383 <h5 class="right my-1">
384 <b>Email:</b> 384 <b>Email:</b>
385 </h5> 385 </h5>
386 </v-flex> 386 </v-flex>
387 <v-flex sm6 xs8> 387 <v-flex sm6 xs8>
388 <h5 class="my-1">{{ editedItem.email }}</h5> 388 <h5 class="my-1">{{ editedItem.email }}</h5>
389 </v-flex> 389 </v-flex>
390 </v-layout> 390 </v-layout>
391 <v-layout> 391 <v-layout>
392 <v-flex xs5 sm6> 392 <v-flex xs5 sm6>
393 <h5 class="right my-1"> 393 <h5 class="right my-1">
394 <b>City:</b> 394 <b>City:</b>
395 </h5> 395 </h5>
396 </v-flex> 396 </v-flex>
397 <v-flex sm6 xs8> 397 <v-flex sm6 xs8>
398 <h5 class="my-1">{{ editedItem.city }}</h5> 398 <h5 class="my-1">{{ editedItem.city }}</h5>
399 </v-flex> 399 </v-flex>
400 </v-layout> 400 </v-layout>
401 <v-layout> 401 <v-layout>
402 <v-flex xs5 sm6> 402 <v-flex xs5 sm6>
403 <h5 class="right my-1"> 403 <h5 class="right my-1">
404 <b>State:</b> 404 <b>State:</b>
405 </h5> 405 </h5>
406 </v-flex> 406 </v-flex>
407 <v-flex sm6 xs8> 407 <v-flex sm6 xs8>
408 <h5 class="my-1">{{ editedItem.state }}</h5> 408 <h5 class="my-1">{{ editedItem.state }}</h5>
409 </v-flex> 409 </v-flex>
410 </v-layout> 410 </v-layout>
411 <v-layout> 411 <v-layout>
412 <v-flex xs5 sm6> 412 <v-flex xs5 sm6>
413 <h5 class="right my-1"> 413 <h5 class="right my-1">
414 <b>Country:</b> 414 <b>Country:</b>
415 </h5> 415 </h5>
416 </v-flex> 416 </v-flex>
417 <v-flex sm6 xs8> 417 <v-flex sm6 xs8>
418 <h5 class="my-1">{{ editedItem.country }}</h5> 418 <h5 class="my-1">{{ editedItem.country }}</h5>
419 </v-flex> 419 </v-flex>
420 </v-layout> 420 </v-layout>
421 <v-layout> 421 <v-layout>
422 <v-flex xs5 sm6> 422 <v-flex xs5 sm6>
423 <h5 class="right my-1"> 423 <h5 class="right my-1">
424 <b>Pincode:</b> 424 <b>Pincode:</b>
425 </h5> 425 </h5>
426 </v-flex> 426 </v-flex>
427 <v-flex sm6 xs8> 427 <v-flex sm6 xs8>
428 <h5 class="my-1">{{ editedItem.pincode }}</h5> 428 <h5 class="my-1">{{ editedItem.pincode }}</h5>
429 </v-flex> 429 </v-flex>
430 </v-layout> 430 </v-layout>
431 <v-layout> 431 <v-layout>
432 <v-flex xs5 sm6> 432 <v-flex xs5 sm6>
433 <h5 class="right my-1"> 433 <h5 class="right my-1">
434 <b>Mobile No:</b> 434 <b>Mobile No:</b>
435 </h5> 435 </h5>
436 </v-flex> 436 </v-flex>
437 <v-flex sm6 xs8> 437 <v-flex sm6 xs8>
438 <h5 class="my-1">{{ editedItem.mobileNo }}</h5> 438 <h5 class="my-1">{{ editedItem.mobileNo }}</h5>
439 </v-flex> 439 </v-flex>
440 </v-layout> 440 </v-layout>
441 <v-layout> 441 <v-layout>
442 <v-flex xs5 sm6> 442 <v-flex xs5 sm6>
443 <h5 class="right my-1"> 443 <h5 class="right my-1">
444 <b>Join Date:</b> 444 <b>Join Date:</b>
445 </h5> 445 </h5>
446 </v-flex> 446 </v-flex>
447 <v-flex sm6 xs8> 447 <v-flex sm6 xs8>
448 <h5 class="my-1">{{ dates(editedItem.joinDate) }}</h5> 448 <h5 class="my-1">{{ dates(editedItem.joinDate) }}</h5>
449 </v-flex> 449 </v-flex>
450 </v-layout> 450 </v-layout>
451 <v-layout> 451 <v-layout>
452 <v-flex xs5 sm6> 452 <v-flex xs5 sm6>
453 <h5 class="right my-1"> 453 <h5 class="right my-1">
454 <b>D.O.B :</b> 454 <b>D.O.B :</b>
455 </h5> 455 </h5>
456 </v-flex> 456 </v-flex>
457 <v-flex sm6 xs8> 457 <v-flex sm6 xs8>
458 <h5 class="my-1">{{ dates(editedItem.dob) }}</h5> 458 <h5 class="my-1">{{ dates(editedItem.dob) }}</h5>
459 </v-flex> 459 </v-flex>
460 </v-layout> 460 </v-layout>
461 <v-layout> 461 <v-layout>
462 <v-flex xs6 sm6> 462 <v-flex xs6 sm6>
463 <h5 class="right my-1"> 463 <h5 class="right my-1">
464 <b>Permanent Address:</b> 464 <b>Permanent Address:</b>
465 </h5> 465 </h5>
466 </v-flex> 466 </v-flex>
467 <v-flex sm6 xs8> 467 <v-flex sm6 xs8>
468 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5> 468 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
469 </v-flex> 469 </v-flex>
470 </v-layout> 470 </v-layout>
471 <v-layout> 471 <v-layout>
472 <v-flex xs6 sm6> 472 <v-flex xs6 sm6>
473 <h5 class="right my-1"> 473 <h5 class="right my-1">
474 <b>present Address:</b> 474 <b>present Address:</b>
475 </h5> 475 </h5>
476 </v-flex> 476 </v-flex>
477 <v-flex sm6 xs8> 477 <v-flex sm6 xs8>
478 <h5 class="my-1">{{ editedItem.presentAddress }}</h5> 478 <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
479 </v-flex> 479 </v-flex>
480 </v-layout> 480 </v-layout>
481 </v-flex> 481 </v-flex>
482 </v-layout> 482 </v-layout>
483 </v-container> 483 </v-container>
484 </v-card-text> 484 </v-card-text>
485 </v-card> 485 </v-card>
486 </v-dialog> 486 </v-dialog>
487 <v-snackbar 487 <v-snackbar
488 :timeout="timeout" 488 :timeout="timeout"
489 :top="y === 'top'" 489 :top="y === 'top'"
490 :right="x === 'right'" 490 :right="x === 'right'"
491 :vertical="mode === 'vertical'" 491 :vertical="mode === 'vertical'"
492 v-model="snackbar" 492 v-model="snackbar"
493 color="success" 493 color="success"
494 >{{ text }}</v-snackbar> 494 >{{ text }}</v-snackbar>
495 495
496 <!-- ****** EXISTING System Admin TABLE ****** --> 496 <!-- ****** EXISTING System Admin TABLE ****** -->
497 497
498 <v-data-table 498 <v-data-table
499 :headers="headers" 499 :headers="headers"
500 :items="desserts" 500 :items="desserts"
501 :pagination.sync="pagination" 501 :pagination.sync="pagination"
502 :search="search" 502 :search="search"
503 > 503 >
504 <template slot="items" slot-scope="props"> 504 <template slot="items" slot-scope="props">
505 <td id="td" class="text-xs-center">{{ props.index + 1}}</td> 505 <td id="td" class="text-xs-center">{{ props.index + 1}}</td>
506 <td id="td" class="text-xs-center"> 506 <td id="td" class="text-xs-center">
507 <v-avatar> 507 <v-avatar>
508 <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" /> 508 <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" />
509 <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" /> 509 <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" />
510 </v-avatar> 510 </v-avatar>
511 </td> 511 </td>
512 <td id="td" class="text-xs-center">{{ props.item.name}}</td> 512 <td id="td" class="text-xs-center">{{ props.item.name}}</td>
513 <td id="td" class="text-xs-center">{{ props.item.email }}</td> 513 <td id="td" class="text-xs-center">{{ props.item.email }}</td>
514 <td id="td" class="text-xs-center">{{ props.item.role }}</td> 514 <td id="td" class="text-xs-center">{{ props.item.role }}</td>
515 <td id="td" class="text-xs-center">{{ props.item.status }}</td> 515 <td id="td" class="text-xs-center">{{ props.item.status }}</td>
516 <!-- <td id="td" class="text-xs-center">{{ props.item.mobileNo }}</td> --> 516 <!-- <td id="td" class="text-xs-center">{{ props.item.mobileNo }}</td> -->
517 <td class="text-xs-center"> 517 <td class="text-xs-center">
518 <span> 518 <span>
519 <v-tooltip top> 519 <v-tooltip top>
520 <img 520 <img
521 slot="activator" 521 slot="activator"
522 style="cursor:pointer; width:25px; height:18px; " 522 style="cursor:pointer; width:25px; height:18px; "
523 class="mr5" 523 class="mr5"
524 @click="profile(props.item)" 524 @click="profile(props.item)"
525 src="/static/icon/eye1.png" 525 src="/static/icon/eye1.png"
526 /> 526 />
527 <span>View</span> 527 <span>View</span>
528 </v-tooltip> 528 </v-tooltip>
529 <v-tooltip top> 529 <v-tooltip top>
530 <img 530 <img
531 slot="activator" 531 slot="activator"
532 style="cursor:pointer; width:20px; height:18px; " 532 style="cursor:pointer; width:20px; height:18px; "
533 class="mr5" 533 class="mr5"
534 @click="editItem(props.item)" 534 @click="editItem(props.item)"
535 src="/static/icon/edit1.png" 535 src="/static/icon/edit1.png"
536 /> 536 />
537 <span>Edit</span> 537 <span>Edit</span>
538 </v-tooltip> 538 </v-tooltip>
539 <v-tooltip top> 539 <v-tooltip top>
540 <img 540 <img
541 slot="activator" 541 slot="activator"
542 style="cursor:pointer; width:20px; height:20px; " 542 style="cursor:pointer; width:20px; height:20px; "
543 class="mr5" 543 class="mr5"
544 @click="deleteItem(props.item)" 544 @click="deleteItem(props.item)"
545 src="/static/icon/delete1.png" 545 src="/static/icon/delete1.png"
546 /> 546 />
547 <span>Delete</span> 547 <span>Delete</span>
548 </v-tooltip> 548 </v-tooltip>
549 </span> 549 </span>
550 </td> 550 </td>
551 </template> 551 </template>
552 <v-alert 552 <v-alert
553 slot="no-results" 553 slot="no-results"
554 :value="true" 554 :value="true"
555 color="error" 555 color="error"
556 icon="warning" 556 icon="warning"
557 >Your search for "{{ search }}" found no results.</v-alert> 557 >Your search for "{{ search }}" found no results.</v-alert>
558 </v-data-table> 558 </v-data-table>
559 </v-tab-item> 559 </v-tab-item>
560 560
561 <!-- ****** Add System Admin Data****** --> 561 <!-- ****** Add System Admin Data****** -->
562 <v-tab-item> 562 <v-tab-item>
563 <v-container fluid> 563 <v-container fluid>
564 <v-snackbar 564 <v-snackbar
565 :timeout="timeout" 565 :timeout="timeout"
566 :top="y === 'top'" 566 :top="y === 'top'"
567 :right="x === 'right'" 567 :right="x === 'right'"
568 :vertical="mode === 'vertical'" 568 :vertical="mode === 'vertical'"
569 v-model="snackbar" 569 v-model="snackbar"
570 color="success" 570 color="success"
571 >{{ text }}</v-snackbar> 571 >{{ text }}</v-snackbar>
572 <v-flex xs12 sm12 class="my-4"> 572 <v-flex xs12 sm12 class="my-4">
573 <v-card flat> 573 <v-card flat>
574 <v-form ref="form" v-model="valid" lazy-validation> 574 <v-form ref="form" v-model="valid" lazy-validation>
575 <v-container fluid> 575 <v-container fluid>
576 <v-layout> 576 <v-layout>
577 <v-flex 577 <v-flex
578 xs12 578 xs12
579 class="text-xs-center text-sm-center text-md-center text-lg-center my-4" 579 class="text-xs-center text-sm-center text-md-center text-lg-center my-4"
580 > 580 >
581 <v-avatar size="100px"> 581 <v-avatar size="100px">
582 <img src="/static/icon/user.png" v-if="!imageUrl" /> 582 <img src="/static/icon/user.png" v-if="!imageUrl" />
583 </v-avatar> 583 </v-avatar>
584 <img 584 <img
585 :src="imageUrl" 585 :src="imageUrl"
586 height="150" 586 height="150"
587 v-if="imageUrl" 587 v-if="imageUrl"
588 style="border-radius:50%; width:200px" 588 style="border-radius:50%; width:200px"
589 /> 589 />
590 </v-flex> 590 </v-flex>
591 </v-layout> 591 </v-layout>
592 <v-layout> 592 <v-layout>
593 <v-flex xs12 sm6> 593 <v-flex xs12 sm6>
594 <v-layout> 594 <v-layout>
595 <v-flex xs4 class="pt-4 subheading"> 595 <v-flex xs4 class="pt-4 subheading">
596 <label class="right hidden-sm-only hidden-xs-only">Name:</label> 596 <label class="right hidden-sm-only hidden-xs-only">Name:</label>
597 <label 597 <label
598 class="right hidden-lg-only hidden-xl-only hidden-md-only" 598 class="right hidden-lg-only hidden-xl-only hidden-md-only"
599 >Name</label> 599 >Name</label>
600 </v-flex> 600 </v-flex>
601 <v-flex xs8 class="ml-3"> 601 <v-flex xs8 class="ml-3">
602 <v-text-field 602 <v-text-field
603 v-model="addSystemAdmin.name" 603 v-model="addSystemAdmin.name"
604 placeholder="fill your full Name" 604 placeholder="fill your full Name"
605 name="name" 605 name="name"
606 type="text" 606 type="text"
607 :rules="nameRules" 607 :rules="nameRules"
608 required 608 required
609 ></v-text-field> 609 ></v-text-field>
610 </v-flex> 610 </v-flex>
611 </v-layout> 611 </v-layout>
612 </v-flex> 612 </v-flex>
613 <v-flex xs12 sm6> 613 <v-flex xs12 sm6>
614 <v-layout> 614 <v-layout>
615 <v-flex xs4 class="pt-4 subheading"> 615 <v-flex xs4 class="pt-4 subheading">
616 <label class="right">Email ID:</label> 616 <label class="right">Email ID:</label>
617 </v-flex> 617 </v-flex>
618 <v-flex xs8 class="ml-3"> 618 <v-flex xs8 class="ml-3">
619 <v-text-field 619 <v-text-field
620 placeholder="fill your email" 620 placeholder="fill your email"
621 :rules="emailRules" 621 :rules="emailRules"
622 v-model="addSystemAdmin.email" 622 v-model="addSystemAdmin.email"
623 type="text" 623 type="text"
624 name="email" 624 name="email"
625 required 625 required
626 ></v-text-field> 626 ></v-text-field>
627 </v-flex> 627 </v-flex>
628 </v-layout> 628 </v-layout>
629 </v-flex> 629 </v-flex>
630 </v-layout> 630 </v-layout>
631 <v-layout> 631 <v-layout>
632 <v-flex xs12 sm6> 632 <v-flex xs12 sm6>
633 <v-layout> 633 <v-layout>
634 <v-flex xs4 sm4 class="pt-4 subheading"> 634 <v-flex xs4 sm4 class="pt-4 subheading">
635 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label> 635 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
636 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label> 636 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label>
637 </v-flex> 637 </v-flex>
638 <v-flex xs8 class="ml-3"> 638 <v-flex xs8 class="ml-3">
639 <v-menu 639 <v-menu
640 ref="menu" 640 ref="menu"
641 :close-on-content-click="false" 641 :close-on-content-click="false"
642 v-model="menu" 642 v-model="menu"
643 :nudge-right="40" 643 :nudge-right="40"
644 lazy 644 lazy
645 transition="scale-transition" 645 transition="scale-transition"
646 offset-y 646 offset-y
647 full-width 647 full-width
648 min-width="290px" 648 min-width="290px"
649 > 649 >
650 <v-text-field 650 <v-text-field
651 slot="activator" 651 slot="activator"
652 :rules="dateRules" 652 :rules="dateRules"
653 v-model="addSystemAdmin.date" 653 v-model="addSystemAdmin.date"
654 placeholder="Select date" 654 placeholder="Select date"
655 ></v-text-field> 655 ></v-text-field>
656 <v-date-picker 656 <v-date-picker
657 ref="picker" 657 ref="picker"
658 v-model="addSystemAdmin.date" 658 v-model="addSystemAdmin.date"
659 :max="new Date().toISOString().substr(0, 10)" 659 :max="new Date().toISOString().substr(0, 10)"
660 min="1950-01-01" 660 min="1950-01-01"
661 @input="menu = false" 661 @input="menu = false"
662 ></v-date-picker> 662 ></v-date-picker>
663 </v-menu> 663 </v-menu>
664 </v-flex> 664 </v-flex>
665 </v-layout> 665 </v-layout>
666 </v-flex> 666 </v-flex>
667 <v-flex xs12 sm6> 667 <v-flex xs12 sm6>
668 <v-layout> 668 <v-layout>
669 <v-flex xs4 class="pt-4 subheading"> 669 <v-flex xs4 class="pt-4 subheading">
670 <label class="right">Gender:</label> 670 <label class="right">Gender:</label>
671 </v-flex> 671 </v-flex>
672 <v-flex xs8 class="ml-3"> 672 <v-flex xs8 class="ml-3">
673 <v-select 673 <v-select
674 v-model="addSystemAdmin.gender" 674 v-model="addSystemAdmin.gender"
675 :items="gender" 675 :items="gender"
676 label="Select your City Name" 676 label="Select your City Name"
677 :rules="cityRules" 677 :rules="cityRules"
678 required 678 required
679 ></v-select> 679 ></v-select>
680 </v-flex> 680 </v-flex>
681 </v-layout> 681 </v-layout>
682 </v-flex> 682 </v-flex>
683 </v-layout> 683 </v-layout>
684 <v-layout> 684 <v-layout>
685 <v-flex xs12 sm6> 685 <v-flex xs12 sm6>
686 <v-layout> 686 <v-layout>
687 <v-flex xs4 class="pt-4 subheading"> 687 <v-flex xs4 class="pt-4 subheading">
688 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label> 688 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
689 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label> 689 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label>
690 </v-flex> 690 </v-flex>
691 <v-flex xs8 class="ml-3"> 691 <v-flex xs8 class="ml-3">
692 <v-text-field 692 <v-text-field
693 v-model="addSystemAdmin.mobileNo" 693 v-model="addSystemAdmin.mobileNo"
694 placeholder="fill your Mobile No." 694 placeholder="fill your Mobile No."
695 name="mobileNo" 695 name="mobileNo"
696 type="number" 696 type="number"
697 :rules="mobileNoRules" 697 :rules="mobileNoRules"
698 required 698 required
699 ></v-text-field> 699 ></v-text-field>
700 </v-flex> 700 </v-flex>
701 </v-layout> 701 </v-layout>
702 </v-flex> 702 </v-flex>
703 <v-flex xs12 sm6> 703 <v-flex xs12 sm6>
704 <v-layout> 704 <v-layout>
705 <v-flex xs4 class="pt-4 subheading"> 705 <v-flex xs4 class="pt-4 subheading">
706 <label class="right hidden-xs-only hidden-sm-only">Religion:</label> 706 <label class="right hidden-xs-only hidden-sm-only">Religion:</label>
707 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Religion:</label> 707 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Religion:</label>
708 </v-flex> 708 </v-flex>
709 <v-flex xs8 class="ml-3"> 709 <v-flex xs8 class="ml-3">
710 <v-text-field 710 <v-text-field
711 v-model="addSystemAdmin.religion" 711 v-model="addSystemAdmin.religion"
712 :rules="religion" 712 :rules="religion"
713 placeholder="fill your Religion" 713 placeholder="fill your Religion"
714 required 714 required
715 ></v-text-field> 715 ></v-text-field>
716 </v-flex> 716 </v-flex>
717 </v-layout> 717 </v-layout>
718 </v-flex> 718 </v-flex>
719 </v-layout> 719 </v-layout>
720 <v-layout> 720 <v-layout>
721 <v-flex xs12 sm6> 721 <v-flex xs12 sm6>
722 <v-layout> 722 <v-layout>
723 <v-flex xs4 class="pt-4 subheading"> 723 <v-flex xs4 class="pt-4 subheading">
724 <label class="right">Join Date:</label> 724 <label class="right">Join Date:</label>
725 </v-flex> 725 </v-flex>
726 <v-flex xs8 class="ml-3"> 726 <v-flex xs8 class="ml-3">
727 <v-menu 727 <v-menu
728 ref="menu1" 728 ref="menu1"
729 :close-on-content-click="false" 729 :close-on-content-click="false"
730 v-model="menu1" 730 v-model="menu1"
731 :nudge-right="40" 731 :nudge-right="40"
732 lazy 732 lazy
733 transition="scale-transition" 733 transition="scale-transition"
734 offset-y 734 offset-y
735 full-width 735 full-width
736 min-width="290px" 736 min-width="290px"
737 > 737 >
738 <v-text-field 738 <v-text-field
739 slot="activator" 739 slot="activator"
740 :rules="joinDateRules" 740 :rules="joinDateRules"
741 v-model="addSystemAdmin.joinDate" 741 v-model="addSystemAdmin.joinDate"
742 placeholder="Select date" 742 placeholder="Select date"
743 ></v-text-field> 743 ></v-text-field>
744 <v-date-picker 744 <v-date-picker
745 ref="picker" 745 ref="picker"
746 v-model="addSystemAdmin.joinDate" 746 v-model="addSystemAdmin.joinDate"
747 :max="new Date().toISOString().substr(0, 10)" 747 :max="new Date().toISOString().substr(0, 10)"
748 min="1950-01-01" 748 min="1950-01-01"
749 @input="menu1 = false" 749 @input="menu1 = false"
750 ></v-date-picker> 750 ></v-date-picker>
751 </v-menu> 751 </v-menu>
752 </v-flex> 752 </v-flex>
753 </v-layout> 753 </v-layout>
754 </v-flex> 754 </v-flex>
755 <v-flex xs12 sm6> 755 <v-flex xs12 sm6>
756 <v-layout> 756 <v-layout>
757 <v-flex xs4 class="pt-4 subheading"> 757 <v-flex xs4 class="pt-4 subheading">
758 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label> 758 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
759 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod:</label> 759 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod:</label>
760 </v-flex> 760 </v-flex>
761 <v-flex xs8 class="ml-3"> 761 <v-flex xs8 class="ml-3">
762 <v-text-field 762 <v-text-field
763 label="Select Image" 763 label="Select Image"
764 @click="pickFile" 764 @click="pickFile"
765 v-model="imageName" 765 v-model="imageName"
766 append-icon="attach_file" 766 append-icon="attach_file"
767 ></v-text-field> 767 ></v-text-field>
768 <input 768 <input
769 type="file" 769 type="file"
770 style="display:none" 770 style="display:none"
771 ref="image" 771 ref="image"
772 accept="image/*" 772 accept="image/*"
773 @change="onFilePicked" 773 @change="onFilePicked"
774 /> 774 />
775 </v-flex> 775 </v-flex>
776 </v-layout> 776 </v-layout>
777 </v-flex> 777 </v-flex>
778 </v-layout> 778 </v-layout>
779 <v-layout> 779 <v-layout>
780 <v-flex xs12 sm6> 780 <v-flex xs12 sm6>
781 <v-layout> 781 <v-layout>
782 <v-flex xs4 class="pt-4 subheading"> 782 <v-flex xs4 class="pt-4 subheading">
783 <label class="right">Username:</label> 783 <label class="right">Username:</label>
784 </v-flex> 784 </v-flex>
785 <v-flex xs8 class="ml-3"> 785 <v-flex xs8 class="ml-3">
786 <v-text-field 786 <v-text-field
787 v-model="addSystemAdmin.username" 787 v-model="addSystemAdmin.username"
788 placeholder="fill your Username" 788 placeholder="fill your Username"
789 name="state" 789 name="state"
790 :rules="userNameRules" 790 :rules="userNameRules"
791 required 791 required
792 ></v-text-field> 792 ></v-text-field>
793 </v-flex> 793 </v-flex>
794 </v-layout> 794 </v-layout>
795 </v-flex> 795 </v-flex>
796 <v-flex xs12 sm6> 796 <v-flex xs12 sm6>
797 <v-layout> 797 <v-layout>
798 <v-flex xs4 class="pt-4 subheading"> 798 <v-flex xs4 class="pt-4 subheading">
799 <label class="right">Password:</label> 799 <label class="right">Password:</label>
800 </v-flex> 800 </v-flex>
801 <v-flex xs8 class="ml-3"> 801 <v-flex xs8 class="ml-3">
802 <v-text-field 802 <v-text-field
803 v-model="addSystemAdmin.Password" 803 v-model="addSystemAdmin.Password"
804 placeholder="fill your Password" 804 placeholder="fill your Password"
805 :rules="password" 805 :rules="password"
806 required 806 required
807 ></v-text-field> 807 ></v-text-field>
808 </v-flex> 808 </v-flex>
809 </v-layout> 809 </v-layout>
810 </v-flex> 810 </v-flex>
811 </v-layout> 811 </v-layout>
812 <v-layout class="hidden-xs-only hidden-sm-only"> 812 <v-layout class="hidden-xs-only hidden-sm-only">
813 <v-flex xs12 sm6> 813 <v-flex xs12 sm6>
814 <v-layout> 814 <v-layout>
815 <v-flex xs4 md4 class="pt-4 subheading"> 815 <v-flex xs4 md4 class="pt-4 subheading">
816 <label class="right">Address:</label> 816 <label class="right">Address:</label>
817 </v-flex> 817 </v-flex>
818 <v-flex xs8 md8 class="ml-3"> 818 <v-flex xs8 md8 class="ml-3">
819 <v-text-field 819 <v-text-field
820 name="input-4-3" 820 name="input-4-3"
821 v-model="addSystemAdmin.address" 821 v-model="addSystemAdmin.address"
822 :rules="address" 822 :rules="address"
823 placeholder="fill Your Address" 823 placeholder="fill Your Address"
824 required 824 required
825 ></v-text-field> 825 ></v-text-field>
826 </v-flex> 826 </v-flex>
827 </v-layout> 827 </v-layout>
828 </v-flex> 828 </v-flex>
829 </v-layout> 829 </v-layout>
830 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only"> 830 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only">
831 <v-flex xs12 sm12> 831 <v-flex xs12 sm12>
832 <v-layout> 832 <v-layout>
833 <v-flex xs12 sm12 class="pt-4 subheading text-xs-center"> 833 <v-flex xs12 sm12 class="pt-4 subheading text-xs-center">
834 <label class>Addres:</label> 834 <label class>Addres:</label>
835 </v-flex> 835 </v-flex>
836 </v-layout> 836 </v-layout>
837 <v-layout> 837 <v-layout>
838 <v-flex xs12 sm12> 838 <v-flex xs12 sm12>
839 <v-textarea 839 <v-textarea
840 name="input-4-3" 840 name="input-4-3"
841 v-model="addSystemAdmin.address" 841 v-model="addSystemAdmin.address"
842 :rules="address" 842 :rules="address"
843 placeholder="fill Your present Address" 843 placeholder="fill Your present Address"
844 required 844 required
845 ></v-textarea> 845 ></v-textarea>
846 </v-flex> 846 </v-flex>
847 </v-layout> 847 </v-layout>
848 </v-flex> 848 </v-flex>
849 <!-- <v-flex xs12 sm12> 849 <!-- <v-flex xs12 sm12>
850 <v-layout> 850 <v-layout>
851 <v-flex xs12 sm12 class="pt-4 pr-4 subheading text-xs-center addressForm"> 851 <v-flex xs12 sm12 class="pt-4 pr-4 subheading text-xs-center addressForm">
852 <label>Permanent Address:</label> 852 <label>Permanent Address:</label>
853 </v-flex> 853 </v-flex>
854 </v-layout> 854 </v-layout>
855 <v-layout> 855 <v-layout>
856 <v-flex xs12 sm12> 856 <v-flex xs12 sm12>
857 <v-textarea 857 <v-textarea
858 name="input-4-3" 858 name="input-4-3"
859 v-model="addSystemAdmin.permanentAddress" 859 v-model="addSystemAdmin.permanentAddress"
860 :rules="permanentAddress" 860 :rules="permanentAddress"
861 placeholder="fill Your Permanent Address" 861 placeholder="fill Your Permanent Address"
862 required 862 required
863 ></v-textarea> 863 ></v-textarea>
864 </v-flex> 864 </v-flex>
865 </v-layout> 865 </v-layout>
866 </v-flex> --> 866 </v-flex> -->
867 </v-layout> 867 </v-layout>
868 <v-layout class="mx-2"> 868 <v-layout class="mx-2">
869 <v-flex xs12 sm12 offset-sm1> 869 <v-flex xs12 sm12 offset-sm1>
870 <v-layout> 870 <v-layout>
871 <v-flex xs6> 871 <v-flex xs6>
872 <v-btn @click="clear" round dark>clear</v-btn> 872 <v-btn @click="clear" round dark>clear</v-btn>
873 </v-flex> 873 </v-flex>
874 <v-flex xs6> 874 <v-flex xs6>
875 <v-btn @click="submit" round dark :loading="loading" class="right">Add</v-btn> 875 <v-btn @click="submit" round dark :loading="loading" class="right">Add</v-btn>
876 </v-flex> 876 </v-flex>
877 </v-layout> 877 </v-layout>
878 </v-flex> 878 </v-flex>
879 </v-layout> 879 </v-layout>
880 </v-container> 880 </v-container>
881 </v-form> 881 </v-form>
882 </v-card> 882 </v-card>
883 </v-flex> 883 </v-flex>
884 </v-container> 884 </v-container>
885 </v-tab-item> 885 </v-tab-item>
886 </v-tabs> 886 </v-tabs>
887 <div class="loader" v-if="showLoader"> 887 <div class="loader" v-if="showLoader">
888 <v-progress-circular indeterminate color="white"></v-progress-circular> 888 <v-progress-circular indeterminate color="white"></v-progress-circular>
889 </div> 889 </div>
890 </v-app> 890 </v-app>
891 </template> 891 </template>
892 892
893 <script> 893 <script>
894 import http from "@/Services/http.js"; 894 import http from "@/Services/http.js";
895 import moment from "moment"; 895 import moment from "moment";
896 896
897 export default { 897 export default {
898 data: () => ({ 898 data: () => ({
899 component: "report-generate", 899 component: "report-generate",
900 snackbar: false, 900 snackbar: false,
901 y: "top", 901 y: "top",
902 x: "right", 902 x: "right",
903 mode: "", 903 mode: "",
904 timeout: 3000, 904 timeout: 3000,
905 text: "", 905 text: "",
906 showLoader: false, 906 showLoader: false,
907 loading: false, 907 loading: false,
908 date: null, 908 date: null,
909 search: "", 909 search: "",
910 menu: false, 910 menu: false,
911 menu1: false, 911 menu1: false,
912 menu2: false, 912 menu2: false,
913 menu3: false, 913 menu3: false,
914 dialog: false, 914 dialog: false,
915 dialog1: false, 915 dialog1: false,
916 valid: true, 916 valid: true,
917 isActive: true, 917 isActive: true,
918 newActive: false, 918 newActive: false,
919 pagination: { 919 pagination: {
920 rowsPerPage: 15 920 rowsPerPage: 15
921 }, 921 },
922 imageData: {}, 922 imageData: {},
923 imageName: "", 923 imageName: "",
924 imageUrl: "", 924 imageUrl: "",
925 imageFile: "", 925 imageFile: "",
926 nameRules: [v => !!v || " Full Name is required"], 926 nameRules: [v => !!v || " Full Name is required"],
927 dateRules: [v => !!v || " DOB is required"], 927 dateRules: [v => !!v || " DOB is required"],
928 cityRules: [v => !!v || " City Name is required"], 928 cityRules: [v => !!v || " City Name is required"],
929 password: [v => !!v || " Password is required"], 929 password: [v => !!v || " Password is required"],
930 religion: [v => !!v || "Religion Name is required"], 930 religion: [v => !!v || "Religion Name is required"],
931 permanentAddress: [v => !!v || " Permanent Address is required"], 931 permanentAddress: [v => !!v || " Permanent Address is required"],
932 address: [v => !!v || "Address is required"], 932 address: [v => !!v || "Address is required"],
933 mobileNoRules: [v => !!v || "Mobile Number is required"], 933 mobileNoRules: [v => !!v || "Mobile Number is required"],
934 userNameRules: [v => !!v || "Username Name is required"], 934 userNameRules: [v => !!v || "Username Name is required"],
935 joinDateRules: [v => !!v || " Join Date is required"], 935 joinDateRules: [v => !!v || " Join Date is required"],
936 errorMessages: "", 936 errorMessages: "",
937 emailRules: [ 937 emailRules: [
938 v => !!v || "E-mail is required", 938 v => !!v || "E-mail is required",
939 v => 939 v =>
940 /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) || 940 /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) ||
941 "E-mail must be valid" 941 "E-mail must be valid"
942 ], 942 ],
943 countries: [], 943 countries: [],
944 headers: [ 944 headers: [
945 { 945 {
946 text: "No", 946 text: "No",
947 align: "center", 947 align: "center",
948 sortable: false, 948 sortable: false,
949 value: "No" 949 value: "No"
950 }, 950 },
951 { 951 {
952 text: "Profile Pic", 952 text: "Profile Pic",
953 value: "profilePicUrl", 953 value: "profilePicUrl",
954 sortable: false, 954 sortable: false,
955 align: "center" 955 align: "center"
956 }, 956 },
957 { text: "Name", value: "name", sortable: false, align: "center" }, 957 { text: "Name", value: "name", sortable: false, align: "center" },
958 { text: "Email", value: "email", sortable: false, align: "center" }, 958 { text: "Email", value: "email", sortable: false, align: "center" },
959 { text: "Role", value: "role", sortable: false, align: "center" }, 959 { text: "Role", value: "role", sortable: false, align: "center" },
960 { 960 {
961 text: "Status", 961 text: "Status",
962 value: "status", 962 value: "status",
963 sortable: false, 963 sortable: false,
964 align: "center" 964 align: "center"
965 }, 965 },
966 { text: "Action", value: "", sortable: false, align: "center" } 966 { text: "Action", value: "", sortable: false, align: "center" }
967 ], 967 ],
968 gender:['Male','Female'], 968 gender:['Male','Female'],
969 desserts: [], 969 desserts: [],
970 editedIndex: -1, 970 editedIndex: -1,
971 upload: "", 971 upload: "",
972 editedItem: {}, 972 editedItem: {},
973 addSystemAdmin: {}, 973 addSystemAdmin: {},
974 }), 974 }),
975 watch: { 975 watch: {
976 menu(val) { 976 menu(val) {
977 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR")); 977 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
978 }, 978 },
979 menu1(val) { 979 menu1(val) {
980 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR")); 980 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
981 } 981 }
982 }, 982 },
983 methods: { 983 methods: {
984 save(date) { 984 save(date) {
985 this.$refs.menu.save(date); 985 this.$refs.menu.save(date);
986 }, 986 },
987 save(date) { 987 save(date) {
988 this.$refs.menu1.save(date); 988 this.$refs.menu1.save(date);
989 }, 989 },
990 pickFile() { 990 pickFile() {
991 this.$refs.image.click(); 991 this.$refs.image.click();
992 }, 992 },
993 onFilePicked(e) { 993 onFilePicked(e) {
994 // console.log(e)
995 const files = e.target.files; 994 const files = e.target.files;
996 this.upload = e.target.files[0]; 995 this.upload = e.target.files[0];
997 console.log("imageData-upload========>", this.upload);
998 if (files[0] !== undefined) { 996 if (files[0] !== undefined) {
999 this.imageName = files[0].name; 997 this.imageName = files[0].name;
1000 if (this.imageName.lastIndexOf(".") <= 0) { 998 if (this.imageName.lastIndexOf(".") <= 0) {
1001 return; 999 return;
1002 } 1000 }
1003 const fr = new FileReader(); 1001 const fr = new FileReader();
1004 fr.readAsDataURL(files[0]); 1002 fr.readAsDataURL(files[0]);
1005 fr.addEventListener("load", () => { 1003 fr.addEventListener("load", () => {
1006 this.imageUrl = fr.result; 1004 this.imageUrl = fr.result;
1007 this.imageFile = files[0]; // this is an image file that can be sent to server... 1005 this.imageFile = files[0]; // this is an image file that can be sent to server...
1008 // this.imageData.imageUrl = URL.createObjectURL(this.imageFile);
1009 // console.log("upload=======>", this.imageData.imageUrl);
1010 console.log("imageFile", this.imageUrl);
1011 }); 1006 });
1012 } else { 1007 } else {
1013 this.imageName = ""; 1008 this.imageName = "";
1014 this.imageFile = ""; 1009 this.imageFile = "";
1015 this.imageUrl = ""; 1010 this.imageUrl = "";
1016 } 1011 }
1017 }, 1012 },
1018 dates: function(date) { 1013 dates: function(date) {
1019 return moment(date).format("MMMM DD, YYYY"); 1014 return moment(date).format("MMMM DD, YYYY");
1020 }, 1015 },
1021 getSystemAdminList() { 1016 getSystemAdminList() {
1022 this.showLoader = true; 1017 this.showLoader = true;
1023 var token = this.$store.state.token; 1018 var token = this.$store.state.token;
1024 http() 1019 http()
1025 .get("/getTeachersList", { 1020 .get("/getTeachersList", {
1026 headers: { Authorization: "Bearer " + token } 1021 headers: { Authorization: "Bearer " + token }
1027 }) 1022 })
1028 .then(response => { 1023 .then(response => {
1029 this.desserts = response.data.data; 1024 this.desserts = response.data.data;
1030 this.showLoader = false; 1025 this.showLoader = false;
1031 // console.log("getTeacherList=====>",this.desserts)
1032 }) 1026 })
1033 .catch(error => { 1027 .catch(error => {
1034 this.showLoader = false; 1028 this.showLoader = false;
1035 if (error.response.status === 401) { 1029 if (error.response.status === 401) {
1036 this.$router.replace({ path: "/" }); 1030 this.$router.replace({ path: "/" });
1037 this.$store.dispatch("setToken", null); 1031 this.$store.dispatch("setToken", null);
1038 this.$store.dispatch("Id", null); 1032 this.$store.dispatch("Id", null);
1039 } 1033 }
1040 }); 1034 });
1041 }, 1035 },
1042 editItem(item) { 1036 editItem(item) {
1043 this.editedIndex = this.desserts.indexOf(item); 1037 this.editedIndex = this.desserts.indexOf(item);
1044 this.editedItem = Object.assign({}, item); 1038 this.editedItem = Object.assign({}, item);
1045 this.editedItem.dob = 1039 this.editedItem.dob =
1046 this.editedItem.dob != undefined 1040 this.editedItem.dob != undefined
1047 ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10)) 1041 ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10))
1048 : (this.editedItem.dob = ""); 1042 : (this.editedItem.dob = "");
1049 this.editedItem.joinDate = 1043 this.editedItem.joinDate =
1050 this.editedItem.joinDate != undefined 1044 this.editedItem.joinDate != undefined
1051 ? (this.editedItem.joinDate = this.editedItem.joinDate.substring( 1045 ? (this.editedItem.joinDate = this.editedItem.joinDate.substring(
1052 0, 1046 0,
1053 10 1047 10
1054 )) 1048 ))
1055 : (this.editedItem.joinDate = ""); 1049 : (this.editedItem.joinDate = "");
1056 1050
1057 this.dialog = true; 1051 this.dialog = true;
1058 }, 1052 },
1059 profile(item) { 1053 profile(item) {
1060 this.editedIndex = this.desserts.indexOf(item); 1054 this.editedIndex = this.desserts.indexOf(item);
1061 this.editedItem = Object.assign({}, item); 1055 this.editedItem = Object.assign({}, item);
1062 this.dialog1 = true; 1056 this.dialog1 = true;
1063 }, 1057 },
1064 deleteItem(item) { 1058 deleteItem(item) {
1065 let deleteTeachers = { 1059 let deleteTeachers = {
1066 teacherId: item._id 1060 teacherId: item._id
1067 }; 1061 };
1068 // console.log("deleteUers",deleteTeachers)
1069 http() 1062 http()
1070 .delete( 1063 .delete(
1071 "/deleteTeacher", 1064 "/deleteTeacher",
1072 confirm("Are you sure you want to delete this?") && { 1065 confirm("Are you sure you want to delete this?") && {
1073 params: deleteTeachers 1066 params: deleteTeachers
1074 } 1067 }
1075 ) 1068 )
1076 .then(response => { 1069 .then(response => {
1077 // console.log("deleteUers",deleteTeachers)
1078 if ((this.snackbar = true)) { 1070 if ((this.snackbar = true)) {
1079 this.text = "Successfully delete Existing Teacher"; 1071 this.text = "Successfully delete Existing Teacher";
1080 } 1072 }
1081 this.getSystemAdminList(); 1073 this.getSystemAdminList();
1082 }) 1074 })
1083 .catch(error => { 1075 .catch(error => {
1084 console.log(error); 1076 console.log(error);
1085 }); 1077 });
1086 }, 1078 },
1087 activeTab(type) { 1079 activeTab(type) {
1088 switch (type) { 1080 switch (type) {
1089 case "existing": 1081 case "existing":
1090 this.newActive = false; 1082 this.newActive = false;
1091 this.isActive = true; 1083 this.isActive = true;
1092 break; 1084 break;
1093 1085
1094 default: 1086 default:
1095 this.newActive = true; 1087 this.newActive = true;
1096 this.isActive = false; 1088 this.isActive = false;
1097 break; 1089 break;
1098 } 1090 }
1099 }, 1091 },
1100 close() { 1092 close() {
1101 this.dialog = false; 1093 this.dialog = false;
1102 setTimeout(() => { 1094 setTimeout(() => {
1103 this.editedItem = Object.assign({}, this.defaultItem); 1095 this.editedItem = Object.assign({}, this.defaultItem);
1104 this.editedIndex = -1; 1096 this.editedIndex = -1;
1105 }, 300); 1097 }, 300);
1106 }, 1098 },
1107 close1() { 1099 close1() {
1108 this.dialog1 = false; 1100 this.dialog1 = false;
1109 }, 1101 },
1110 submit() { 1102 submit() {
1111 if (this.$refs.form.validate()) { 1103 if (this.$refs.form.validate()) {
1112 let addTeacher = { 1104 let addTeacher = {
1113 // name: this.addTeachers.name, 1105 // name: this.addTeachers.name,
1114 // email: this.addTeachers.email, 1106 // email: this.addTeachers.email,
1115 // role: this.addTeachers.role, 1107 // role: this.addTeachers.role,
1116 // dob: this.addTeachers.date, 1108 // dob: this.addTeachers.date,
1117 // city: this.addTeachers.city, 1109 // city: this.addTeachers.city,
1118 // pincode: this.addTeachers.pincode, 1110 // pincode: this.addTeachers.pincode,
1119 // country: this.addTeachers.country, 1111 // country: this.addTeachers.country,
1120 // permanentAddress: this.addTeachers.permanentAddress, 1112 // permanentAddress: this.addTeachers.permanentAddress,
1121 // presentAddress: this.addTeachers.presentAddress, 1113 // presentAddress: this.addTeachers.presentAddress,
1122 // mobileNo: this.addTeachers.mobileNo, 1114 // mobileNo: this.addTeachers.mobileNo,
1123 // state: this.addTeachers.state, 1115 // state: this.addTeachers.state,
1124 // joinDate: this.addTeachers.joinDate 1116 // joinDate: this.addTeachers.joinDate
1125 }; 1117 };
1126 if (this.imageUrl) { 1118 if (this.imageUrl) {
1127 var str = this.imageUrl; 1119 var str = this.imageUrl;
1128 const [baseUrl, imageUrl] = str.split(/,/); 1120 const [baseUrl, imageUrl] = str.split(/,/);
1129 addTeacher.upload = imageUrl; 1121 addTeacher.upload = imageUrl;
1130 } 1122 }
1131 this.loading = true; 1123 this.loading = true;
1132 http() 1124 http()
1133 .post("/createTeacher", addTeacher) 1125 .post("/createTeacher", addTeacher)
1134 .then(response => { 1126 .then(response => {
1135 this.imageUrl = ""; 1127 this.imageUrl = "";
1136 this.getTeacherList(); 1128 this.getTeacherList();
1137 this.snackbar = true; 1129 this.snackbar = true;
1138 this.text = "New Teacher added successfully"; 1130 this.text = "New Teacher added successfully";
1139 this.clear(); 1131 this.clear();
1140 this.loading = false; 1132 this.loading = false;
1141 }) 1133 })
1142 .catch(error => { 1134 .catch(error => {
1143 // console.log(error); 1135 // console.log(error);
1144 if ((this.snackbar = true)) { 1136 if ((this.snackbar = true)) {
1145 this.text = error.response.data.message; 1137 this.text = error.response.data.message;
1146 } 1138 }
1147 this.loading = false; 1139 this.loading = false;
1148 }); 1140 });
1149 } 1141 }
1150 }, 1142 },
1151 clear() { 1143 clear() {
1152 this.$refs.form.reset(); 1144 this.$refs.form.reset();
1153 this.imageUrl = ""; 1145 this.imageUrl = "";
1154 }, 1146 },
1155 save() { 1147 save() {
1156 this.loading = true; 1148 this.loading = true;
1157 let editTeacher = {}; 1149 let editTeacher = {};
1158 if (this.imageUrl) { 1150 if (this.imageUrl) {
1159 var str = this.imageUrl; 1151 var str = this.imageUrl;
1160 const [baseUrl, imageUrl] = str.split(/,/); 1152 const [baseUrl, imageUrl] = str.split(/,/);
1161 editTeacher.upload = imageUrl; 1153 editTeacher.upload = imageUrl;
1162 } 1154 }
1163 http() 1155 http()
1164 .put("/updateTeacher", editTeacher) 1156 .put("/updateTeacher", editTeacher)
1165 .then(response => { 1157 .then(response => {
1166 console.log("editTeacher", editTeacher); 1158 console.log("editTeacher", editTeacher);
1167 this.snackbar = true; 1159 this.snackbar = true;
1168 this.text = "Successfully Edit Existing Teacher"; 1160 this.text = "Successfully Edit Existing Teacher";
1169 this.loading = false; 1161 this.loading = false;
1170 this.getTeacherList(); 1162 this.getTeacherList();
1171 this.close(); 1163 this.close();
1172 }) 1164 })
1173 .catch(error => { 1165 .catch(error => {
1174 console.log(error); 1166 console.log(error);
1175 this.loading = false; 1167 this.loading = false;
1176 }); 1168 });
1177 } 1169 }
1178 }, 1170 },
1179 mounted() { 1171 mounted() {
1180 // this.getSystemAdminList(); 1172 // this.getSystemAdminList();
1181 }, 1173 },
1182 created() { 1174 created() {
1183 this.$root.$on("app:search", search => { 1175 this.$root.$on("app:search", search => {
1184 this.search = search; 1176 this.search = search;
1185 }); 1177 });
1186 }, 1178 },
1187 beforeDestroy() { 1179 beforeDestroy() {
1188 // dont forget to remove the listener 1180 // dont forget to remove the listener
1189 this.$root.$off("app:search"); 1181 this.$root.$off("app:search");
1190 } 1182 }
1191 }; 1183 };
1192 </script> 1184 </script>
1193 <style scoped> 1185 <style scoped>
1194 .active { 1186 .active {
1195 background-color: gray; 1187 background-color: gray;
1196 color: white !important; 1188 color: white !important;
1197 } 1189 }
1198 .activebtn { 1190 .activebtn {
1199 color: black !important; 1191 color: black !important;
1200 } 1192 }
1201 </style> 1193 </style>
src/pages/Report/progressCardReport.vue
1 <template> 1 <template>
2 <v-app id="pages-dasboard"> 2 <v-app id="pages-dasboard">
3 <!-- ****** Progress Card Report Table****** --> 3 <!-- ****** Progress Card Report Table****** -->
4 4
5 <v-card flat> 5 <v-card flat>
6 <v-card-actions> 6 <v-card-actions>
7 <v-layout> 7 <v-layout>
8 <h4 class="ml-2">Progress Card Report</h4> 8 <h4 class="ml-2">Progress Card Report</h4>
9 </v-layout> 9 </v-layout>
10 </v-card-actions> 10 </v-card-actions>
11 </v-card> 11 </v-card>
12 <v-card flat> 12 <v-card flat>
13 <v-form ref="form" v-model="valid" lazy-validation> 13 <v-form ref="form" v-model="valid" lazy-validation>
14 <v-flex xs12 sm12 lg12> 14 <v-flex xs12 sm12 lg12>
15 <v-layout wrap> 15 <v-layout wrap>
16 <v-flex xs12 sm12 lg3> 16 <v-flex xs12 sm12 lg3>
17 <v-layout> 17 <v-layout>
18 <v-flex xs3 sm6 lg2 class="subheading mt-4"> 18 <v-flex xs3 sm6 lg2 class="subheading mt-4">
19 <label class="right">Class:</label> 19 <label class="right">Class:</label>
20 </v-flex> 20 </v-flex>
21 <v-flex xs9 sm6 lg8 class="ml-2"> 21 <v-flex xs9 sm6 lg8 class="ml-2">
22 <v-select 22 <v-select
23 v-model="getReport.classId" 23 v-model="getReport.classId"
24 label="Select your class" 24 label="Select your class"
25 type="text" 25 type="text"
26 :items="classList" 26 :items="classList"
27 item-text="classNum" 27 item-text="classNum"
28 item-value="_id" 28 item-value="_id"
29 :rules="classRules" 29 :rules="classRules"
30 @change="getSections(getReport.classId)" 30 @change="getSections(getReport.classId)"
31 required 31 required
32 ></v-select> 32 ></v-select>
33 </v-flex> 33 </v-flex>
34 </v-layout> 34 </v-layout>
35 </v-flex> 35 </v-flex>
36 <v-flex xs12 sm12 lg3> 36 <v-flex xs12 sm12 lg3>
37 <v-layout> 37 <v-layout>
38 <v-flex xs3 sm6 lg2 class="subheading mt-4"> 38 <v-flex xs3 sm6 lg2 class="subheading mt-4">
39 <label class="right">Section:</label> 39 <label class="right">Section:</label>
40 </v-flex> 40 </v-flex>
41 <v-flex xs9 sm6 lg8 class="ml-2"> 41 <v-flex xs9 sm6 lg8 class="ml-2">
42 <v-select 42 <v-select
43 :items="addSection" 43 :items="addSection"
44 label="Select your Section" 44 label="Select your Section"
45 v-model="getReport.sectionId" 45 v-model="getReport.sectionId"
46 item-text="name" 46 item-text="name"
47 item-value="_id" 47 item-value="_id"
48 name="Select Section" 48 name="Select Section"
49 @change="getStudents" 49 @change="getStudents"
50 :rules="sectionRules" 50 :rules="sectionRules"
51 required 51 required
52 ></v-select> 52 ></v-select>
53 </v-flex> 53 </v-flex>
54 </v-layout> 54 </v-layout>
55 </v-flex> 55 </v-flex>
56 <v-flex xs12 sm12 lg3> 56 <v-flex xs12 sm12 lg3>
57 <v-layout> 57 <v-layout>
58 <v-flex xs3 sm6 lg2 class="subheading mt-4"> 58 <v-flex xs3 sm6 lg2 class="subheading mt-4">
59 <label class="right">Student:</label> 59 <label class="right">Student:</label>
60 </v-flex> 60 </v-flex>
61 <v-flex xs9 sm6 lg8 class="ml-2"> 61 <v-flex xs9 sm6 lg8 class="ml-2">
62 <v-select 62 <v-select
63 :items="getStudentsList" 63 :items="getStudentsList"
64 label="Select your student" 64 label="Select your student"
65 v-model="getReport.studentId" 65 v-model="getReport.studentId"
66 item-text="name" 66 item-text="name"
67 item-value="_id" 67 item-value="_id"
68 :rules="studentRules" 68 :rules="studentRules"
69 required 69 required
70 ></v-select> 70 ></v-select>
71 </v-flex> 71 </v-flex>
72 </v-layout> 72 </v-layout>
73 </v-flex> 73 </v-flex>
74 <v-flex xs12 sm12 lg3> 74 <v-flex xs12 sm12 lg3>
75 <v-btn 75 <v-btn
76 @click="getMarkReportList" 76 @click="getMarkReportList"
77 round 77 round
78 dark 78 dark
79 :loading="loading" 79 :loading="loading"
80 class="right mt-3" 80 class="right mt-3"
81 >Get Report</v-btn> 81 >Get Report</v-btn>
82 </v-flex> 82 </v-flex>
83 </v-layout> 83 </v-layout>
84 </v-flex> 84 </v-flex>
85 </v-form> 85 </v-form>
86 </v-card> 86 </v-card>
87 <!-- ****** PROFILE MARK ****** --> 87 <!-- ****** PROFILE MARK ****** -->
88 88
89 <v-container fluid grid-list-md v-show="showReport"> 89 <v-container fluid grid-list-md v-show="showReport">
90 <v-layout> 90 <v-layout>
91 <v-flex xs12 sm12> 91 <v-flex xs12 sm12>
92 <v-btn class="grey" dark @click="print()"> 92 <v-btn class="grey" dark @click="print()">
93 Print 93 Print
94 <v-icon right dark>print</v-icon> 94 <v-icon right dark>print</v-icon>
95 </v-btn> 95 </v-btn>
96 </v-flex> 96 </v-flex>
97 </v-layout> 97 </v-layout>
98 <v-flex xs12 sm12 id="printMe"> 98 <v-flex xs12 sm12 id="printMe">
99 <v-layout wrap> 99 <v-layout wrap>
100 <v-flex xs12 sm12 md3> 100 <v-flex xs12 sm12 md3>
101 <v-card class="fixcolors white--text" flat> 101 <v-card class="fixcolors white--text" flat>
102 <v-card-actions class="pa-0"> 102 <v-card-actions class="pa-0">
103 <v-spacer></v-spacer> 103 <v-spacer></v-spacer>
104 <v-card-title class="pa-2"> 104 <v-card-title class="pa-2">
105 <h3>Profile</h3> 105 <h3>Profile</h3>
106 </v-card-title> 106 </v-card-title>
107 <v-spacer></v-spacer> 107 <v-spacer></v-spacer>
108 </v-card-actions> 108 </v-card-actions>
109 </v-card> 109 </v-card>
110 <v-card flat> 110 <v-card flat>
111 <v-layout 111 <v-layout
112 wrap 112 wrap
113 v-for="(value, id, index) in filterData" 113 v-for="(value, id, index) in filterData"
114 v-if="index == 0" 114 v-if="index == 0"
115 :key="index" 115 :key="index"
116 > 116 >
117 <v-flex xs12 style="margin:16px;"> 117 <v-flex xs12 style="margin:16px;">
118 <v-layout> 118 <v-layout>
119 <v-flex xs12> 119 <v-flex xs12>
120 <v-avatar 120 <v-avatar
121 size="100px" 121 size="100px"
122 class="mx-auto" 122 class="mx-auto"
123 style="margin: auto;display:block;margin-bottom:10px !important" 123 style="margin: auto;display:block;margin-bottom:10px !important"
124 > 124 >
125 <img src="/static/icon/user.png" v-if="!value[0].studentId.profilePicUrl" /> 125 <img src="/static/icon/user.png" v-if="!value[0].studentId.profilePicUrl" />
126 <img 126 <img
127 :src="value[0].studentId.profilePicUrl" 127 :src="value[0].studentId.profilePicUrl"
128 v-else-if="value[0].studentId.profilePicUrl" 128 v-else-if="value[0].studentId.profilePicUrl"
129 /> 129 />
130 </v-avatar> 130 </v-avatar>
131 </v-flex> 131 </v-flex>
132 </v-layout> 132 </v-layout>
133 <v-layout> 133 <v-layout>
134 <v-flex xs12 style="text-align:center;"> 134 <v-flex xs12 style="text-align:center;">
135 <h3> 135 <h3>
136 <b>{{ value[0].studentId.name }}</b> 136 <b>{{ value[0].studentId.name }}</b>
137 </h3> 137 </h3>
138 <p class="grey--text">Student</p> 138 <p class="grey--text">Student</p>
139 </v-flex> 139 </v-flex>
140 </v-layout> 140 </v-layout>
141 <v-layout 141 <v-layout
142 style="border: 1px solid lightgrey;padding: 4px;border-top-right-radius: 4px; 142 style="border: 1px solid lightgrey;padding: 4px;border-top-right-radius: 4px;
143 border-top-left-radius: 4px;" 143 border-top-left-radius: 4px;"
144 > 144 >
145 <v-flex xs6 sm3 class="py-1"> 145 <v-flex xs6 sm3 class="py-1">
146 <h4> 146 <h4>
147 <b>RollNo</b> 147 <b>RollNo</b>
148 </h4> 148 </h4>
149 </v-flex> 149 </v-flex>
150 <v-flex sm9 xs7 class="py-1"> 150 <v-flex sm9 xs6 class="py-1">
151 <h4>: {{ value[0].studentId.rollNo }}</h4> 151 <h4>: {{ value[0].studentId.rollNo }}</h4>
152 </v-flex> 152 </v-flex>
153 </v-layout> 153 </v-layout>
154 <v-layout style="border: 1px solid lightgrey;padding: 4px;"> 154 <v-layout style="border: 1px solid lightgrey;padding: 4px;">
155 <v-flex xs6 sm3 class="py-1"> 155 <v-flex xs6 sm3 class="py-1">
156 <h4> 156 <h4>
157 <b>Class</b> 157 <b>Class</b>
158 </h4> 158 </h4>
159 </v-flex> 159 </v-flex>
160 <v-flex sm9 xs8 class="py-1"> 160 <v-flex sm9 xs6 class="py-1">
161 <h4>: {{value[0].classId.classNum }}</h4> 161 <h4>: {{value[0].classId.classNum }}</h4>
162 </v-flex> 162 </v-flex>
163 </v-layout> 163 </v-layout>
164 <v-layout 164 <v-layout
165 style="border: 1px solid lightgrey;padding: 4px;border-bottom-right-radius: 4px; 165 style="border: 1px solid lightgrey;padding: 4px;border-bottom-right-radius: 4px;
166 border-bottom-left-radius: 4px;" 166 border-bottom-left-radius: 4px;"
167 > 167 >
168 <v-flex xs6 sm3 class> 168 <v-flex xs6 sm3 class>
169 <h4> 169 <h4>
170 <b>Section</b> 170 <b>Section</b>
171 </h4> 171 </h4>
172 </v-flex> 172 </v-flex>
173 <v-flex sm9 xs6 class> 173 <v-flex sm9 xs6 class>
174 <h4>: {{ value[0].sectionId.name}}</h4> 174 <h4>: {{ value[0].sectionId.name}}</h4>
175 </v-flex> 175 </v-flex>
176 </v-layout> 176 </v-layout>
177 </v-flex> 177 </v-flex>
178 </v-layout> 178 </v-layout>
179 </v-card> 179 </v-card>
180 </v-flex> 180 </v-flex>
181 181
182 <!-- ****** TABLE DATA MARK ****** --> 182 <!-- ****** TABLE DATA MARK ****** -->
183 183
184 <v-flex xs12 sm12 md9> 184 <v-flex xs12 sm12 md9>
185 <v-card class="fixcolors white--text" flat> 185 <v-card class="fixcolors white--text" flat>
186 <v-card-actions class="pa-0"> 186 <v-card-actions class="pa-0">
187 <v-spacer></v-spacer> 187 <v-spacer></v-spacer>
188 <v-card-title class="pa-2"> 188 <v-card-title class="pa-2">
189 <h3>Mark</h3> 189 <h3>Mark</h3>
190 </v-card-title> 190 </v-card-title>
191 <v-spacer></v-spacer> 191 <v-spacer></v-spacer>
192 </v-card-actions> 192 </v-card-actions>
193 </v-card> 193 </v-card>
194 <v-card 194 <v-card
195 v-for="(value, id, index) in filterData" 195 v-for="(value, id, index) in filterData"
196 :key="index" 196 :key="index"
197 flat 197 flat
198 style="border: 1px solid lightgrey;margin-bottom:14px;" 198 style="border: 1px solid lightgrey;margin-bottom:14px;"
199 > 199 >
200 <v-card-title class="subheading">{{value[0].examId.examName}}</v-card-title> 200 <v-card-title class="subheading">{{value[0].examId.examName}}</v-card-title>
201 <table 201 <table
202 class="mb-5 tableRsponsive feeTypeTable" 202 class="mb-5 tableRsponsive feeTypeTable"
203 style="border: 1px solid lightgrey; 203 style="border: 1px solid lightgrey;
204 border-collapse: collapse;!important 204 border-collapse: collapse;!important
205 table-layout: auto !important; 205 table-layout: auto !important;
206 width: 100% !important;" 206 width: 100% !important;"
207 > 207 >
208 <thead style="border: 1px solid lightgrey !important;"> 208 <thead style="border: 1px solid lightgrey !important;">
209 <tr 209 <tr
210 class="info white--text" 210 class="info white--text"
211 style="border: 1px solid lightgrey !important;padding:4px;" 211 style="border: 1px solid lightgrey !important;padding:4px;"
212 > 212 >
213 <td 213 <td
214 rowspan="2" 214 rowspan="2"
215 style="border: 1px solid lightgrey !important;padding: 10px;" 215 style="border: 1px solid lightgrey !important;padding: 10px;"
216 >Subject</td> 216 >Subject</td>
217 <td 217 <td
218 colspan="2" 218 colspan="2"
219 v-for="exam in value[index].studentsMarks" 219 v-for="exam in value[index].studentsMarks"
220 style="border: 1px solid lightgrey !important;padding: 10px;" 220 style="border: 1px solid lightgrey !important;padding: 10px;"
221 >{{exam.markDistributionId.distributionType}}</td> 221 >{{exam.markDistributionId.distributionType}}</td>
222 <td style="border: 1px solid lightgrey !important;padding: 10px;">Total</td> 222 <td style="border: 1px solid lightgrey !important;padding: 10px;">Total</td>
223 </tr> 223 </tr>
224 <tr 224 <tr
225 v-for="(subject, ind) in value" 225 v-for="(subject, ind) in value"
226 v-if="ind == 0" 226 v-if="ind == 0"
227 style="border: 1px solid lightgrey !important;" 227 style="border: 1px solid lightgrey !important;"
228 > 228 >
229 <template v-for="(exam, i) in subject.studentsMarks"> 229 <template v-for="(exam, i) in subject.studentsMarks">
230 <td 230 <td
231 class="bg-sky white--text" 231 class="bg-sky white--text"
232 style="border: 1px solid lightgrey !important;padding: 10px;" 232 style="border: 1px solid lightgrey !important;padding: 10px;"
233 >Mark</td> 233 >Mark</td>
234 <td 234 <td
235 class="bg-sky-light white--text" 235 class="bg-sky-light white--text"
236 style="border: 1px solid lightgrey !important;padding: 10px;" 236 style="border: 1px solid lightgrey !important;padding: 10px;"
237 >Highest Mark</td> 237 >Highest Mark</td>
238 </template> 238 </template>
239 <td 239 <td
240 class="bg-sky white--text" 240 class="bg-sky white--text"
241 style="border: 1px solid lightgrey !important;padding: 10px;" 241 style="border: 1px solid lightgrey !important;padding: 10px;"
242 >Mark</td> 242 >Mark</td>
243 </tr> 243 </tr>
244 </thead> 244 </thead>
245 <tbody style="border: 1px solid lightgrey !important;"> 245 <tbody style="border: 1px solid lightgrey !important;">
246 <tr v-for="subject in value" style="border: 1px solid lightgrey !important;"> 246 <tr v-for="subject in value" style="border: 1px solid lightgrey !important;">
247 <td 247 <td
248 style="border: 1px solid lightgrey !important;padding: 10px;" 248 style="border: 1px solid lightgrey !important;padding: 10px;"
249 >{{subject.subjectName}}</td> 249 >{{subject.subjectName}}</td>
250 <template v-for="(exam, i) in subject.studentsMarks"> 250 <template v-for="(exam, i) in subject.studentsMarks">
251 <td 251 <td
252 style="border: 1px solid lightgrey !important;padding: 10px;" 252 style="border: 1px solid lightgrey !important;padding: 10px;"
253 >{{exam.marksScored}}</td> 253 >{{exam.marksScored}}</td>
254 <td 254 <td
255 style="border: 1px solid lightgrey !important;padding: 10px;" 255 style="border: 1px solid lightgrey !important;padding: 10px;"
256 >{{exam.markDistributionId.markValue}}</td> 256 >{{exam.markDistributionId.markValue}}</td>
257 </template> 257 </template>
258 <td 258 <td
259 style="border: 1px solid lightgrey !important;padding: 10px;" 259 style="border: 1px solid lightgrey !important;padding: 10px;"
260 >{{subject.totalMarks}}</td> 260 >{{subject.totalMarks}}</td>
261 </tr> 261 </tr>
262 </tbody> 262 </tbody>
263 </table> 263 </table>
264 </v-card> 264 </v-card>
265 </v-flex> 265 </v-flex>
266 </v-layout> 266 </v-layout>
267 </v-flex> 267 </v-flex>
268 </v-container> 268 </v-container>
269 <div class="loader" v-if="showLoader"> 269 <div class="loader" v-if="showLoader">
270 <v-progress-circular indeterminate color="white"></v-progress-circular> 270 <v-progress-circular indeterminate color="white"></v-progress-circular>
271 </div> 271 </div>
272 </v-app> 272 </v-app>
273 </template> 273 </template>
274 274
275 <script> 275 <script>
276 import http from "@/Services/http.js"; 276 import http from "@/Services/http.js";
277 import moment from "moment"; 277 import moment from "moment";
278 import _ from "underscore"; 278 import _ from "underscore";
279 279
280 export default { 280 export default {
281 data: () => ({ 281 data: () => ({
282 showLoader: false, 282 showLoader: false,
283 markData: [], 283 markData: [],
284 token: "", 284 token: "",
285 markDistributions: [], 285 markDistributions: [],
286 markParticularDistributionData: [], 286 markParticularDistributionData: [],
287 loading: false, 287 loading: false,
288 valid: true, 288 valid: true,
289 loading: false, 289 loading: false,
290 showReport: false, 290 showReport: false,
291 addSection: [], 291 addSection: [],
292 filterData: [], 292 filterData: [],
293 getStudentsList: [], 293 getStudentsList: [],
294 classRules: [v => !!v || "Class is required"], 294 classRules: [v => !!v || "Class is required"],
295 sectionRules: [v => !!v || "Class is required"], 295 sectionRules: [v => !!v || "Class is required"],
296 studentRules: [v => !!v || "Student is required"], 296 studentRules: [v => !!v || "Student is required"],
297 getReport: {}, 297 getReport: {},
298 classList: [], 298 classList: [],
299 output: null 299 output: null
300 }), 300 }),
301 mounted() { 301 mounted() {
302 this.token = this.$store.state.token; 302 this.token = this.$store.state.token;
303 this.getClass(); 303 this.getClass();
304 }, 304 },
305 methods: { 305 methods: {
306 clear() { 306 clear() {
307 this.$refs.form.reset(); 307 this.$refs.form.reset();
308 }, 308 },
309 getClass() { 309 getClass() {
310 this.showLoader = true; 310 this.showLoader = true;
311 http() 311 http()
312 .get("/getClassesList", { 312 .get("/getClassesList", {
313 headers: { Authorization: "Bearer " + this.token } 313 headers: { Authorization: "Bearer " + this.token }
314 }) 314 })
315 .then(response => { 315 .then(response => {
316 this.classList = response.data.data; 316 this.classList = response.data.data;
317 this.showLoader = false; 317 this.showLoader = false;
318 }) 318 })
319 .catch(err => { 319 .catch(err => {
320 this.showLoader = false; 320 this.showLoader = false;
321 // console.log("err====>", err); 321 // console.log("err====>", err);
322 }); 322 });
323 }, 323 },
324 getSections(_id) { 324 getSections(_id) {
325 http() 325 http()
326 .get( 326 .get(
327 "/getSectionsList", 327 "/getSectionsList",
328 { params: { classId: _id } }, 328 { params: { classId: _id } },
329 { 329 {
330 headers: { Authorization: "Bearer " + this.token } 330 headers: { Authorization: "Bearer " + this.token }
331 } 331 }
332 ) 332 )
333 .then(response => { 333 .then(response => {
334 this.addSection = response.data.data; 334 this.addSection = response.data.data;
335 }) 335 })
336 .catch(err => { 336 .catch(err => {
337 // console.log("err====>", err); 337 // console.log("err====>", err);
338 }); 338 });
339 }, 339 },
340 getStudents() { 340 getStudents() {
341 this.showLoader = true; 341 this.showLoader = true;
342 http() 342 http()
343 .get("/getStudentWithClass", { 343 .get("/getStudentWithClass", {
344 params: { 344 params: {
345 classId: this.getReport.classId, 345 classId: this.getReport.classId,
346 sectionId: this.getReport.sectionId 346 sectionId: this.getReport.sectionId
347 } 347 }
348 }) 348 })
349 .then(response => { 349 .then(response => {
350 this.getStudentsList = response.data.data; 350 this.getStudentsList = response.data.data;
351 this.showLoader = false; 351 this.showLoader = false;
352 console.log("getSectionsList=====>", response.data.data); 352 console.log("getSectionsList=====>", response.data.data);
353 }) 353 })
354 .catch(error => { 354 .catch(error => {
355 console.log("err====>", error); 355 console.log("err====>", error);
356 this.showLoader = false; 356 this.showLoader = false;
357 }); 357 });
358 }, 358 },
359 getMarkReportList() { 359 getMarkReportList() {
360 this.showLoader = true; 360 this.showLoader = true;
361 this.showReport = true; 361 this.showReport = true;
362 http() 362 http()
363 .get("/getParticularMark", { 363 .get("/getParticularMark", {
364 params: { studentId: this.getReport.studentId }, 364 params: { studentId: this.getReport.studentId },
365 headers: { Authorization: "Bearer " + this.token } 365 headers: { Authorization: "Bearer " + this.token }
366 }) 366 })
367 .then(response => { 367 .then(response => {
368 let newData = response.data.data; 368 let newData = response.data.data;
369 for (var i = 0; i < newData.length; i++) { 369 for (var i = 0; i < newData.length; i++) {
370 newData[i].examination = newData[i].examId._id; 370 newData[i].examination = newData[i].examId._id;
371 } 371 }
372 this.filterData = _.groupBy(newData, ["examination"]); 372 this.filterData = _.groupBy(newData, ["examination"]);
373 for (let data in this.filterData) { 373 for (let data in this.filterData) {
374 for (let item in this.filterData[data]) { 374 for (let item in this.filterData[data]) {
375 var totalMarks = 0; 375 var totalMarks = 0;
376 for ( 376 for (
377 let i = 0; 377 let i = 0;
378 i < this.filterData[data][item].studentsMarks.length; 378 i < this.filterData[data][item].studentsMarks.length;
379 i++ 379 i++
380 ) { 380 ) {
381 totalMarks += this.filterData[data][item].studentsMarks[i] 381 totalMarks += this.filterData[data][item].studentsMarks[i]
382 .marksScored; 382 .marksScored;
383 } 383 }
384 this.filterData[data][item].totalMarks = totalMarks; 384 this.filterData[data][item].totalMarks = totalMarks;
385 } 385 }
386 } 386 }
387 this.showLoader = false; 387 this.showLoader = false;
388 }) 388 })
389 .catch(error => { 389 .catch(error => {
390 // console.log("err====>", err); 390 // console.log("err====>", err);
391 this.showLoader = false; 391 this.showLoader = false;
392 this.snackbar = true; 392 this.snackbar = true;
393 this.text = error.response.data.message; 393 this.text = error.response.data.message;
394 if (error.response.status === 401) { 394 if (error.response.status === 401) {
395 this.$router.replace({ path: "/" }); 395 this.$router.replace({ path: "/" });
396 this.$store.dispatch("setToken", null); 396 this.$store.dispatch("setToken", null);
397 this.$store.dispatch("Id", null); 397 this.$store.dispatch("Id", null);
398 } 398 }
399 }); 399 });
400 }, 400 },
401 print() { 401 print() {
402 // Pass the element id here 402 // Pass the element id here
403 this.$htmlToPaper("printMe"); 403 this.$htmlToPaper("printMe");
404 } 404 }
405 } 405 }
406 }; 406 };
407 </script> 407 </script>
408 408
409 <style scoped> 409 <style scoped>
410 table { 410 table {
411 border-collapse: collapse; 411 border-collapse: collapse;
412 border: 1px solid #e2e7eb; 412 border: 1px solid #e2e7eb;
413 } 413 }
414 414
415 th, 415 th,
416 td { 416 td {
417 border: 1px solid #e2e7eb; 417 border: 1px solid #e2e7eb;
418 padding: 10px; 418 padding: 10px;
419 text-align: center; 419 text-align: center;
420 } 420 }
421 table.feeTypeTable { 421 table.feeTypeTable {
422 table-layout: auto !important; 422 table-layout: auto !important;
423 width: 100% !important; 423 width: 100% !important;
424 } 424 }
425 .bg-sky { 425 .bg-sky {
426 background-color: #98b2cc !important; 426 background-color: #98b2cc !important;
427 } 427 }
428 .bg-sky-light { 428 .bg-sky-light {
429 background-color: #89a0b8; 429 background-color: #89a0b8;
430 } 430 }
431 .bg-purple { 431 .bg-purple {
432 background-color: #9583ac; 432 background-color: #9583ac;
433 } 433 }
434 .bg-skyDark { 434 .bg-skyDark {
435 background-color: #956785; 435 background-color: #956785;
436 } 436 }
437 @media screen and (max-width: 380px) { 437 @media screen and (max-width: 380px) {
438 .tableRsponsive { 438 .tableRsponsive {
439 display: block; 439 display: block;
440 position: relative; 440 position: relative;
441 overflow: scroll; 441 overflow: scroll;
442 } 442 }
443 } 443 }
444 </style> s 444 </style> s
src/pages/Section/section.vue
1 <template> 1 <template>
2 <v-app id="pages-dasboard"> 2 <v-app id="pages-dasboard">
3 <v-tabs grow slider-color="gray"> 3 <v-tabs grow slider-color="gray">
4 <v-tab 4 <v-tab
5 ripple 5 ripple
6 @click="activeTab('existing')" 6 @click="activeTab('existing')"
7 v-bind:class="{ active: isActive }" 7 v-bind:class="{ active: isActive }"
8 id="tab" 8 id="tab"
9 class="subheading" 9 class="subheading"
10 >Existing Section</v-tab> 10 >Existing Section</v-tab>
11 <v-tab 11 <v-tab
12 ripple 12 ripple
13 @click="activeTab('new')" 13 @click="activeTab('new')"
14 v-bind:class="{ active: newActive }" 14 v-bind:class="{ active: newActive }"
15 id="tab1" 15 id="tab1"
16 User 16 User
17 class="subheading" 17 class="subheading"
18 >Add New Section</v-tab> 18 >Add New Section</v-tab>
19 19
20 <!-- ****** EDIT SECTION ****** --> 20 <!-- ****** EDIT SECTION ****** -->
21 <v-tab-item> 21 <v-tab-item>
22 <v-snackbar 22 <v-snackbar
23 :timeout="timeout" 23 :timeout="timeout"
24 :top="y === 'top'" 24 :top="y === 'top'"
25 :right="x === 'right'" 25 :right="x === 'right'"
26 :vertical="mode === 'vertical'" 26 :vertical="mode === 'vertical'"
27 v-model="snackbar" 27 v-model="snackbar"
28 color="success" 28 color="success"
29 >{{ text }}</v-snackbar> 29 >{{ text }}</v-snackbar>
30 <v-dialog v-model="dialog" max-width="600px"> 30 <v-dialog v-model="dialog" max-width="600px">
31 <v-toolbar color="grey lighten-2"> 31 <v-toolbar color="grey lighten-2">
32 <v-spacer></v-spacer> 32 <v-spacer></v-spacer>
33 <v-toolbar-title> 33 <v-toolbar-title>
34 <h3>Edit Section</h3> 34 <h3>Edit Section</h3>
35 </v-toolbar-title> 35 </v-toolbar-title>
36 <v-spacer></v-spacer> 36 <v-spacer></v-spacer>
37 </v-toolbar> 37 </v-toolbar>
38 <v-card> 38 <v-card>
39 <v-container> 39 <v-container>
40 <v-layout wrap justify-center> 40 <v-layout wrap justify-center>
41 <v-flex xs12 sm9> 41 <v-flex xs12 sm9>
42 <v-form> 42 <v-form>
43 <v-layout> 43 <v-layout>
44 <v-flex xs5 sm4 class="pt-4 subheading"> 44 <v-flex xs5 sm4 class="pt-4 subheading">
45 <label class="pl-3">Class Name:</label> 45 <label class="pl-3">Class Name:</label>
46 <!-- <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label> --> 46 <!-- <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label> -->
47 </v-flex> 47 </v-flex>
48 <v-flex xs7 sm8> 48 <v-flex xs7 sm8>
49 <v-autocomplete 49 <v-autocomplete
50 :items="addclass" 50 :items="addclass"
51 :label="editedItem.classData.classNum" 51 :label="editedItem.classData.classNum"
52 v-model="editItem.classId" 52 v-model="editItem.classId"
53 item-text="classNum" 53 item-text="classNum"
54 item-value="_id" 54 item-value="_id"
55 ></v-autocomplete> 55 ></v-autocomplete>
56 </v-flex> 56 </v-flex>
57 </v-layout> 57 </v-layout>
58 <v-layout> 58 <v-layout>
59 <v-flex xs5 sm4 class="pt-4 subheading"> 59 <v-flex xs5 sm4 class="pt-4 subheading">
60 <label>Section Name:</label> 60 <label>Section Name:</label>
61 </v-flex> 61 </v-flex>
62 <v-flex xs7 sm8> 62 <v-flex xs7 sm8>
63 <v-autocomplete 63 <v-autocomplete
64 v-model="editedItem.name" 64 v-model="editedItem.name"
65 placeholder="fill your Section Name" 65 placeholder="fill your Section Name"
66 :items="SectionName" 66 :items="SectionName"
67 ></v-autocomplete> 67 ></v-autocomplete>
68 </v-flex> 68 </v-flex>
69 </v-layout> 69 </v-layout>
70 <v-layout> 70 <v-layout>
71 <v-flex xs5 sm4 class="pt-4 subheading"> 71 <v-flex xs5 sm4 class="pt-4 subheading">
72 <label>Class Incharge:</label> 72 <label>Class Incharge:</label>
73 </v-flex> 73 </v-flex>
74 <v-flex xs7 sm8> 74 <v-flex xs7 sm8>
75 <v-select 75 <v-select
76 :items="teacherList" 76 :items="teacherList"
77 v-model="editedItem.classInchargeId" 77 v-model="editedItem.classInchargeId"
78 :label="editedItem.teacherData[0].name" 78 :label="editedItem.teacherData[0].name"
79 item-text="name" 79 item-text="name"
80 item-value="_id" 80 item-value="_id"
81 ></v-select> 81 ></v-select>
82 </v-flex> 82 </v-flex>
83 </v-layout> 83 </v-layout>
84 <v-card-actions> 84 <v-card-actions>
85 <v-btn round dark @click.native="close">Cancel</v-btn> 85 <v-btn round dark @click.native="close">Cancel</v-btn>
86 <v-spacer></v-spacer> 86 <v-spacer></v-spacer>
87 <v-btn round dark @click="save">Save</v-btn> 87 <v-btn round dark @click="save">Save</v-btn>
88 </v-card-actions> 88 </v-card-actions>
89 </v-form> 89 </v-form>
90 </v-flex> 90 </v-flex>
91 </v-layout> 91 </v-layout>
92 </v-container> 92 </v-container>
93 </v-card> 93 </v-card>
94 </v-dialog> 94 </v-dialog>
95 95
96 <!-- ****** PROFILE VIEW SECTION DATA ****** --> 96 <!-- ****** PROFILE VIEW SECTION DATA ****** -->
97 97
98 <v-dialog v-model="dialog1" max-width="600px"> 98 <v-dialog v-model="dialog1" max-width="600px">
99 <v-toolbar color="grey lighten-2"> 99 <v-toolbar color="grey lighten-2">
100 <v-spacer></v-spacer> 100 <v-spacer></v-spacer>
101 <v-toolbar-title> 101 <v-toolbar-title>
102 <h3>Section</h3> 102 <h3>Section</h3>
103 </v-toolbar-title> 103 </v-toolbar-title>
104 <v-spacer></v-spacer> 104 <v-spacer></v-spacer>
105 <v-icon @click="close1">close</v-icon> 105 <v-icon @click="close1">close</v-icon>
106 </v-toolbar> 106 </v-toolbar>
107 <v-card> 107 <v-card>
108 <v-flex align-center justify-center layout text-xs-center>
109 <v-avatar size="50px" style="position:absolute; top:20px;">
110 <img src="/static/icon/user.png" />
111 </v-avatar>
112 </v-flex>
113 <v-card-text> 108 <v-card-text>
114 <v-container grid-list-md> 109 <v-container grid-list-md>
115 <v-layout wrap> 110 <v-layout wrap>
116 <v-flex> 111 <v-flex>
117 <br />
118 <br />
119 <v-layout> 112 <v-layout>
120 <v-flex xs7 sm6> 113 <v-flex xs7 sm6>
121 <h5 class="right my-1 hidden-xs-only hidden-sm-only"> 114 <h5 class="right my-1 hidden-xs-only hidden-sm-only">
122 <b>Class Name:</b> 115 <b>Class Name:</b>
123 </h5> 116 </h5>
124 <h5 class="right my-1 hidden-lg-only hidden-md-only hidden-xl-only"> 117 <h5 class="right my-1 hidden-lg-only hidden-md-only hidden-xl-only">
125 <b>Class:</b> 118 <b>Class:</b>
126 </h5> 119 </h5>
127 </v-flex> 120 </v-flex>
128 <v-flex sm6 xs5> 121 <v-flex sm6 xs5>
129 <h5 class="my-1">{{ editedItem.classData.classNum }}</h5> 122 <h5 class="my-1">{{ editedItem.classData.classNum }}</h5>
130 </v-flex> 123 </v-flex>
131 </v-layout> 124 </v-layout>
132 <v-layout> 125 <v-layout>
133 <v-flex xs7 sm6> 126 <v-flex xs7 sm6>
134 <h5 class="right my-1"> 127 <h5 class="right my-1">
135 <b>Section Name:</b> 128 <b>Section Name:</b>
136 </h5> 129 </h5>
137 </v-flex> 130 </v-flex>
138 <v-flex sm6 xs5> 131 <v-flex sm6 xs5>
139 <h5 class="my-1">{{ editedItem.name }}</h5> 132 <h5 class="my-1">{{ editedItem.name }}</h5>
140 </v-flex> 133 </v-flex>
141 </v-layout> 134 </v-layout>
142 <v-layout> 135 <v-layout>
143 <v-flex xs7 sm6> 136 <v-flex xs7 sm6>
144 <h5 class="right my-1"> 137 <h5 class="right my-1">
145 <b>Class Incharge:</b> 138 <b>Class Incharge:</b>
146 </h5> 139 </h5>
147 </v-flex> 140 </v-flex>
148 <v-flex sm6 xs5> 141 <v-flex sm6 xs5>
149 <h5 class="my-1">{{ editedItem.teacherData[0].name }}</h5> 142 <h5 class="my-1">{{ editedItem.teacherData[0].name }}</h5>
150 </v-flex> 143 </v-flex>
151 </v-layout> 144 </v-layout>
152 <v-layout> 145 <v-layout>
153 <v-flex xs7 sm6> 146 <v-flex xs7 sm6>
154 <h5 class="right my-1"> 147 <h5 class="right my-1">
155 <b>Session:</b> 148 <b>Session:</b>
156 </h5> 149 </h5>
157 </v-flex> 150 </v-flex>
158 <v-flex sm6 xs5> 151 <v-flex sm6 xs5>
159 <h5 class="my-1">{{ editedItem.session }}</h5> 152 <h5 class="my-1">{{ editedItem.session }}</h5>
160 </v-flex> 153 </v-flex>
161 </v-layout> 154 </v-layout>
162 </v-flex> 155 </v-flex>
163 </v-layout> 156 </v-layout>
164 </v-container> 157 </v-container>
165 </v-card-text> 158 </v-card-text>
166 </v-card> 159 </v-card>
167 </v-dialog> 160 </v-dialog>
168 161
169 <v-snackbar 162 <v-snackbar
170 :timeout="timeout" 163 :timeout="timeout"
171 :top="y === 'top'" 164 :top="y === 'top'"
172 :right="x === 'right'" 165 :right="x === 'right'"
173 :vertical="mode === 'vertical'" 166 :vertical="mode === 'vertical'"
174 v-model="snackbar" 167 v-model="snackbar"
175 color="success" 168 color="success"
176 >{{ text }}</v-snackbar> 169 >{{ text }}</v-snackbar>
177 170
178 <!-- ****** EXISTING-USERS StudentS Table ****** --> 171 <!-- ****** EXISTING-USERS StudentS Table ****** -->
179 172
180 <v-data-table 173 <v-data-table
181 :headers="headers" 174 :headers="headers"
182 :items="desserts" 175 :items="desserts"
183 :pagination.sync="pagination" 176 :pagination.sync="pagination"
184 :search="search" 177 :search="search"
185 > 178 >
186 <template slot="items" slot-scope="props"> 179 <template slot="items" slot-scope="props">
187 <td id="td" class="text-xs-center">{{ props.index + 1}}</td> 180 <td id="td" class="text-xs-center">{{ props.index + 1 }}</td>
188 <td id="td" class="text-xs-center">{{ props.item.classData.classNum}}</td> 181 <td id="td" class="text-xs-center">{{ props.item.classData.classNum }}</td>
189 <td id="td" class="text-xs-center">{{ props.item.name}}</td> 182 <td id="td" class="text-xs-center">{{ props.item.name }}</td>
190 <td id="td" class="text-xs-center">{{ props.item.session}}</td> 183 <td id="td" class="text-xs-center">{{ props.item.session }}</td>
191 184
192 <td class="text-xs-center"> 185 <td class="text-xs-center">
193 <span> 186 <span>
194 <v-tooltip top> 187 <v-tooltip top>
195 <img 188 <img
196 slot="activator" 189 slot="activator"
197 style="cursor:pointer; width:25px; height:18px; " 190 style="cursor:pointer; width:25px; height:18px; "
198 class="mr5" 191 class="mr5"
199 @click="profile(props.item)" 192 @click="profile(props.item)"
200 src="/static/icon/eye1.png" 193 src="/static/icon/eye1.png"
201 /> 194 />
202 <span>View</span> 195 <span>View</span>
203 </v-tooltip> 196 </v-tooltip>
204 <v-tooltip top> 197 <v-tooltip top>
205 <img 198 <img
206 slot="activator" 199 slot="activator"
207 style="cursor:pointer; width:20px; height:18px; " 200 style="cursor:pointer; width:20px; height:18px; "
208 class="mr5" 201 class="mr5"
209 @click="editItem(props.item)" 202 @click="editItem(props.item)"
210 src="/static/icon/edit1.png" 203 src="/static/icon/edit1.png"
211 /> 204 />
212 <span>Edit</span> 205 <span>Edit</span>
213 </v-tooltip> 206 </v-tooltip>
214 <v-tooltip top> 207 <v-tooltip top>
215 <img 208 <img
216 slot="activator" 209 slot="activator"
217 style="cursor:pointer; width:20px; height:20px; " 210 style="cursor:pointer; width:20px; height:20px; "
218 class="mr5" 211 class="mr5"
219 @click="deleteItem(props.item)" 212 @click="deleteItem(props.item)"
220 src="/static/icon/delete1.png" 213 src="/static/icon/delete1.png"
221 /> 214 />
222 <span>Delete</span> 215 <span>Delete</span>
223 </v-tooltip> 216 </v-tooltip>
224 </span> 217 </span>
225 </td> 218 </td>
226 </template> 219 </template>
227 <v-alert 220 <v-alert
228 slot="no-results" 221 slot="no-results"
229 :value="true" 222 :value="true"
230 color="error" 223 color="error"
231 icon="warning" 224 icon="warning"
232 >Your search for "{{ search }}" found no results.</v-alert> 225 >Your search for "{{ search }}" found no results.</v-alert>
233 </v-data-table> 226 </v-data-table>
234 </v-tab-item> 227 </v-tab-item>
235 228
236 <!-- ****** ADD multiple Students ****** --> 229 <!-- ****** ADD multiple Students ****** -->
237 230
238 <v-tab-item> 231 <v-tab-item>
239 <v-container> 232 <v-container>
240 <v-snackbar 233 <v-snackbar
241 :timeout="timeout" 234 :timeout="timeout"
242 :top="y === 'top'" 235 :top="y === 'top'"
243 :right="x === 'right'" 236 :right="x === 'right'"
244 :vertical="mode === 'vertical'" 237 :vertical="mode === 'vertical'"
245 v-model="snackbar" 238 v-model="snackbar"
246 color="success" 239 color="success"
247 >{{ text }}</v-snackbar> 240 >{{ text }}</v-snackbar>
248 <v-flex xs12 sm8 offset-sm2 class="top"> 241 <v-flex xs12 sm8 offset-sm2 class="top">
249 <v-card flat> 242 <v-card flat>
250 <v-container fluid fill-height> 243 <v-container fluid fill-height>
251 <v-layout align-center> 244 <v-layout align-center>
252 <v-flex xs12 class="mt-4"> 245 <v-flex xs12 class="mt-4">
253 <v-form ref="form" v-model="valid" lazy-validation> 246 <v-form ref="form" v-model="valid" lazy-validation>
254 <v-layout> 247 <v-layout>
255 <v-flex xs4 class="pt-4 subheading"> 248 <v-flex xs4 class="pt-4 subheading">
256 <label class="right">Section Name:</label> 249 <label class="right">Section Name:</label>
257 </v-flex> 250 </v-flex>
258 <v-flex xs6 class="ml-3"> 251 <v-flex xs6 class="ml-3">
259 <v-autocomplete 252 <v-autocomplete
260 v-model="sectionData.name" 253 v-model="sectionData.name"
261 placeholder="fill your Section Name" 254 placeholder="fill your Section Name"
262 :items="SectionName" 255 :items="SectionName"
263 :rules="nameRules" 256 :rules="nameRules"
264 required 257 required
265 ></v-autocomplete> 258 ></v-autocomplete>
266 </v-flex> 259 </v-flex>
267 </v-layout> 260 </v-layout>
268 <v-layout> 261 <v-layout>
269 <v-flex xs4 class="pt-4 subheading"> 262 <v-flex xs4 class="pt-4 subheading">
270 <label class="right">Select Class:</label> 263 <label class="right">Select Class:</label>
271 </v-flex> 264 </v-flex>
272 <v-flex xs6 class="ml-3"> 265 <v-flex xs6 class="ml-3">
273 <v-select 266 <v-select
274 :items="addclass" 267 :items="addclass"
275 label="Select Class" 268 label="Select Class"
276 v-model="sectionData.classNum" 269 v-model="sectionData.classNum"
277 item-text="classNum" 270 item-text="classNum"
278 item-value="_id" 271 item-value="_id"
279 name="Select Class" 272 name="Select Class"
280 :rules="classRules" 273 :rules="classRules"
281 required 274 required
282 ></v-select> 275 ></v-select>
283 </v-flex> 276 </v-flex>
284 </v-layout> 277 </v-layout>
285 <v-layout> 278 <v-layout>
286 <v-flex xs4 class="pt-4 subheading"> 279 <v-flex xs4 class="pt-4 subheading">
287 <label class="right">Select Incharge:</label> 280 <label class="right">Select Incharge:</label>
288 </v-flex> 281 </v-flex>
289 <v-flex xs6 class="ml-3"> 282 <v-flex xs6 class="ml-3">
290 <v-select 283 <v-select
291 :items="teacherList" 284 :items="teacherList"
292 label="Select Incharge" 285 label="Select Incharge"
293 v-model="sectionData.sectionId" 286 v-model="sectionData.sectionId"
294 item-text="name" 287 item-text="name"
295 item-value="_id" 288 item-value="_id"
296 name="Select Class" 289 name="Select Class"
297 :rules="inchargeRules" 290 :rules="inchargeRules"
298 required 291 required
299 ></v-select> 292 ></v-select>
300 </v-flex> 293 </v-flex>
301 </v-layout> 294 </v-layout>
302 <v-layout> 295 <v-layout>
303 <v-flex xs4 class="pt-4 subheading"> 296 <v-flex xs4 class="pt-4 subheading">
304 <label class="right">Session:</label> 297 <label class="right">Session:</label>
305 </v-flex> 298 </v-flex>
306 <v-flex xs6 class="ml-3"> 299 <v-flex xs6 class="ml-3">
307 <v-text-field 300 <v-text-field
308 v-model="sectionData.session" 301 v-model="sectionData.session"
309 placeholder="fill your Session" 302 placeholder="fill your Session"
310 name="name" 303 name="name"
311 type="text" 304 type="text"
312 :rules="sessionRules" 305 :rules="sessionRules"
313 required 306 required
314 ></v-text-field> 307 ></v-text-field>
315 </v-flex> 308 </v-flex>
316 </v-layout> 309 </v-layout>
317 <v-layout> 310 <v-layout>
318 <v-flex xs12 sm9 offset-sm2> 311 <v-flex xs12 sm9 offset-sm2>
319 <v-card-actions> 312 <v-card-actions>
320 <v-btn @click="clear" round dark>clear</v-btn> 313 <v-btn @click="clear" round dark>clear</v-btn>
321 <v-spacer></v-spacer> 314 <v-spacer></v-spacer>
322 <v-btn @click="submit" round dark :loading="loading">Add</v-btn> 315 <v-btn @click="submit" round dark :loading="loading">Add</v-btn>
323 </v-card-actions> 316 </v-card-actions>
324 </v-flex> 317 </v-flex>
325 </v-layout> 318 </v-layout>
326 </v-form> 319 </v-form>
327 </v-flex> 320 </v-flex>
328 </v-layout> 321 </v-layout>
329 </v-container> 322 </v-container>
330 </v-card> 323 </v-card>
331 </v-flex> 324 </v-flex>
332 </v-container> 325 </v-container>
333 </v-tab-item> 326 </v-tab-item>
334 </v-tabs> 327 </v-tabs>
335 <div class="loader" v-if="showLoader"> 328 <div class="loader" v-if="showLoader">
336 <v-progress-circular indeterminate color="white"></v-progress-circular> 329 <v-progress-circular indeterminate color="white"></v-progress-circular>
337 </div> 330 </div>
338 </v-app> 331 </v-app>
339 </template> 332 </template>
340 333
341 <script> 334 <script>
342 import http from "@/Services/http.js"; 335 import http from "@/Services/http.js";
343 import Util from "@/util"; 336 // import { apiCollection } from "@/schoolApi/apiCollection";
337 // const getSectionData = apiCollection.get("posts");
344 338
345 export default { 339 export default {
346 data: () => ({ 340 data: () => ({
347 snackbar: false, 341 snackbar: false,
348 y: "top", 342 y: "top",
349 x: "right", 343 x: "right",
350 mode: "", 344 mode: "",
351 timeout: 3000, 345 timeout: 3000,
352 text: "", 346 text: "",
353 showLoader: false, 347 showLoader: false,
354 loading: false, 348 loading: false,
355 date: null, 349 date: null,
356 search: "", 350 search: "",
357 dialog: false, 351 dialog: false,
358 dialog1: false, 352 dialog1: false,
359 valid: true, 353 valid: true,
360 validEdit: true, 354 validEdit: true,
361 isActive: true, 355 isActive: true,
362 newActive: false, 356 newActive: false,
363 details: [], 357 details: [],
364 AddUsercredentials: {}, 358 AddUsercredentials: {},
365 pagination: { 359 pagination: {
366 rowsPerPage: 15 360 rowsPerPage: 15
367 }, 361 },
368 nameRules: [v => !!v || " Section Name is required"], 362 nameRules: [v => !!v || " Section Name is required"],
369 classRules: [v => !!v || " Class Name is required"], 363 classRules: [v => !!v || " Class Name is required"],
370 sessionRules: [v => !!v || " Session is required"], 364 sessionRules: [v => !!v || " Session is required"],
371 inchargeRules: [v => !!v || " Incharge Name is required"], 365 inchargeRules: [v => !!v || " Incharge Name is required"],
372 SectionName: ["A", "B", "C", "D", "E", "F"], 366 SectionName: ["A", "B", "C", "D", "E", "F"],
373 headers: [ 367 headers: [
374 { 368 {
375 text: "No", 369 text: "No",
376 align: "center", 370 align: "center",
377 sortable: false, 371 sortable: false,
378 value: "No" 372 value: "No"
379 }, 373 },
380 { 374 {
381 text: "Class Name", 375 text: "Class Name",
382 value: "classData.classNum", 376 value: "classData.classNum",
383 sortable: false, 377 sortable: false,
384 align: "center" 378 align: "center"
385 }, 379 },
386 { text: "Section Name", value: "name", sortable: false, align: "center" }, 380 { text: "Section Name", value: "name", sortable: false, align: "center" },
387 { text: "Session", value: "session", sortable: false, align: "center" }, 381 { text: "Session", value: "session", sortable: false, align: "center" },
388 { text: "Action", value: "", sortable: false, align: "center" } 382 { text: "Action", value: "", sortable: false, align: "center" }
389 ], 383 ],
390 desserts: [], 384 desserts: [],
391 addclass: [], 385 addclass: [],
392 teacherList: [], 386 teacherList: [],
393 select: "", 387 select: "",
394 selectId: "", 388 selectId: "",
395 token: "", 389 token: "",
396 editedIndex: -1, 390 editedIndex: -1,
397 editedItem: { 391 editedItem: {
398 classData: { 392 classData: {
399 classNum: "" 393 classNum: ""
400 }, 394 },
401 classId: "", 395 classId: "",
402 classInchargeId: "", 396 classInchargeId: "",
403 teacherData: [ 397 teacherData: [
404 { 398 {
405 name: "" 399 name: ""
406 } 400 }
407 ], 401 ],
408 name: "", 402 name: "",
409 session: new Date().getFullYear() 403 session: new Date().getFullYear()
410 }, 404 },
411 sectionData: { 405 sectionData: {
412 session: new Date().getFullYear() 406 session: new Date().getFullYear()
413 } 407 }
414 }), 408 }),
415 methods: { 409 methods: {
416 getSectionList() { 410 async getSectionList() {
411 // const { data } = await getSectionData.get();
417 this.showLoader = true; 412 this.showLoader = true;
418 http() 413 await http()
419 .get("/getAllSections", { 414 .get("/getAllSections", {
420 headers: { Authorization: "Bearer " + this.token } 415 headers: { Authorization: "Bearer " + this.token }
421 }) 416 })
422 .then(response => { 417 .then(response => {
423 this.desserts = response.data.data; 418 this.desserts = response.data.data;
424 this.showLoader = false; 419 this.showLoader = false;
425 // console.log("getAllSections=====>",response.data.data) 420 // console.log("getAllSections=====>",response.data.data)
426 }) 421 })
427 .catch(error => { 422 .catch(error => {
428 this.showLoader = false; 423 this.showLoader = false;
429 if (error.response.status === 401) { 424 if (error.response.status === 401) {
430 this.$router.replace({ path: "/" }); 425 this.$router.replace({ path: "/" });
431 this.$store.dispatch("setToken", null); 426 this.$store.dispatch("setToken", null);
432 this.$store.dispatch("Id", null); 427 this.$store.dispatch("Id", null);
433 } 428 }
434 }); 429 });
435 }, 430 },
436 editItem(item) { 431 editItem(item) {
437 this.editedIndex = this.desserts.indexOf(item); 432 this.editedIndex = this.desserts.indexOf(item);
438 this.editedItem = Object.assign({}, item); 433 this.editedItem = Object.assign({}, item);
439 console.log(this.editedItem); 434 console.log(this.editedItem);
440 this.dialog = true; 435 this.dialog = true;
441 }, 436 },
442 profile(item) { 437 profile(item) {
443 this.editedIndex = this.desserts.indexOf(item); 438 this.editedIndex = this.desserts.indexOf(item);
444 this.editedItem = Object.assign({}, item); 439 this.editedItem = Object.assign({}, item);
445 this.dialog1 = true; 440 this.dialog1 = true;
446 }, 441 },
447 deleteItem(item) { 442 deleteItem(item) {
448 let deleteStudent = { 443 let deleteStudent = {
449 sectionId: item._id 444 sectionId: item._id
450 }; 445 };
451 http() 446 http()
452 .delete( 447 .delete(
453 "/deleteSection", 448 "/deleteSection",
454 confirm("Are you sure you want to delete this?") && { 449 confirm("Are you sure you want to delete this?") && {
455 params: deleteStudent 450 params: deleteStudent
456 } 451 }
457 ) 452 )
458 .then(response => { 453 .then(response => {
459 if ((this.snackbar = true)) { 454 if ((this.snackbar = true)) {
460 this.text = "Successfully delete Existing Section"; 455 this.text = "Successfully delete Existing Section";
461 } 456 }
462 this.getSectionList(); 457 this.getSectionList();
463 }) 458 })
464 .catch(error => { 459 .catch(error => {
465 // console.log(error); 460 // console.log(error);
466 }); 461 });
467 }, 462 },
468 activeTab(type) { 463 activeTab(type) {
469 switch (type) { 464 switch (type) {
470 case "existing": 465 case "existing":
471 this.newActive = false; 466 this.newActive = false;
472 this.isActive = true; 467 this.isActive = true;
473 break; 468 break;
474 469
475 default: 470 default:
476 this.newActive = true; 471 this.newActive = true;
477 this.isActive = false; 472 this.isActive = false;
478 break; 473 break;
479 } 474 }
480 }, 475 },
481 close() { 476 close() {
482 this.dialog = false; 477 this.dialog = false;
483 setTimeout(() => { 478 setTimeout(() => {
484 this.editedItem = Object.assign({}, this.defaultItem); 479 this.editedItem = Object.assign({}, this.defaultItem);
485 this.editedIndex = -1; 480 this.editedIndex = -1;
486 }, 300); 481 }, 300);
487 }, 482 },
488 close1() { 483 close1() {
489 this.dialog1 = false; 484 this.dialog1 = false;
490 }, 485 },
491 close2() { 486 close2() {
492 this.dialog2 = false; 487 this.dialog2 = false;
493 }, 488 },
494 submit() { 489 submit() {
495 if (this.$refs.form.validate()) { 490 if (this.$refs.form.validate()) {
496 let addSection = { 491 let addSection = {
497 name: this.sectionData.name, 492 name: this.sectionData.name,
498 classId: this.sectionData.classNum, 493 classId: this.sectionData.classNum,
499 session: this.sectionData.session, 494 session: this.sectionData.session,
500 classInchargeId: this.sectionData._id 495 classInchargeId: this.sectionData._id
501 }; 496 };
502 this.loading = true; 497 this.loading = true;
503 http() 498 http()
504 .post("/createSection", addSection) 499 .post("/createSection", addSection)
505 .then(response => { 500 .then(response => {
506 console.log(response); 501 console.log(response);
507 this.getSectionList(); 502 this.getSectionList();
508 if ((this.snackbar = true)) { 503 if ((this.snackbar = true)) {
509 this.text = "New Section added successfully"; 504 this.text = "New Section added successfully";
510 } 505 }
511 506
512 this.clear(); 507 this.clear();
513 this.loading = false; 508 this.loading = false;
514 }) 509 })
515 .catch(error => { 510 .catch(error => {
516 // console.log(error); 511 // console.log(error);
517 if ((this.snackbar = true)) { 512 if ((this.snackbar = true)) {
518 this.text = error.response.data.message; 513 this.text = error.response.data.message;
519 } 514 }
520 this.loading = false; 515 this.loading = false;
521 }); 516 });
522 } 517 }
523 }, 518 },
524 clear() { 519 clear() {
525 this.$refs.form.reset(); 520 this.$refs.form.reset();
526 }, 521 },
527 save() { 522 save() {
528 this.editedItem.sectionId = this.editedItem._id; 523 this.editedItem.sectionId = this.editedItem._id;
529 http() 524 http()
530 .put("/updateSection", this.editedItem) 525 .put("/updateSection", this.editedItem)
531 .then(response => { 526 .then(response => {
532 // console.log("editStudent",editStudent); 527 // console.log("editStudent",editStudent);
533 if ((this.snackbar = true)) { 528 if ((this.snackbar = true)) {
534 this.text = "Successfully Edit Existing Section"; 529 this.text = "Successfully Edit Existing Section";
535 } 530 }
536 this.getSectionList(); 531 this.getSectionList();
537 this.close(); 532 this.close();
538 }) 533 })
539 .catch(error => { 534 .catch(error => {
540 this.text = error.response.data.message; 535 this.text = error.response.data.message;
541 // console.log(error); 536 // console.log(error);
542 }); 537 });
543 }, 538 },
544 getAllTeacher() { 539 getAllTeacher() {
545 http() 540 http()
546 .get("/getTeachersList", { 541 .get("/getTeachersList", {
547 headers: { Authorization: "Bearer " + this.token } 542 headers: { Authorization: "Bearer " + this.token }
548 }) 543 })
549 .then(response => { 544 .then(response => {
550 this.teacherList = response.data.data; 545 this.teacherList = response.data.data;
551 this.showLoader = false; 546 this.showLoader = false;
552 }) 547 })
553 .catch(err => { 548 .catch(err => {
554 // console.log("err====>", err); 549 // console.log("err====>", err);
555 this.showLoader = false; 550 this.showLoader = false;
556 }); 551 });
557 }, 552 },
558 getAllClasses() { 553 getAllClasses() {
559 http() 554 http()
560 .get("/getClassesList", { 555 .get("/getClassesList", {
561 headers: { Authorization: "Bearer " + this.token } 556 headers: { Authorization: "Bearer " + this.token }
562 }) 557 })
563 .then(response => { 558 .then(response => {
564 this.addclass = response.data.data; 559 this.addclass = response.data.data;
565 }) 560 })
566 .catch(err => { 561 .catch(err => {
567 // console.log("err====>", err); 562 // console.log("err====>", err);
568 // this.$router.replace({ path: "/" }); 563 // this.$router.replace({ path: "/" });
569 }); 564 });
570 } 565 }
571 }, 566 },
572 mounted() { 567 mounted() {
573 this.token = this.$store.state.token; 568 this.token = this.$store.state.token;
574 this.getSectionList(); 569 this.getSectionList();
575 this.getAllClasses(); 570 this.getAllClasses();
576 this.getAllTeacher(); 571 this.getAllTeacher();
577 }, 572 },
578 created() { 573 created() {
579 this.$root.$on("app:search", search => { 574 this.$root.$on("app:search", search => {
580 this.search = search; 575 this.search = search;
581 }); 576 });
582 }, 577 },
583 beforeDestroy() { 578 beforeDestroy() {
584 // dont forget to remove the listener 579 // dont forget to remove the listener
585 this.$root.$off("app:search"); 580 this.$root.$off("app:search");
586 } 581 }
587 }; 582 };
588 </script> 583 </script>
589 584
590 <style scoped> 585 <style scoped>
591 .active { 586 .active {
592 background-color: gray; 587 background-color: gray;
593 color: white !important; 588 color: white !important;
594 } 589 }
595 .activebtn { 590 .activebtn {
596 color: black !important; 591 color: black !important;
src/pages/Students/students.vue
1 <template> 1 <template>
2 <div> 2 <div>
3 <v-tabs grow slider-color="gray"> 3 <v-tabs grow slider-color="gray">
4 <v-tab 4 <v-tab
5 ripple 5 ripple
6 @click="activeTab('existing')" 6 @click="activeTab('existing')"
7 v-bind:class="{ active: isActive }" 7 v-bind:class="{ active: isActive }"
8 id="tab" 8 id="tab"
9 class="subheading" 9 class="subheading"
10 >Existing Students</v-tab> 10 >Existing Students</v-tab>
11 <v-tab 11 <v-tab
12 ripple 12 ripple
13 @click="activeTab('new')" 13 @click="activeTab('new')"
14 v-bind:class="{ active: newActive }" 14 v-bind:class="{ active: newActive }"
15 id="tab1" 15 id="tab1"
16 User 16 User
17 class="subheading" 17 class="subheading"
18 >Add New Students</v-tab> 18 >Add New Students</v-tab>
19 19
20 <!-- ****** EDITS STUDENTS DETAILS ****** --> 20 <!-- ****** EDITS STUDENTS DETAILS ****** -->
21 21
22 <v-tab-item> 22 <v-tab-item>
23 <v-snackbar 23 <v-snackbar
24 :timeout="timeout" 24 :timeout="timeout"
25 :top="y === 'top'" 25 :top="y === 'top'"
26 :right="x === 'right'" 26 :right="x === 'right'"
27 :vertical="mode === 'vertical'" 27 :vertical="mode === 'vertical'"
28 v-model="snackbar" 28 v-model="snackbar"
29 color="success" 29 color="success"
30 >{{ text }}</v-snackbar> 30 >{{ text }}</v-snackbar>
31 <v-dialog v-model="dialog" max-width="1500px" scrollable> 31 <v-dialog v-model="dialog" max-width="1500px" scrollable>
32 <v-card flat> 32 <v-card flat>
33 <v-toolbar color="grey lighten-2" flat> 33 <v-toolbar color="grey lighten-2" flat>
34 <v-spacer></v-spacer> 34 <v-spacer></v-spacer>
35 <v-toolbar-title> 35 <v-toolbar-title>
36 <h3>Edit Student Profile</h3> 36 <h3>Edit Student Profile</h3>
37 </v-toolbar-title> 37 </v-toolbar-title>
38 <v-spacer></v-spacer> 38 <v-spacer></v-spacer>
39 </v-toolbar> 39 </v-toolbar>
40 <v-card-text style="height: 586px;"> 40 <v-card-text style="height: 586px;">
41 <v-form ref="form"> 41 <v-form ref="form">
42 <v-container fluid> 42 <v-container fluid>
43 <v-layout> 43 <v-layout>
44 <v-flex 44 <v-flex
45 xs12 45 xs12
46 class="text-xs-center text-sm-center text-md-center text-lg-center mr-4" 46 class="text-xs-center text-sm-center text-md-center text-lg-center mr-4"
47 > 47 >
48 <v-avatar size="160px"> 48 <v-avatar size="160px">
49 <img 49 <img
50 src="/static/icon/user.png" 50 src="/static/icon/user.png"
51 v-if="!editedItem.profilePicUrl && !imageUrl" 51 v-if="!editedItem.profilePicUrl && !imageUrl"
52 /> 52 />
53 <img 53 <img
54 :src="editedItem.profilePicUrl" 54 :src="editedItem.profilePicUrl"
55 v-else-if="editedItem.profilePicUrl && !imageUrl" 55 v-else-if="editedItem.profilePicUrl && !imageUrl"
56 /> 56 />
57 <img 57 <img
58 v-if="imageUrl" 58 v-if="imageUrl"
59 :src="imageUrl" 59 :src="imageUrl"
60 height="150" 60 height="150"
61 style="border-radius:50%; width:200px" 61 style="border-radius:50%; width:200px"
62 /> 62 />
63 </v-avatar> 63 </v-avatar>
64 <input 64 <input
65 type="file" 65 type="file"
66 style="display: none" 66 style="display: none"
67 ref="image" 67 ref="image"
68 accept="image/*" 68 accept="image/*"
69 @change="onFilePicked" 69 @change="onFilePicked"
70 /> 70 />
71 </v-flex> 71 </v-flex>
72 </v-layout> 72 </v-layout>
73 <v-layout> 73 <v-layout>
74 <v-flex xs12 sm4> 74 <v-flex xs12 sm4>
75 <v-layout> 75 <v-layout>
76 <v-flex xs4 class="pt-4 subheading"> 76 <v-flex xs4 class="pt-4 subheading">
77 <label class="right hidden-xs-only hidden-sm-only">Select Class:</label> 77 <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
78 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label> 78 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label>
79 </v-flex> 79 </v-flex>
80 <v-flex xs8 class="ml-3"> 80 <v-flex xs8 class="ml-3">
81 <v-select 81 <v-select
82 :items="addclass" 82 :items="addclass"
83 label="Select Class" 83 label="Select Class"
84 v-model="editedItem.select" 84 v-model="editedItem.select"
85 item-text="classNum" 85 item-text="classNum"
86 item-value="_id" 86 item-value="_id"
87 name="Select Class" 87 name="Select Class"
88 @change="getSections(editedItem.select)" 88 @change="getSections(editedItem.select)"
89 required 89 required
90 ></v-select> 90 ></v-select>
91 </v-flex> 91 </v-flex>
92 </v-layout> 92 </v-layout>
93 </v-flex> 93 </v-flex>
94 <v-flex xs12 sm4> 94 <v-flex xs12 sm4>
95 <v-layout> 95 <v-layout>
96 <v-flex xs4 class="pt-4 subheading"> 96 <v-flex xs4 class="pt-4 subheading">
97 <label class="right hidden-xs-only hidden-sm-only">Select Section:</label> 97 <label class="right hidden-xs-only hidden-sm-only">Select Section:</label>
98 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Section:</label> 98 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Section:</label>
99 </v-flex> 99 </v-flex>
100 <v-flex xs8 class="ml-3"> 100 <v-flex xs8 class="ml-3">
101 <v-select 101 <v-select
102 :items="addSection" 102 :items="addSection"
103 label="Select Section" 103 label="Select Section"
104 v-model="editedItem.selectSection" 104 v-model="editedItem.selectSection"
105 item-text="name" 105 item-text="name"
106 item-value="_id" 106 item-value="_id"
107 name="Select Section" 107 name="Select Section"
108 required 108 required
109 ></v-select> 109 ></v-select>
110 </v-flex> 110 </v-flex>
111 </v-layout> 111 </v-layout>
112 </v-flex> 112 </v-flex>
113 <v-flex xs12 sm4> 113 <v-flex xs12 sm4>
114 <v-layout> 114 <v-layout>
115 <v-flex xs4 class="pt-4 subheading"> 115 <v-flex xs4 class="pt-4 subheading">
116 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label> 116 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
117 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label> 117 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label>
118 </v-flex> 118 </v-flex>
119 <v-flex xs8 class="ml-3"> 119 <v-flex xs8 class="ml-3">
120 <v-text-field 120 <v-text-field
121 v-model="editedItem.name" 121 v-model="editedItem.name"
122 placeholder="fill your full Name" 122 placeholder="fill your full Name"
123 name="name" 123 name="name"
124 type="text" 124 type="text"
125 required 125 required
126 ></v-text-field> 126 ></v-text-field>
127 </v-flex> 127 </v-flex>
128 </v-layout> 128 </v-layout>
129 </v-flex> 129 </v-flex>
130 </v-layout> 130 </v-layout>
131 <v-layout> 131 <v-layout>
132 <v-flex xs12 sm4> 132 <v-flex xs12 sm4>
133 <v-layout> 133 <v-layout>
134 <v-flex xs4 class="pt-4 subheading"> 134 <v-flex xs4 class="pt-4 subheading">
135 <label class="right">Email ID:</label> 135 <label class="right">Email ID:</label>
136 </v-flex> 136 </v-flex>
137 <v-flex xs8 class="ml-3"> 137 <v-flex xs8 class="ml-3">
138 <v-text-field 138 <v-text-field
139 placeholder="fill your email" 139 placeholder="fill your email"
140 v-model="editedItem.email" 140 v-model="editedItem.email"
141 type="text" 141 type="text"
142 name="email" 142 name="email"
143 required 143 required
144 ></v-text-field> 144 ></v-text-field>
145 </v-flex> 145 </v-flex>
146 </v-layout> 146 </v-layout>
147 </v-flex> 147 </v-flex>
148 <v-flex xs12 sm4> 148 <v-flex xs12 sm4>
149 <v-layout> 149 <v-layout>
150 <v-flex xs4 class="pt-4 subheading"> 150 <v-flex xs4 class="pt-4 subheading">
151 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label> 151 <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
152 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label> 152 <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label>
153 </v-flex> 153 </v-flex>
154 <v-flex xs8 class="ml-3"> 154 <v-flex xs8 class="ml-3">
155 <v-menu 155 <v-menu
156 ref="menu" 156 ref="menu"
157 :close-on-content-click="false" 157 :close-on-content-click="false"
158 v-model="menu1" 158 v-model="menu1"
159 :nudge-right="40" 159 :nudge-right="40"
160 lazy 160 lazy
161 transition="scale-transition" 161 transition="scale-transition"
162 offset-y 162 offset-y
163 full-width 163 full-width
164 min-width="290px" 164 min-width="290px"
165 > 165 >
166 <v-text-field 166 <v-text-field
167 slot="activator" 167 slot="activator"
168 v-model="editedItem.dob" 168 v-model="editedItem.dob"
169 placeholder="Select Dob" 169 placeholder="Select Dob"
170 ></v-text-field> 170 ></v-text-field>
171 <v-date-picker 171 <v-date-picker
172 ref="picker" 172 ref="picker"
173 v-model="editedItem.dob" 173 v-model="editedItem.dob"
174 :max="new Date().toISOString().substr(0, 10)" 174 :max="new Date().toISOString().substr(0, 10)"
175 min="1950-01-01" 175 min="1950-01-01"
176 @input="menu1 = false" 176 @input="menu1 = false"
177 ></v-date-picker> 177 ></v-date-picker>
178 </v-menu> 178 </v-menu>
179 </v-flex> 179 </v-flex>
180 </v-layout> 180 </v-layout>
181 </v-flex> 181 </v-flex>
182 <v-flex xs12 sm4> 182 <v-flex xs12 sm4>
183 <v-layout> 183 <v-layout>
184 <v-flex xs4 class="pt-4 subheading"> 184 <v-flex xs4 class="pt-4 subheading">
185 <label class="right">City:</label> 185 <label class="right">City:</label>
186 </v-flex> 186 </v-flex>
187 <v-flex xs8 class="ml-3"> 187 <v-flex xs8 class="ml-3">
188 <v-text-field 188 <v-text-field
189 v-model="editedItem.city" 189 v-model="editedItem.city"
190 placeholder="fill your City Name" 190 placeholder="fill your City Name"
191 name="City" 191 name="City"
192 type="text" 192 type="text"
193 required 193 required
194 ></v-text-field> 194 ></v-text-field>
195 </v-flex> 195 </v-flex>
196 </v-layout> 196 </v-layout>
197 </v-flex> 197 </v-flex>
198 </v-layout> 198 </v-layout>
199 <v-layout> 199 <v-layout>
200 <v-flex xs12 sm4> 200 <v-flex xs12 sm4>
201 <v-layout> 201 <v-layout>
202 <v-flex xs4 class="pt-4 subheading"> 202 <v-flex xs4 class="pt-4 subheading">
203 <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label> 203 <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
204 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Blood:</label> 204 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Blood:</label>
205 </v-flex> 205 </v-flex>
206 <v-flex xs8 class="ml-3"> 206 <v-flex xs8 class="ml-3">
207 <v-text-field 207 <v-text-field
208 v-model="editedItem.bloodGroup" 208 v-model="editedItem.bloodGroup"
209 placeholder="fill your BloodGroup" 209 placeholder="fill your BloodGroup"
210 name="state" 210 name="state"
211 type="text" 211 type="text"
212 required 212 required
213 ></v-text-field> 213 ></v-text-field>
214 </v-flex> 214 </v-flex>
215 </v-layout> 215 </v-layout>
216 </v-flex> 216 </v-flex>
217 <v-flex xs12 sm4> 217 <v-flex xs12 sm4>
218 <v-layout> 218 <v-layout>
219 <v-flex xs4 class="pt-4 subheading"> 219 <v-flex xs4 class="pt-4 subheading">
220 <label class="right">Allergies:</label> 220 <label class="right">Allergies:</label>
221 </v-flex> 221 </v-flex>
222 <v-flex xs8 class="ml-3"> 222 <v-flex xs8 class="ml-3">
223 <v-text-field 223 <v-text-field
224 v-model="editedItem.allergies" 224 v-model="editedItem.allergies"
225 placeholder="fill your Allergies" 225 placeholder="fill your Allergies"
226 name="pincode" 226 name="pincode"
227 required 227 required
228 ></v-text-field> 228 ></v-text-field>
229 </v-flex> 229 </v-flex>
230 </v-layout> 230 </v-layout>
231 </v-flex> 231 </v-flex>
232 <v-flex xs12 sm4> 232 <v-flex xs12 sm4>
233 <v-layout> 233 <v-layout>
234 <v-flex xs4 class="pt-4 subheading"> 234 <v-flex xs4 class="pt-4 subheading">
235 <label class="right">Medical Notes:</label> 235 <label class="right">Medical Notes:</label>
236 </v-flex> 236 </v-flex>
237 <v-flex xs8 class="ml-3"> 237 <v-flex xs8 class="ml-3">
238 <v-text-field 238 <v-text-field
239 v-model="editedItem.medicalNotes" 239 v-model="editedItem.medicalNotes"
240 placeholder="fill your medicalNotes" 240 placeholder="fill your medicalNotes"
241 name="mobileNo" 241 name="mobileNo"
242 required 242 required
243 ></v-text-field> 243 ></v-text-field>
244 </v-flex> 244 </v-flex>
245 </v-layout> 245 </v-layout>
246 </v-flex> 246 </v-flex>
247 </v-layout> 247 </v-layout>
248 <v-layout> 248 <v-layout>
249 <v-flex xs12 sm4> 249 <v-flex xs12 sm4>
250 <v-layout> 250 <v-layout>
251 <v-flex xs4 class="pt-4 subheading"> 251 <v-flex xs4 class="pt-4 subheading">
252 <label class="right">Height:</label> 252 <label class="right">Height:</label>
253 </v-flex> 253 </v-flex>
254 <v-flex xs8 class="ml-3"> 254 <v-flex xs8 class="ml-3">
255 <v-text-field 255 <v-text-field
256 v-model="editedItem.height" 256 v-model="editedItem.height"
257 placeholder="fill your Height" 257 placeholder="fill your Height"
258 name="state" 258 name="state"
259 type="text" 259 type="text"
260 required 260 required
261 ></v-text-field> 261 ></v-text-field>
262 </v-flex> 262 </v-flex>
263 </v-layout> 263 </v-layout>
264 </v-flex> 264 </v-flex>
265 <v-flex xs12 sm4> 265 <v-flex xs12 sm4>
266 <v-layout> 266 <v-layout>
267 <v-flex xs4 class="pt-4 subheading"> 267 <v-flex xs4 class="pt-4 subheading">
268 <label class="right">Weight:</label> 268 <label class="right">Weight:</label>
269 </v-flex> 269 </v-flex>
270 <v-flex xs8 class="ml-3"> 270 <v-flex xs8 class="ml-3">
271 <v-text-field 271 <v-text-field
272 v-model="editedItem.weight" 272 v-model="editedItem.weight"
273 placeholder="fill your Weight" 273 placeholder="fill your Weight"
274 name="pincode" 274 name="pincode"
275 required 275 required
276 ></v-text-field> 276 ></v-text-field>
277 </v-flex> 277 </v-flex>
278 </v-layout> 278 </v-layout>
279 </v-flex> 279 </v-flex>
280 <v-flex xs12 sm4> 280 <v-flex xs12 sm4>
281 <v-layout> 281 <v-layout>
282 <v-flex xs4 class="pt-4 subheading"> 282 <v-flex xs4 class="pt-4 subheading">
283 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label> 283 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
284 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label> 284 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label>
285 </v-flex> 285 </v-flex>
286 <v-flex xs8 class="ml-3"> 286 <v-flex xs8 class="ml-3">
287 <v-text-field 287 <v-text-field
288 label="Select Image" 288 label="Select Image"
289 @click="pickFile" 289 @click="pickFile"
290 v-model="imageName" 290 v-model="imageName"
291 append-icon="attach_file" 291 append-icon="attach_file"
292 ></v-text-field> 292 ></v-text-field>
293 </v-flex> 293 </v-flex>
294 </v-layout> 294 </v-layout>
295 </v-flex> 295 </v-flex>
296 </v-layout> 296 </v-layout>
297 <v-layout> 297 <v-layout>
298 <v-flex xs12 sm4> 298 <v-flex xs12 sm4>
299 <v-layout> 299 <v-layout>
300 <v-flex xs4 class="pt-4 subheading"> 300 <v-flex xs4 class="pt-4 subheading">
301 <label class="right">State:</label> 301 <label class="right">State:</label>
302 </v-flex> 302 </v-flex>
303 <v-flex xs8 class="ml-3"> 303 <v-flex xs8 class="ml-3">
304 <v-text-field 304 <v-text-field
305 v-model="editedItem.state" 305 v-model="editedItem.state"
306 placeholder="fill your State Name" 306 placeholder="fill your State Name"
307 name="state" 307 name="state"
308 type="text" 308 type="text"
309 required 309 required
310 ></v-text-field> 310 ></v-text-field>
311 </v-flex> 311 </v-flex>
312 </v-layout> 312 </v-layout>
313 </v-flex> 313 </v-flex>
314 <v-flex xs12 sm4> 314 <v-flex xs12 sm4>
315 <v-layout> 315 <v-layout>
316 <v-flex xs4 class="pt-4 subheading"> 316 <v-flex xs4 class="pt-4 subheading">
317 <label class="right">Pincode:</label> 317 <label class="right">Pincode:</label>
318 </v-flex> 318 </v-flex>
319 <v-flex xs8 class="ml-3"> 319 <v-flex xs8 class="ml-3">
320 <v-text-field 320 <v-text-field
321 v-model="editedItem.pincode" 321 v-model="editedItem.pincode"
322 placeholder="fill your pincode" 322 placeholder="fill your pincode"
323 name="pincode" 323 name="pincode"
324 type="number" 324 type="number"
325 required 325 required
326 ></v-text-field> 326 ></v-text-field>
327 </v-flex> 327 </v-flex>
328 </v-layout> 328 </v-layout>
329 </v-flex> 329 </v-flex>
330 <v-flex xs12 sm4> 330 <v-flex xs12 sm4>
331 <v-layout> 331 <v-layout>
332 <v-flex xs4 class="pt-4 subheading"> 332 <v-flex xs4 class="pt-4 subheading">
333 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label> 333 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
334 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label> 334 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label>
335 </v-flex> 335 </v-flex>
336 <v-flex xs8 class="ml-3"> 336 <v-flex xs8 class="ml-3">
337 <v-text-field 337 <v-text-field
338 v-model="editedItem.mobile" 338 v-model="editedItem.mobile"
339 placeholder="fill your MobileNo" 339 placeholder="fill your MobileNo"
340 name="mobileNo" 340 name="mobileNo"
341 type="number" 341 type="number"
342 required 342 required
343 ></v-text-field> 343 ></v-text-field>
344 </v-flex> 344 </v-flex>
345 </v-layout> 345 </v-layout>
346 </v-flex> 346 </v-flex>
347 </v-layout> 347 </v-layout>
348 <v-layout> 348 <v-layout>
349 <v-flex xs12 sm4> 349 <v-flex xs12 sm4>
350 <v-layout> 350 <v-layout>
351 <v-flex xs4 class="pt-4 subheading"> 351 <v-flex xs4 class="pt-4 subheading">
352 <label class="right hidden-xs-only hidden-sm-only">Select Country:</label> 352 <label class="right hidden-xs-only hidden-sm-only">Select Country:</label>
353 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label> 353 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label>
354 </v-flex> 354 </v-flex>
355 <v-flex xs8 class="ml-3"> 355 <v-flex xs8 class="ml-3">
356 <v-autocomplete 356 <v-autocomplete
357 v-model="editedItem.country" 357 v-model="editedItem.country"
358 :items="countries" 358 :items="countries"
359 placeholder="Select Country Name" 359 placeholder="Select Country Name"
360 required 360 required
361 ></v-autocomplete> 361 ></v-autocomplete>
362 </v-flex> 362 </v-flex>
363 </v-layout> 363 </v-layout>
364 </v-flex> 364 </v-flex>
365 <v-flex xs12 sm4> 365 <v-flex xs12 sm4>
366 <v-layout> 366 <v-layout>
367 <v-flex xs4 class="pt-4 subheading"> 367 <v-flex xs4 class="pt-4 subheading">
368 <label class="right">Gender:</label> 368 <label class="right">Gender:</label>
369 </v-flex> 369 </v-flex>
370 <v-flex xs8 class="ml-3"> 370 <v-flex xs8 class="ml-3">
371 <v-select 371 <v-select
372 :items="gender" 372 :items="gender"
373 v-model="editedItem.gender" 373 v-model="editedItem.gender"
374 placeholder="Select Gender" 374 placeholder="Select Gender"
375 required 375 required
376 ></v-select> 376 ></v-select>
377 </v-flex> 377 </v-flex>
378 </v-layout> 378 </v-layout>
379 </v-flex> 379 </v-flex>
380 <v-flex xs12 sm4> 380 <v-flex xs12 sm4>
381 <v-layout> 381 <v-layout>
382 <v-flex xs4 class="pt-4 subheading"> 382 <v-flex xs4 class="pt-4 subheading">
383 <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label> 383 <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
384 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Roll No:</label> 384 <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Roll No:</label>
385 </v-flex> 385 </v-flex>
386 <v-flex xs8 class="ml-3"> 386 <v-flex xs8 class="ml-3">
387 <v-text-field 387 <v-text-field
388 :items="gender" 388 :items="gender"
389 v-model="editedItem.rollNo" 389 v-model="editedItem.rollNo"
390 placeholder="fill roll number" 390 placeholder="fill roll number"
391 required 391 required
392 ></v-text-field> 392 ></v-text-field>
393 </v-flex> 393 </v-flex>
394 </v-layout> 394 </v-layout>
395 </v-flex> 395 </v-flex>
396 </v-layout> 396 </v-layout>
397 <v-layout class="hidden-xs-only hidden-sm-only"> 397 <v-layout class="hidden-xs-only hidden-sm-only">
398 <v-flex xs12 sm12> 398 <v-flex xs12 sm12>
399 <v-layout> 399 <v-layout>
400 <v-flex xs4 sm2 class="pt-4 subheading ml-5"> 400 <v-flex xs4 sm2 class="pt-4 subheading ml-5">
401 <label class="right pr-4">Present Address:</label> 401 <label class="right pr-4">Present Address:</label>
402 </v-flex> 402 </v-flex>
403 <v-flex xs8 sm12> 403 <v-flex xs8 sm12>
404 <v-text-field 404 <v-text-field
405 name="input-4-3" 405 name="input-4-3"
406 v-model="editedItem.presentAddress" 406 v-model="editedItem.presentAddress"
407 placeholder="fill Your present Address" 407 placeholder="fill Your present Address"
408 required 408 required
409 ></v-text-field> 409 ></v-text-field>
410 </v-flex> 410 </v-flex>
411 </v-layout> 411 </v-layout>
412 </v-flex> 412 </v-flex>
413 <v-flex xs12 sm12> 413 <v-flex xs12 sm12>
414 <v-layout> 414 <v-layout>
415 <v-flex xs4 sm2 class="pt-4 subheading ml-5 addressForm"> 415 <v-flex xs4 sm2 class="pt-4 subheading ml-5 addressForm">
416 <label class>Permanent Address:</label> 416 <label class>Permanent Address:</label>
417 </v-flex> 417 </v-flex>
418 <v-flex xs12 sm12> 418 <v-flex xs12 sm12>
419 <v-text-field 419 <v-text-field
420 name="input-4-3" 420 name="input-4-3"
421 v-model="editedItem.permanentAddress" 421 v-model="editedItem.permanentAddress"
422 placeholder="fill Your Permanent Address" 422 placeholder="fill Your Permanent Address"
423 required 423 required
424 ></v-text-field> 424 ></v-text-field>
425 </v-flex> 425 </v-flex>
426 </v-layout> 426 </v-layout>
427 </v-flex> 427 </v-flex>
428 </v-layout> 428 </v-layout>
429 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only"> 429 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only">
430 <v-flex xs12 sm12> 430 <v-flex xs12 sm12>
431 <v-layout> 431 <v-layout>
432 <v-flex xs12 sm3 class="pt-4 subheading text-xs-center"> 432 <v-flex xs12 sm3 class="pt-4 subheading text-xs-center">
433 <label class>Present Address :</label> 433 <label class>Present Address :</label>
434 </v-flex> 434 </v-flex>
435 </v-layout> 435 </v-layout>
436 <v-layout> 436 <v-layout>
437 <v-flex xs12 sm12> 437 <v-flex xs12 sm12>
438 <v-textarea 438 <v-textarea
439 name="input-4-3" 439 name="input-4-3"
440 v-model="editedItem.presentAddress" 440 v-model="editedItem.presentAddress"
441 placeholder="fill Your present Address" 441 placeholder="fill Your present Address"
442 required 442 required
443 ></v-textarea> 443 ></v-textarea>
444 </v-flex> 444 </v-flex>
445 </v-layout> 445 </v-layout>
446 </v-flex> 446 </v-flex>
447 <v-flex xs12 sm12> 447 <v-flex xs12 sm12>
448 <v-layout> 448 <v-layout>
449 <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm"> 449 <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm">
450 <label>Permanent addr:</label> 450 <label>Permanent addr:</label>
451 </v-flex> 451 </v-flex>
452 </v-layout> 452 </v-layout>
453 <v-layout> 453 <v-layout>
454 <v-flex xs12 sm12> 454 <v-flex xs12 sm12>
455 <v-textarea 455 <v-textarea
456 name="input-4-3" 456 name="input-4-3"
457 v-model="editedItem.permanentAddress" 457 v-model="editedItem.permanentAddress"
458 placeholder="fill Your Permanent Address" 458 placeholder="fill Your Permanent Address"
459 required 459 required
460 ></v-textarea> 460 ></v-textarea>
461 </v-flex> 461 </v-flex>
462 </v-layout> 462 </v-layout>
463 </v-flex> 463 </v-flex>
464 </v-layout> 464 </v-layout>
465 <v-layout> 465 <v-layout>
466 <v-flex xs12 sm12> 466 <v-flex xs12 sm12>
467 <v-layout> 467 <v-layout>
468 <v-flex xs6> 468 <v-flex xs6>
469 <v-btn round dark @click.native="close">Cancel</v-btn> 469 <v-btn round dark @click.native="close">Cancel</v-btn>
470 </v-flex> 470 </v-flex>
471 <v-flex xs6> 471 <v-flex xs6>
472 <v-btn @click="save" round dark :loading="loading" class="right">Save</v-btn> 472 <v-btn @click="save" round dark :loading="loading" class="right">Save</v-btn>
473 </v-flex> 473 </v-flex>
474 </v-layout> 474 </v-layout>
475 </v-flex> 475 </v-flex>
476 </v-layout> 476 </v-layout>
477 </v-container> 477 </v-container>
478 </v-form> 478 </v-form>
479 </v-card-text> 479 </v-card-text>
480 </v-card> 480 </v-card>
481 </v-dialog> 481 </v-dialog>
482 482
483 <!-- ****** PROFILE VIEW STUDENTS DEATILS ****** --> 483 <!-- ****** PROFILE VIEW STUDENTS DEATILS ****** -->
484 484
485 <v-dialog v-model="dialog1" max-width="1100px" scrollable> 485 <v-dialog v-model="dialog1" max-width="1100px" scrollable>
486 <v-card> 486 <v-card>
487 <v-toolbar color="grey lighten-2" flat> 487 <v-toolbar color="grey lighten-2" flat>
488 <v-spacer></v-spacer> 488 <v-spacer></v-spacer>
489 <v-toolbar-title>Student Profile</v-toolbar-title> 489 <v-toolbar-title>Student Profile</v-toolbar-title>
490 <v-spacer></v-spacer> 490 <v-spacer></v-spacer>
491 <v-icon @click="close1">close</v-icon> 491 <v-icon @click="close1">close</v-icon>
492 </v-toolbar> 492 </v-toolbar>
493 <v-card-text style="height: 700px;"> 493 <v-card-text style="height: 700px;">
494 <v-flex align-center justify-center layout text-xs-center class="mt-3"> 494 <v-flex align-center justify-center layout text-xs-center class="mt-3">
495 <v-avatar size="160px"> 495 <v-avatar size="160px">
496 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" /> 496 <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" />
497 <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" /> 497 <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" />
498 </v-avatar> 498 </v-avatar>
499 </v-flex> 499 </v-flex>
500 <v-container grid-list-md> 500 <v-container grid-list-md>
501 <v-layout wrap> 501 <v-layout wrap>
502 <v-flex xs12 sm6> 502 <v-flex xs12 sm6>
503 <v-layout> 503 <v-layout>
504 <v-flex xs6 sm5> 504 <v-flex xs6 sm5>
505 <h5 class="right my-1"> 505 <h5 class="right my-1">
506 <b>Full Name:</b> 506 <b>Full Name:</b>
507 </h5> 507 </h5>
508 </v-flex> 508 </v-flex>
509 <v-flex sm7 xs6> 509 <v-flex sm7 xs6>
510 <h5 class="my-1 left">{{ editedItem.name }}</h5> 510 <h5 class="my-1 left">{{ editedItem.name }}</h5>
511 </v-flex> 511 </v-flex>
512 </v-layout> 512 </v-layout>
513 </v-flex> 513 </v-flex>
514 <v-flex xs12 sm6> 514 <v-flex xs12 sm6>
515 <v-layout> 515 <v-layout>
516 <v-flex xs6 sm4> 516 <v-flex xs6 sm4>
517 <h5 class="right my-1"> 517 <h5 class="right my-1">
518 <b>Email:</b> 518 <b>Email:</b>
519 </h5> 519 </h5>
520 </v-flex> 520 </v-flex>
521 <v-flex sm8 xs6> 521 <v-flex sm8 xs6>
522 <h5 class="my-1 left">{{ editedItem.email }}</h5> 522 <h5 class="my-1 left">{{ editedItem.email }}</h5>
523 </v-flex> 523 </v-flex>
524 </v-layout> 524 </v-layout>
525 </v-flex> 525 </v-flex>
526 </v-layout> 526 </v-layout>
527 <v-layout wrap> 527 <v-layout wrap>
528 <v-flex xs12 sm6> 528 <v-flex xs12 sm6>
529 <v-layout> 529 <v-layout>
530 <v-flex xs6 sm5> 530 <v-flex xs6 sm5>
531 <b> 531 <b>
532 <h5 class="right my-1"> 532 <h5 class="right my-1">
533 <b>Gender:</b> 533 <b>Gender:</b>
534 </h5> 534 </h5>
535 </b> 535 </b>
536 </v-flex> 536 </v-flex>
537 <v-flex sm7 xs6> 537 <v-flex sm7 xs6>
538 <h5 class="my-1 left">{{ editedItem.gender }}</h5> 538 <h5 class="my-1 left">{{ editedItem.gender }}</h5>
539 </v-flex> 539 </v-flex>
540 </v-layout> 540 </v-layout>
541 </v-flex> 541 </v-flex>
542 <v-flex xs12 sm6> 542 <v-flex xs12 sm6>
543 <v-layout> 543 <v-layout>
544 <v-flex xs6 sm4> 544 <v-flex xs6 sm4>
545 <b> 545 <b>
546 <h5 class="right my-1"> 546 <h5 class="right my-1">
547 <b>D.O.B:</b> 547 <b>D.O.B:</b>
548 </h5> 548 </h5>
549 </b> 549 </b>
550 </v-flex> 550 </v-flex>
551 <v-flex sm7 xs6> 551 <v-flex sm7 xs6>
552 <h5 class="my-1">{{ dates(editedItem.dob) }}</h5> 552 <h5 class="my-1">{{ dates(editedItem.dob) }}</h5>
553 </v-flex> 553 </v-flex>
554 </v-layout> 554 </v-layout>
555 </v-flex> 555 </v-flex>
556 </v-layout> 556 </v-layout>
557 <v-layout wrap> 557 <v-layout wrap>
558 <v-flex xs12 sm6> 558 <v-flex xs12 sm6>
559 <v-layout> 559 <v-layout>
560 <v-flex xs6 sm5> 560 <v-flex xs6 sm5>
561 <b> 561 <b>
562 <h5 class="right my-1"> 562 <h5 class="right my-1">
563 <b>Blood Group:</b> 563 <b>Blood Group:</b>
564 </h5> 564 </h5>
565 </b> 565 </b>
566 </v-flex> 566 </v-flex>
567 <v-flex sm7 xs6> 567 <v-flex sm7 xs6>
568 <h5 class="my-1 left">{{ editedItem.bloodGroup }}</h5> 568 <h5 class="my-1 left">{{ editedItem.bloodGroup }}</h5>
569 </v-flex> 569 </v-flex>
570 </v-layout> 570 </v-layout>
571 </v-flex> 571 </v-flex>
572 <v-flex xs12 sm6> 572 <v-flex xs12 sm6>
573 <v-layout> 573 <v-layout>
574 <v-flex xs6 sm4> 574 <v-flex xs6 sm4>
575 <b> 575 <b>
576 <h5 class="right my-1"> 576 <h5 class="right my-1">
577 <b>Allergies:</b> 577 <b>Allergies:</b>
578 </h5> 578 </h5>
579 </b> 579 </b>
580 </v-flex> 580 </v-flex>
581 <v-flex sm8 xs6> 581 <v-flex sm8 xs6>
582 <h5 class="my-1">{{ editedItem.allergies }}</h5> 582 <h5 class="my-1">{{ editedItem.allergies }}</h5>
583 </v-flex> 583 </v-flex>
584 </v-layout> 584 </v-layout>
585 </v-flex> 585 </v-flex>
586 </v-layout> 586 </v-layout>
587 <v-layout wrap> 587 <v-layout wrap>
588 <v-flex xs12 sm6> 588 <v-flex xs12 sm6>
589 <v-layout> 589 <v-layout>
590 <v-flex xs6 sm5> 590 <v-flex xs6 sm5>
591 <b> 591 <b>
592 <h5 class="right my-1"> 592 <h5 class="right my-1">
593 <b>Height:</b> 593 <b>Height:</b>
594 </h5> 594 </h5>
595 </b> 595 </b>
596 </v-flex> 596 </v-flex>
597 <v-flex sm7 xs6> 597 <v-flex sm7 xs6>
598 <h5 class="my-1 left">{{ editedItem.height }}</h5> 598 <h5 class="my-1 left">{{ editedItem.height }}</h5>
599 </v-flex> 599 </v-flex>
600 </v-layout> 600 </v-layout>
601 </v-flex> 601 </v-flex>
602 <v-flex xs12 sm6> 602 <v-flex xs12 sm6>
603 <v-layout> 603 <v-layout>
604 <v-flex xs6 sm4> 604 <v-flex xs6 sm4>
605 <b> 605 <b>
606 <h5 class="right my-1"> 606 <h5 class="right my-1">
607 <b>Weight:</b> 607 <b>Weight:</b>
608 </h5> 608 </h5>
609 </b> 609 </b>
610 </v-flex> 610 </v-flex>
611 <v-flex sm8 xs6> 611 <v-flex sm8 xs6>
612 <h5 class="my-1">{{ editedItem.weight }}</h5> 612 <h5 class="my-1">{{ editedItem.weight }}</h5>
613 </v-flex> 613 </v-flex>
614 </v-layout> 614 </v-layout>
615 </v-flex> 615 </v-flex>
616 </v-layout> 616 </v-layout>
617 <v-layout wrap> 617 <v-layout wrap>
618 <v-flex xs12 sm6> 618 <v-flex xs12 sm6>
619 <v-layout> 619 <v-layout>
620 <v-flex xs6 sm5> 620 <v-flex xs6 sm5>
621 <b> 621 <b>
622 <h5 class="right my-1"> 622 <h5 class="right my-1">
623 <b>City:</b> 623 <b>City:</b>
624 </h5> 624 </h5>
625 </b> 625 </b>
626 </v-flex> 626 </v-flex>
627 <v-flex sm7 xs6> 627 <v-flex sm7 xs6>
628 <h5 class="my-1 left">{{ editedItem.city }}</h5> 628 <h5 class="my-1 left">{{ editedItem.city }}</h5>
629 </v-flex> 629 </v-flex>
630 </v-layout> 630 </v-layout>
631 </v-flex> 631 </v-flex>
632 <v-flex xs12 sm6> 632 <v-flex xs12 sm6>
633 <v-layout> 633 <v-layout>
634 <v-flex xs6 sm4> 634 <v-flex xs6 sm4>
635 <b> 635 <b>
636 <h5 class="right my-1"> 636 <h5 class="right my-1">
637 <b>State:</b> 637 <b>State:</b>
638 </h5> 638 </h5>
639 </b> 639 </b>
640 </v-flex> 640 </v-flex>
641 <v-flex sm8 xs6> 641 <v-flex sm8 xs6>
642 <h5 class="my-1">{{ editedItem.state }}</h5> 642 <h5 class="my-1">{{ editedItem.state }}</h5>
643 </v-flex> 643 </v-flex>
644 </v-layout> 644 </v-layout>
645 </v-flex> 645 </v-flex>
646 </v-layout> 646 </v-layout>
647 <v-layout wrap> 647 <v-layout wrap>
648 <v-flex xs12 sm6> 648 <v-flex xs12 sm6>
649 <v-layout> 649 <v-layout>
650 <v-flex xs6 sm5> 650 <v-flex xs6 sm5>
651 <b> 651 <b>
652 <h5 class="right my-1"> 652 <h5 class="right my-1">
653 <b>Pincode:</b> 653 <b>Pincode:</b>
654 </h5> 654 </h5>
655 </b> 655 </b>
656 </v-flex> 656 </v-flex>
657 <v-flex sm7 xs6> 657 <v-flex sm7 xs6>
658 <h5 class="my-1">{{ editedItem.pincode }}</h5> 658 <h5 class="my-1">{{ editedItem.pincode }}</h5>
659 </v-flex> 659 </v-flex>
660 </v-layout> 660 </v-layout>
661 </v-flex> 661 </v-flex>
662 <v-flex xs12 sm5> 662 <v-flex xs12 sm5>
663 <v-layout> 663 <v-layout>
664 <v-flex xs6 sm5> 664 <v-flex xs6 sm5>
665 <b> 665 <b>
666 <h5 class="right my-1"> 666 <h5 class="right my-1">
667 <b>Country:</b> 667 <b>Country:</b>
668 </h5> 668 </h5>
669 </b> 669 </b>
670 </v-flex> 670 </v-flex>
671 <v-flex sm7 xs6> 671 <v-flex sm7 xs6>
672 <h5 class="my-1">{{ editedItem.country }}</h5> 672 <h5 class="my-1">{{ editedItem.country }}</h5>
673 </v-flex> 673 </v-flex>
674 </v-layout> 674 </v-layout>
675 </v-flex> 675 </v-flex>
676 </v-layout> 676 </v-layout>
677 <v-layout wrap> 677 <v-layout wrap>
678 <v-flex xs12 sm6> 678 <v-flex xs12 sm6>
679 <v-layout> 679 <v-layout>
680 <v-flex sm5 xs6> 680 <v-flex sm5 xs6>
681 <b> 681 <b>
682 <h5 class="right my-1"> 682 <h5 class="right my-1">
683 <b>Mobile No:</b> 683 <b>Mobile No:</b>
684 </h5> 684 </h5>
685 </b> 685 </b>
686 </v-flex> 686 </v-flex>
687 <v-flex sm6 xs6> 687 <v-flex sm6 xs6>
688 <h5 class="my-1">{{ editedItem.mobile }}</h5> 688 <h5 class="my-1">{{ editedItem.mobile }}</h5>
689 </v-flex> 689 </v-flex>
690 </v-layout> 690 </v-layout>
691 </v-flex> 691 </v-flex>
692 <v-flex xs12 sm6> 692 <v-flex xs12 sm6>
693 <v-layout> 693 <v-layout>
694 <v-flex xs6 sm4> 694 <v-flex xs6 sm4>
695 <b> 695 <b>
696 <h5 class="right my-1"> 696 <h5 class="right my-1">
697 <b>Fahter Name:</b> 697 <b>Fahter Name:</b>
698 </h5> 698 </h5>
699 </b> 699 </b>
700 </v-flex> 700 </v-flex>
701 <v-flex sm8 xs6> 701 <v-flex sm8 xs6>
702 <h5 class="my-1">{{ editedItem.fatherName }}</h5> 702 <h5 class="my-1">{{ editedItem.fatherName }}</h5>
703 </v-flex> 703 </v-flex>
704 </v-layout> 704 </v-layout>
705 </v-flex> 705 </v-flex>
706 </v-layout> 706 </v-layout>
707 <v-layout wrap> 707 <v-layout wrap>
708 <v-flex xs12 sm5> 708 <v-flex xs12 sm5>
709 <v-layout> 709 <v-layout>
710 <v-flex xs6 sm6> 710 <v-flex xs6 sm6>
711 <b> 711 <b>
712 <h5 class="right my-1"> 712 <h5 class="right my-1">
713 <b>Mother Name:</b> 713 <b>Mother Name:</b>
714 </h5> 714 </h5>
715 </b> 715 </b>
716 </v-flex> 716 </v-flex>
717 <v-flex sm6 xs6> 717 <v-flex sm6 xs6>
718 <h5 class="my-1">{{ editedItem.motherName }}</h5> 718 <h5 class="my-1">{{ editedItem.motherName }}</h5>
719 </v-flex> 719 </v-flex>
720 </v-layout> 720 </v-layout>
721 </v-flex> 721 </v-flex>
722 <v-flex xs12 sm6> 722 <v-flex xs12 sm6>
723 <v-layout> 723 <v-layout>
724 <v-flex xs6 sm6> 724 <v-flex xs6 sm6>
725 <b> 725 <b>
726 <h5 class="right my-1"> 726 <h5 class="right my-1">
727 <b>Father Cell No:</b> 727 <b>Father Cell No:</b>
728 </h5> 728 </h5>
729 </b> 729 </b>
730 </v-flex> 730 </v-flex>
731 <v-flex sm6 xs6> 731 <v-flex sm6 xs6>
732 <h5 class="my-1">{{ editedItem.fatherCellNo }}</h5> 732 <h5 class="my-1">{{ editedItem.fatherCellNo }}</h5>
733 </v-flex> 733 </v-flex>
734 </v-layout> 734 </v-layout>
735 </v-flex> 735 </v-flex>
736 </v-layout> 736 </v-layout>
737 <v-layout wrap> 737 <v-layout wrap>
738 <v-flex xs12 sm5> 738 <v-flex xs12 sm5>
739 <v-layout> 739 <v-layout>
740 <v-flex xs6 sm6> 740 <v-flex xs6 sm6>
741 <b> 741 <b>
742 <h5 class="right my-1"> 742 <h5 class="right my-1">
743 <b>Mother Cell No:</b> 743 <b>Mother Cell No:</b>
744 </h5> 744 </h5>
745 </b> 745 </b>
746 </v-flex> 746 </v-flex>
747 <v-flex sm6 xs6> 747 <v-flex sm6 xs6>
748 <h5 class="my-1">{{ editedItem.motherCellNo }}</h5> 748 <h5 class="my-1">{{ editedItem.motherCellNo }}</h5>
749 </v-flex> 749 </v-flex>
750 </v-layout> 750 </v-layout>
751 </v-flex> 751 </v-flex>
752 <v-flex xs12 sm6> 752 <v-flex xs12 sm6>
753 <v-layout> 753 <v-layout>
754 <v-flex xs6 sm6> 754 <v-flex xs6 sm6>
755 <b> 755 <b>
756 <h5 class="my-1 right"> 756 <h5 class="my-1 right">
757 <b>Academic Year:</b> 757 <b>Academic Year:</b>
758 </h5> 758 </h5>
759 </b> 759 </b>
760 </v-flex> 760 </v-flex>
761 <v-flex sm5 xs6> 761 <v-flex sm5 xs6>
762 <h5 class="my-1">{{ editedItem.establishmentYear }}</h5> 762 <h5 class="my-1">{{ editedItem.establishmentYear }}</h5>
763 </v-flex> 763 </v-flex>
764 </v-layout> 764 </v-layout>
765 </v-flex> 765 </v-flex>
766 </v-layout> 766 </v-layout>
767 <v-layout wrap> 767 <v-layout wrap>
768 <v-flex xs12 sm5> 768 <v-flex xs12 sm5>
769 <v-layout> 769 <v-layout>
770 <v-flex xs6 sm6> 770 <v-flex xs6 sm6>
771 <b> 771 <b>
772 <h5 class="my-1 right"> 772 <h5 class="my-1 right">
773 <b>Medical Notes:</b> 773 <b>Medical Notes:</b>
774 </h5> 774 </h5>
775 </b> 775 </b>
776 </v-flex> 776 </v-flex>
777 <v-flex sm5 xs6> 777 <v-flex sm5 xs6>
778 <h5 class="my-1">{{ editedItem.medicalNotes }}</h5> 778 <h5 class="my-1">{{ editedItem.medicalNotes }}</h5>
779 </v-flex> 779 </v-flex>
780 </v-layout> 780 </v-layout>
781 </v-flex> 781 </v-flex>
782 <v-flex xs12 sm6> 782 <v-flex xs12 sm6>
783 <v-layout> 783 <v-layout>
784 <v-flex xs6 sm6> 784 <v-flex xs6 sm6>
785 <b> 785 <b>
786 <h5 class="right my-1"> 786 <h5 class="right my-1">
787 <b>Roll No. :</b> 787 <b>Roll No. :</b>
788 </h5> 788 </h5>
789 </b> 789 </b>
790 </v-flex> 790 </v-flex>
791 <v-flex sm6 xs6> 791 <v-flex sm6 xs6>
792 <h5 class="my-1">{{ editedItem.rollNo }}</h5> 792 <h5 class="my-1">{{ editedItem.rollNo }}</h5>
793 </v-flex> 793 </v-flex>
794 </v-layout> 794 </v-layout>
795 </v-flex> 795 </v-flex>
796 </v-layout> 796 </v-layout>
797 <v-layout wrap class="hidden-xs-only"> 797 <v-layout wrap class="hidden-xs-only">
798 <v-flex xs12 sm5> 798 <v-flex xs12 sm5>
799 <v-layout wrap> 799 <v-layout wrap>
800 <v-flex sm6> 800 <v-flex sm6>
801 <b> 801 <b>
802 <h5 class="my-1 right"> 802 <h5 class="my-1 right">
803 <b>present Address:</b> 803 <b>present Address:</b>
804 </h5> 804 </h5>
805 </b> 805 </b>
806 </v-flex> 806 </v-flex>
807 <v-flex sm5> 807 <v-flex sm5>
808 <h5 class="my-1">{{ editedItem.presentAddress }}</h5> 808 <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
809 </v-flex> 809 </v-flex>
810 </v-layout> 810 </v-layout>
811 </v-flex> 811 </v-flex>
812 <v-flex sm6> 812 <v-flex sm6>
813 <v-layout wrap> 813 <v-layout wrap>
814 <v-flex sm6> 814 <v-flex sm6>
815 <b> 815 <b>
816 <h5 class="my-1 right"> 816 <h5 class="my-1 right">
817 <b>Permanent Address:</b> 817 <b>Permanent Address:</b>
818 </h5> 818 </h5>
819 </b> 819 </b>
820 </v-flex> 820 </v-flex>
821 <v-flex sm6> 821 <v-flex sm6>
822 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5> 822 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
823 </v-flex> 823 </v-flex>
824 </v-layout> 824 </v-layout>
825 </v-flex> 825 </v-flex>
826 </v-layout> 826 </v-layout>
827 <v-layout wrap class="hidden-sm-only hidden-md-only hidden-lg-only hidden-xl-only"> 827 <v-layout wrap class="hidden-sm-only hidden-md-only hidden-lg-only hidden-xl-only">
828 <v-flex xs12 sm5> 828 <v-flex xs12 sm5>
829 <v-layout wrap> 829 <v-layout wrap>
830 <v-flex xs8 sm6> 830 <v-flex xs8 sm6>
831 <b> 831 <b>
832 <h5 class="my-1"> 832 <h5 class="my-1">
833 <b>present Address:-</b> 833 <b>present Address:-</b>
834 </h5> 834 </h5>
835 </b> 835 </b>
836 </v-flex> 836 </v-flex>
837 <v-flex sm5 xs12> 837 <v-flex sm5 xs12>
838 <h5 class="my-1">{{ editedItem.presentAddress }}</h5> 838 <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
839 </v-flex> 839 </v-flex>
840 </v-layout> 840 </v-layout>
841 </v-flex> 841 </v-flex>
842 <v-flex xs12 sm6> 842 <v-flex xs12 sm6>
843 <v-layout wrap> 843 <v-layout wrap>
844 <v-flex xs9 sm6> 844 <v-flex xs9 sm6>
845 <b> 845 <b>
846 <h5 class="my-1"> 846 <h5 class="my-1">
847 <b>Permanent Address:-</b> 847 <b>Permanent Address:-</b>
848 </h5> 848 </h5>
849 </b> 849 </b>
850 </v-flex> 850 </v-flex>
851 <v-flex sm6 xs12> 851 <v-flex sm6 xs12>
852 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5> 852 <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
853 </v-flex> 853 </v-flex>
854 </v-layout> 854 </v-layout>
855 </v-flex> 855 </v-flex>
856 </v-layout> 856 </v-layout>
857 </v-container> 857 </v-container>
858 </v-card-text> 858 </v-card-text>
859 </v-card> 859 </v-card>
860 </v-dialog> 860 </v-dialog>
861 861
862 <v-snackbar 862 <v-snackbar
863 :timeout="timeout" 863 :timeout="timeout"
864 :top="y === 'top'" 864 :top="y === 'top'"
865 :right="x === 'right'" 865 :right="x === 'right'"
866 :vertical="mode === 'vertical'" 866 :vertical="mode === 'vertical'"
867 v-model="snackbar" 867 v-model="snackbar"
868 color="success" 868 color="success"
869 >{{ text }}</v-snackbar> 869 >{{ text }}</v-snackbar>
870 870
871 <!-- ****** EXISTING-USERS STUDENTS TABLE ****** --> 871 <!-- ****** EXISTING-USERS STUDENTS TABLE ****** -->
872 <v-card flat> 872 <v-card flat>
873 <v-card-actions class="hidden-xs-only hidden-sm-only"> 873 <v-card-actions class="hidden-xs-only hidden-sm-only">
874 <v-layout> 874 <v-layout>
875 <label class="right mt-4 ml-5">Select Class:</label> 875 <label class="right mt-4 ml-5">Select Class:</label>
876 <v-select 876 <v-select
877 :items="addclass" 877 :items="addclass"
878 label="Select Class" 878 label="Select Class"
879 v-model="selectStudents.select" 879 v-model="selectStudents.select"
880 item-text="classNum" 880 item-text="classNum"
881 item-value="_id" 881 item-value="_id"
882 name="Select Class" 882 name="Select Class"
883 :rules="classRules" 883 :rules="classRules"
884 @change="getSections(selectStudents.select)" 884 @change="getSections(selectStudents.select)"
885 class="px-4" 885 class="px-4"
886 required 886 required
887 ></v-select> 887 ></v-select>
888 <label class="right mt-4">Select Section:</label> 888 <label class="right mt-4">Select Section:</label>
889 <v-select 889 <v-select
890 :items="addSection" 890 :items="addSection"
891 label="Select Section" 891 label="Select Section"
892 v-model="selectStudents.selectSection" 892 v-model="selectStudents.selectSection"
893 item-text="name" 893 item-text="name"
894 item-value="_id" 894 item-value="_id"
895 name="Select Section" 895 name="Select Section"
896 :rules="sectionRules" 896 :rules="sectionRules"
897 class="pl-3" 897 class="pl-3"
898 required 898 required
899 ></v-select> 899 ></v-select>
900 </v-layout> 900 </v-layout>
901 <v-spacer></v-spacer> 901 <v-spacer></v-spacer>
902 <v-btn @click="findStudents()" round dark :loading="loading" class="left">Find</v-btn> 902 <v-btn @click="findStudents()" round dark :loading="loading" class="left">Find</v-btn>
903 </v-card-actions> 903 </v-card-actions>
904 <v-flex class="hidden-xl-only hidden-lg-only hidden-md-only"> 904 <v-flex class="hidden-xl-only hidden-lg-only hidden-md-only">
905 <v-layout> 905 <v-layout>
906 <v-flex xs4> 906 <v-flex xs4>
907 <label class="right mt-4">Select Class:</label> 907 <label class="right mt-4">Select Class:</label>
908 </v-flex> 908 </v-flex>
909 <v-flex xs8> 909 <v-flex xs8>
910 <v-select 910 <v-select
911 :items="addclass" 911 :items="addclass"
912 label="Select Class" 912 label="Select Class"
913 v-model="selectStudents.select" 913 v-model="selectStudents.select"
914 item-text="classNum" 914 item-text="classNum"
915 item-value="_id" 915 item-value="_id"
916 name="Select Class" 916 name="Select Class"
917 :rules="classRules" 917 :rules="classRules"
918 @change="getSections(selectStudents.select)" 918 @change="getSections(selectStudents.select)"
919 class="px-2" 919 class="px-2"
920 required 920 required
921 ></v-select> 921 ></v-select>
922 </v-flex> 922 </v-flex>
923 </v-layout> 923 </v-layout>
924 <v-layout> 924 <v-layout>
925 <v-flex xs4> 925 <v-flex xs4>
926 <label class="right mt-4">Select Section:</label> 926 <label class="right mt-4">Select Section:</label>
927 </v-flex> 927 </v-flex>
928 <v-flex xs8> 928 <v-flex xs8>
929 <v-select 929 <v-select
930 :items="addSection" 930 :items="addSection"
931 label="Select Section" 931 label="Select Section"
932 v-model="selectStudents.selectSection" 932 v-model="selectStudents.selectSection"
933 item-text="name" 933 item-text="name"
934 item-value="_id" 934 item-value="_id"
935 name="Select Section" 935 name="Select Section"
936 :rules="sectionRules" 936 :rules="sectionRules"
937 class="px-2" 937 class="px-2"
938 required 938 required
939 ></v-select> 939 ></v-select>
940 </v-flex> 940 </v-flex>
941 </v-layout> 941 </v-layout>
942 <v-layout> 942 <v-layout>
943 <v-flex xs5 class="mx-auto mb-2"> 943 <v-flex xs5 class="mx-auto mb-2">
944 <v-btn @click="findStudents()" block round dark :loading="loading">Find</v-btn> 944 <v-btn @click="findStudents()" block round dark :loading="loading">Find</v-btn>
945 </v-flex> 945 </v-flex>
946 </v-layout> 946 </v-layout>
947 </v-flex> 947 </v-flex>
948 </v-card> 948 </v-card>
949 <v-data-table 949 <v-data-table
950 :headers="headers" 950 :headers="headers"
951 :items="desserts" 951 :items="desserts"
952 :pagination.sync="pagination" 952 :pagination.sync="pagination"
953 :search="search" 953 :search="search"
954 > 954 >
955 <template slot="items" slot-scope="props"> 955 <template slot="items" slot-scope="props">
956 <td id="td" class="text-xs-center">{{ props.item.rollNo}}</td> 956 <td id="td" class="text-xs-center">{{ props.item.rollNo}}</td>
957 <td id="td" class="text-xs-center"> 957 <td id="td" class="text-xs-center">
958 <v-avatar> 958 <v-avatar>
959 <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" /> 959 <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" />
960 <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" /> 960 <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" />
961 </v-avatar> 961 </v-avatar>
962 </td> 962 </td>
963 <td id="td" class="text-xs-center">{{ props.item.name}}</td> 963 <td id="td" class="text-xs-center">{{ props.item.name}}</td>
964 <td id="td" class="text-xs-center">{{ props.item.email }}</td> 964 <td id="td" class="text-xs-center">{{ props.item.email }}</td>
965 <td id="td" class="text-xs-center">{{ dates(props.item.dob) }}</td> 965 <td id="td" class="text-xs-center">{{ dates(props.item.dob) }}</td>
966 <td id="td" class="text-xs-center">{{ props.item.gender }}</td> 966 <td id="td" class="text-xs-center">{{ props.item.gender }}</td>
967 <td id="td" class="text-xs-center">{{ props.item.parentId.fatherName }}</td> 967 <td id="td" class="text-xs-center">{{ props.item.parentId.fatherName }}</td>
968 <td id="td" class="text-xs-center">{{ props.item.parentId.motherName }}</td> 968 <td id="td" class="text-xs-center">{{ props.item.parentId.motherName }}</td>
969 <td id="td" class="text-xs-center">{{ props.item.establishmentYear }}</td> 969 <td id="td" class="text-xs-center">{{ props.item.establishmentYear }}</td>
970 <td id="td" class="text-xs-center">{{ props.item.mobile}}</td> 970 <td id="td" class="text-xs-center">{{ props.item.mobile}}</td>
971 971
972 <td class="text-xs-center"> 972 <td class="text-xs-center">
973 <span> 973 <span>
974 <v-tooltip top> 974 <v-tooltip top>
975 <img 975 <img
976 slot="activator" 976 slot="activator"
977 style="cursor:pointer; width:25px; height:18px; " 977 style="cursor:pointer; width:25px; height:18px; "
978 class="mr5" 978 class="mr5"
979 @click="profile(props.item)" 979 @click="profile(props.item)"
980 src="/static/icon/eye1.png" 980 src="/static/icon/eye1.png"
981 /> 981 />
982 <span>View</span> 982 <span>View</span>
983 </v-tooltip> 983 </v-tooltip>
984 <v-tooltip top> 984 <v-tooltip top>
985 <img 985 <img
986 slot="activator" 986 slot="activator"
987 style="cursor:pointer; width:20px; height:18px; " 987 style="cursor:pointer; width:20px; height:18px; "
988 class="mr5" 988 class="mr5"
989 @click="editItem(props.item)" 989 @click="editItem(props.item)"
990 src="/static/icon/edit1.png" 990 src="/static/icon/edit1.png"
991 /> 991 />
992 <span>Edit</span> 992 <span>Edit</span>
993 </v-tooltip> 993 </v-tooltip>
994 <v-tooltip top> 994 <v-tooltip top>
995 <img 995 <img
996 slot="activator" 996 slot="activator"
997 style="cursor:pointer; width:20px; height:20px; " 997 style="cursor:pointer; width:20px; height:20px; "
998 class="mr5" 998 class="mr5"
999 @click="deleteItem(props.item)" 999 @click="deleteItem(props.item)"
1000 src="/static/icon/delete1.png" 1000 src="/static/icon/delete1.png"
1001 /> 1001 />
1002 <span>Delete</span> 1002 <span>Delete</span>
1003 </v-tooltip> 1003 </v-tooltip>
1004 </span> 1004 </span>
1005 </td> 1005 </td>
1006 </template> 1006 </template>
1007 <v-alert 1007 <v-alert
1008 slot="no-results" 1008 slot="no-results"
1009 :value="true" 1009 :value="true"
1010 color="error" 1010 color="error"
1011 icon="warning" 1011 icon="warning"
1012 >Your search for "{{ search }}" found no results.</v-alert> 1012 >Your search for "{{ search }}" found no results.</v-alert>
1013 </v-data-table> 1013 </v-data-table>
1014 </v-tab-item> 1014 </v-tab-item>
1015 1015
1016 <!-- ****** ADD STUDENTS DETAILS****** --> 1016 <!-- ****** ADD STUDENTS DETAILS****** -->
1017 <v-tab-item> 1017 <v-tab-item>
1018 <v-container fluid> 1018 <v-container fluid>
1019 <v-layout align-center justify-center fill-height> 1019 <v-layout align-center justify-center fill-height>
1020 <v-flex xs12 sm12 md10 lg11> 1020 <v-flex xs12 sm12 md10 lg11>
1021 <div> 1021 <div>
1022 <v-app> 1022 <v-app>
1023 <v-stepper v-model="e2"> 1023 <v-stepper v-model="e2">
1024 <v-stepper-header> 1024 <v-stepper-header>
1025 <v-stepper-step :complete="e2 > 1" step="1">Fill parent Details</v-stepper-step> 1025 <v-stepper-step :complete="e2 > 1" step="1">Fill parent Details</v-stepper-step>
1026 <v-divider></v-divider> 1026 <v-divider></v-divider>
1027 <v-stepper-step step="2">Fill Student Details</v-stepper-step> 1027 <v-stepper-step step="2">Fill Student Details</v-stepper-step>
1028 </v-stepper-header> 1028 </v-stepper-header>
1029 <v-stepper-items> 1029 <v-stepper-items>
1030 <v-stepper-content step="1"> 1030 <v-stepper-content step="1">
1031 <v-container fluid class> 1031 <v-container fluid class>
1032 <v-snackbar 1032 <v-snackbar
1033 :timeout="timeout" 1033 :timeout="timeout"
1034 :top="y === 'top'" 1034 :top="y === 'top'"
1035 :right="x === 'right'" 1035 :right="x === 'right'"
1036 :vertical="mode === 'vertical'" 1036 :vertical="mode === 'vertical'"
1037 v-model="snackbar" 1037 v-model="snackbar"
1038 color="success" 1038 color="success"
1039 >{{ text }}</v-snackbar> 1039 >{{ text }}</v-snackbar>
1040 <v-flex xs12 sm12> 1040 <v-flex xs12 sm12>
1041 <v-form ref="parentForm" v-model="valid" lazy-validation> 1041 <v-form ref="parentForm" v-model="valid" lazy-validation>
1042 <v-layout wrap> 1042 <v-layout wrap>
1043 <v-flex xs12 sm6> 1043 <v-flex xs12 sm6>
1044 <v-layout> 1044 <v-layout>
1045 <v-flex xs4 class="pt-4 subheading"> 1045 <v-flex xs4 class="pt-4 subheading">
1046 <label class="right">Parent Email Id:</label> 1046 <label class="right">Parent Email Id:</label>
1047 </v-flex> 1047 </v-flex>
1048 <v-flex xs8 class="ml-3"> 1048 <v-flex xs8 class="ml-3">
1049 <v-text-field 1049 <v-text-field
1050 placeholder="fill Parent email" 1050 placeholder="fill Parent email"
1051 :rules="emailRules" 1051 :rules="emailRules"
1052 v-model.trim="parentData.email" 1052 v-model.trim="parentData.email"
1053 type="text" 1053 type="text"
1054 v-on:keyup="getParentDetails" 1054 v-on:keyup="getParentDetails"
1055 name="email" 1055 name="email"
1056 required 1056 required
1057 ></v-text-field> 1057 ></v-text-field>
1058 </v-flex> 1058 </v-flex>
1059 </v-layout> 1059 </v-layout>
1060 </v-flex> 1060 </v-flex>
1061 <v-flex xs12 sm6> 1061 <v-flex xs12 sm6>
1062 <v-layout> 1062 <v-layout>
1063 <v-flex xs4 class="pt-4 subheading"> 1063 <v-flex xs4 class="pt-4 subheading">
1064 <label class="right">Father Name:</label> 1064 <label class="right">Father Name:</label>
1065 </v-flex> 1065 </v-flex>
1066 <v-flex xs8 class="ml-3"> 1066 <v-flex xs8 class="ml-3">
1067 <v-text-field 1067 <v-text-field
1068 v-model="parentData.fatherName" 1068 v-model="parentData.fatherName"
1069 :rules="fatherNameRules" 1069 :rules="fatherNameRules"
1070 placeholder="Fill your father Name" 1070 placeholder="Fill your father Name"
1071 required 1071 required
1072 ></v-text-field> 1072 ></v-text-field>
1073 </v-flex> 1073 </v-flex>
1074 </v-layout> 1074 </v-layout>
1075 </v-flex> 1075 </v-flex>
1076 </v-layout> 1076 </v-layout>
1077 <v-layout wrap> 1077 <v-layout wrap>
1078 <v-flex xs12 sm6> 1078 <v-flex xs12 sm6>
1079 <v-layout> 1079 <v-layout>
1080 <v-flex xs4 class="pt-4 subheading"> 1080 <v-flex xs4 class="pt-4 subheading">
1081 <label class="right">Father Cell No:</label> 1081 <label class="right">Father Cell No:</label>
1082 </v-flex> 1082 </v-flex>
1083 <v-flex xs8 class="ml-3"> 1083 <v-flex xs8 class="ml-3">
1084 <v-text-field 1084 <v-text-field
1085 v-model="parentData.fatherCellNo" 1085 v-model="parentData.fatherCellNo"
1086 placeholder="fill your father Cell Number" 1086 placeholder="fill your father Cell Number"
1087 name="state" 1087 name="state"
1088 type="number" 1088 type="number"
1089 :rules="fatheCellNoRules" 1089 :rules="fatheCellNoRules"
1090 required 1090 required
1091 ></v-text-field> 1091 ></v-text-field>
1092 </v-flex> 1092 </v-flex>
1093 </v-layout> 1093 </v-layout>
1094 </v-flex> 1094 </v-flex>
1095 <v-flex xs12 sm6> 1095 <v-flex xs12 sm6>
1096 <v-layout> 1096 <v-layout>
1097 <v-flex xs4 class="pt-4 subheading"> 1097 <v-flex xs4 class="pt-4 subheading">
1098 <label class="right">Mother Name:</label> 1098 <label class="right">Mother Name:</label>
1099 </v-flex> 1099 </v-flex>
1100 <v-flex xs8 class="ml-3"> 1100 <v-flex xs8 class="ml-3">
1101 <v-text-field 1101 <v-text-field
1102 v-model="parentData.motherName" 1102 v-model="parentData.motherName"
1103 placeholder="fill your Mother Name" 1103 placeholder="fill your Mother Name"
1104 name="state" 1104 name="state"
1105 type="text" 1105 type="text"
1106 :rules="motherNameRules" 1106 :rules="motherNameRules"
1107 required 1107 required
1108 ></v-text-field> 1108 ></v-text-field>
1109 </v-flex> 1109 </v-flex>
1110 </v-layout> 1110 </v-layout>
1111 </v-flex> 1111 </v-flex>
1112 </v-layout> 1112 </v-layout>
1113 <v-layout wrap> 1113 <v-layout wrap>
1114 <v-flex xs12 sm6> 1114 <v-flex xs12 sm6>
1115 <v-layout> 1115 <v-layout>
1116 <v-flex xs4 class="pt-4 subheading"> 1116 <v-flex xs4 class="pt-4 subheading">
1117 <label class="right">Mother Cell No:</label> 1117 <label class="right">Mother Cell No:</label>
1118 </v-flex> 1118 </v-flex>
1119 <v-flex xs8 class="ml-3"> 1119 <v-flex xs8 class="ml-3">
1120 <v-text-field 1120 <v-text-field
1121 v-model="parentData.motherCellNo" 1121 v-model="parentData.motherCellNo"
1122 placeholder="fill your Mother Cell Number" 1122 placeholder="fill your Mother Cell Number"
1123 name="state" 1123 name="state"
1124 type="number" 1124 type="number"
1125 :rules="motherCellNoRules" 1125 :rules="motherCellNoRules"
1126 required 1126 required
1127 ></v-text-field> 1127 ></v-text-field>
1128 </v-flex> 1128 </v-flex>
1129 </v-layout> 1129 </v-layout>
1130 </v-flex> 1130 </v-flex>
1131 </v-layout> 1131 </v-layout>
1132 <v-flex sm12 class="hidden-xs-only"> 1132 <v-flex sm12 class="hidden-xs-only">
1133 <v-card-actions> 1133 <v-card-actions>
1134 <v-spacer></v-spacer> 1134 <v-spacer></v-spacer>
1135 <v-btn 1135 <v-btn
1136 @click="submitParentDetails" 1136 @click="submitParentDetails"
1137 round 1137 round
1138 dark 1138 dark
1139 :loading="loading" 1139 :loading="loading"
1140 v-show="showParent" 1140 v-show="showParent"
1141 >Add</v-btn> 1141 >Add</v-btn>
1142 <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn> 1142 <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
1143 </v-card-actions> 1143 </v-card-actions>
1144 </v-flex> 1144 </v-flex>
1145 <v-flex 1145 <v-flex
1146 xs6 1146 xs6
1147 class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2" 1147 class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2"
1148 > 1148 >
1149 <v-btn 1149 <v-btn
1150 @click="submitParentDetails" 1150 @click="submitParentDetails"
1151 round 1151 round
1152 dark 1152 dark
1153 :loading="loading" 1153 :loading="loading"
1154 v-show="showParent" 1154 v-show="showParent"
1155 >Add</v-btn> 1155 >Add</v-btn>
1156 <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn> 1156 <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
1157 </v-flex> 1157 </v-flex>
1158 </v-form> 1158 </v-form>
1159 </v-flex> 1159 </v-flex>
1160 </v-container> 1160 </v-container>
1161 </v-stepper-content> 1161 </v-stepper-content>
1162 <v-stepper-content step="2"> 1162 <v-stepper-content step="2">
1163 <!-- <v-container fluid> --> 1163 <!-- <v-container fluid> -->
1164 <v-snackbar 1164 <v-snackbar
1165 :timeout="timeout" 1165 :timeout="timeout"
1166 :top="y === 'top'" 1166 :top="y === 'top'"
1167 :right="x === 'right'" 1167 :right="x === 'right'"
1168 :vertical="mode === 'vertical'" 1168 :vertical="mode === 'vertical'"
1169 v-model="snackbar" 1169 v-model="snackbar"
1170 color="success" 1170 color="success"
1171 >{{ text }}</v-snackbar> 1171 >{{ text }}</v-snackbar>
1172 <v-flex xs12 sm12> 1172 <v-flex xs12 sm12>
1173 <v-form ref="form" v-model="valid" lazy-validation> 1173 <v-form ref="form" v-model="valid" lazy-validation>
1174 <!-- <v-container fluid> --> 1174 <!-- <v-container fluid> -->
1175 <v-layout> 1175 <v-layout>
1176 <v-flex 1176 <v-flex
1177 xs12 1177 xs12
1178 class="text-xs-center text-sm-center text-md-center text-lg-center" 1178 class="text-xs-center text-sm-center text-md-center text-lg-center"
1179 > 1179 >
1180 <v-avatar size="100px"> 1180 <v-avatar size="100px">
1181 <img src="/static/icon/user.png" v-if="!imageUrl" /> 1181 <img src="/static/icon/user.png" v-if="!imageUrl" />
1182 </v-avatar> 1182 </v-avatar>
1183 <input 1183 <input
1184 type="file" 1184 type="file"
1185 style="display: none" 1185 style="display: none"
1186 ref="image" 1186 ref="image"
1187 accept="image/*" 1187 accept="image/*"
1188 @change="onFilePicked" 1188 @change="onFilePicked"
1189 /> 1189 />
1190 <img 1190 <img
1191 :src="imageData.imageUrl" 1191 :src="imageData.imageUrl"
1192 height="150" 1192 height="150"
1193 v-if="imageUrl" 1193 v-if="imageUrl"
1194 style="border-radius:50%; width:200px" 1194 style="border-radius:50%; width:200px"
1195 /> 1195 />
1196 </v-flex> 1196 </v-flex>
1197 </v-layout> 1197 </v-layout>
1198 <v-layout wrap> 1198 <v-layout wrap>
1199 <v-flex xs12 sm6> 1199 <v-flex xs12 sm6>
1200 <v-layout> 1200 <v-layout>
1201 <v-flex x4 sm4 class="pt-4 subheading"> 1201 <v-flex x4 sm4 class="pt-4 subheading">
1202 <label class="right hidden-xs-only hidden-sm-only">Select Class:</label> 1202 <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
1203 <label 1203 <label
1204 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1204 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1205 >Class:</label> 1205 >Class:</label>
1206 </v-flex> 1206 </v-flex>
1207 <v-flex xs8 sm8 class="ml-3"> 1207 <v-flex xs8 sm8 class="ml-3">
1208 <v-select 1208 <v-select
1209 :items="addclass" 1209 :items="addclass"
1210 label="Select Class" 1210 label="Select Class"
1211 v-model="addStudents.select" 1211 v-model="addStudents.select"
1212 item-text="classNum" 1212 item-text="classNum"
1213 item-value="_id" 1213 item-value="_id"
1214 name="Select Class" 1214 name="Select Class"
1215 :rules="classRules" 1215 :rules="classRules"
1216 @change="getSection(addStudents.select)" 1216 @change="getSection(addStudents.select)"
1217 required 1217 required
1218 ></v-select> 1218 ></v-select>
1219 </v-flex> 1219 </v-flex>
1220 </v-layout> 1220 </v-layout>
1221 </v-flex> 1221 </v-flex>
1222 <v-flex xs12 sm6> 1222 <v-flex xs12 sm6>
1223 <v-layout> 1223 <v-layout>
1224 <v-flex xs4 class="pt-4 subheading"> 1224 <v-flex xs4 class="pt-4 subheading">
1225 <label 1225 <label
1226 class="right hidden-xs-only hidden-sm-only" 1226 class="right hidden-xs-only hidden-sm-only"
1227 >Select Section:</label> 1227 >Select Section:</label>
1228 <label 1228 <label
1229 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1229 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1230 >Section:</label> 1230 >Section:</label>
1231 </v-flex> 1231 </v-flex>
1232 <v-flex xs8 class="ml-3"> 1232 <v-flex xs8 class="ml-3">
1233 <v-select 1233 <v-select
1234 :items="addSection" 1234 :items="addSection"
1235 label="Select Section" 1235 label="Select Section"
1236 v-model="addStudents.selectSection" 1236 v-model="addStudents.selectSection"
1237 item-text="name" 1237 item-text="name"
1238 item-value="_id" 1238 item-value="_id"
1239 name="Select Section" 1239 name="Select Section"
1240 :rules="sectionRules" 1240 :rules="sectionRules"
1241 required 1241 required
1242 ></v-select> 1242 ></v-select>
1243 </v-flex> 1243 </v-flex>
1244 </v-layout> 1244 </v-layout>
1245 </v-flex> 1245 </v-flex>
1246 </v-layout> 1246 </v-layout>
1247 <v-layout wrap> 1247 <v-layout wrap>
1248 <v-flex xs12 sm6> 1248 <v-flex xs12 sm6>
1249 <v-layout> 1249 <v-layout>
1250 <v-flex xs4 sm4 class="pt-4 subheading"> 1250 <v-flex xs4 sm4 class="pt-4 subheading">
1251 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label> 1251 <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
1252 <label 1252 <label
1253 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1253 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1254 >Name:</label> 1254 >Name:</label>
1255 </v-flex> 1255 </v-flex>
1256 <v-flex xs8 sm8 class="ml-3"> 1256 <v-flex xs8 sm8 class="ml-3">
1257 <v-text-field 1257 <v-text-field
1258 v-model="addStudents.name" 1258 v-model="addStudents.name"
1259 placeholder="fill your full Name" 1259 placeholder="fill your full Name"
1260 name="name" 1260 name="name"
1261 type="text" 1261 type="text"
1262 :rules="nameRules" 1262 :rules="nameRules"
1263 required 1263 required
1264 ></v-text-field> 1264 ></v-text-field>
1265 </v-flex> 1265 </v-flex>
1266 </v-layout> 1266 </v-layout>
1267 </v-flex> 1267 </v-flex>
1268 <v-flex xs12 sm6> 1268 <v-flex xs12 sm6>
1269 <v-layout> 1269 <v-layout>
1270 <v-flex xs4 sm4 class="pt-4 subheading"> 1270 <v-flex xs4 sm4 class="pt-4 subheading">
1271 <label class="right">Email ID:</label> 1271 <label class="right">Email ID:</label>
1272 </v-flex> 1272 </v-flex>
1273 <v-flex xs8 sm8 class="ml-3"> 1273 <v-flex xs8 sm8 class="ml-3">
1274 <v-text-field 1274 <v-text-field
1275 placeholder="fill your email" 1275 placeholder="fill your email"
1276 :rules="emailRules" 1276 :rules="emailRules"
1277 v-model="addStudents.email" 1277 v-model="addStudents.email"
1278 type="text" 1278 type="text"
1279 name="email" 1279 name="email"
1280 required 1280 required
1281 ></v-text-field> 1281 ></v-text-field>
1282 </v-flex> 1282 </v-flex>
1283 </v-layout> 1283 </v-layout>
1284 </v-flex> 1284 </v-flex>
1285 </v-layout> 1285 </v-layout>
1286 <v-layout wrap> 1286 <v-layout wrap>
1287 <v-flex xs12 sm6> 1287 <v-flex xs12 sm6>
1288 <v-layout> 1288 <v-layout>
1289 <v-flex xs4 sm4 class="pt-4 subheading"> 1289 <v-flex xs4 sm4 class="pt-4 subheading">
1290 <label 1290 <label
1291 class="right hidden-sm-only hidden-xs-only" 1291 class="right hidden-sm-only hidden-xs-only"
1292 >Date of Birth:</label> 1292 >Date of Birth:</label>
1293 <label 1293 <label
1294 class="right hidden-lg-only hidden-xl-only hidden-md-only" 1294 class="right hidden-lg-only hidden-xl-only hidden-md-only"
1295 >D.O.B:</label> 1295 >D.O.B:</label>
1296 </v-flex> 1296 </v-flex>
1297 <v-flex xs8 sm8 class="ml-3"> 1297 <v-flex xs8 sm8 class="ml-3">
1298 <v-menu 1298 <v-menu
1299 ref="menu" 1299 ref="menu"
1300 :close-on-content-click="false" 1300 :close-on-content-click="false"
1301 v-model="menu" 1301 v-model="menu"
1302 :nudge-right="40" 1302 :nudge-right="40"
1303 lazy 1303 lazy
1304 transition="scale-transition" 1304 transition="scale-transition"
1305 offset-y 1305 offset-y
1306 full-width 1306 full-width
1307 min-width="290px" 1307 min-width="290px"
1308 > 1308 >
1309 <v-text-field 1309 <v-text-field
1310 slot="activator" 1310 slot="activator"
1311 :rules="dateRules" 1311 :rules="dateRules"
1312 v-model="addStudents.date" 1312 v-model="addStudents.date"
1313 placeholder="Select date" 1313 placeholder="Select date"
1314 ></v-text-field> 1314 ></v-text-field>
1315 <v-date-picker 1315 <v-date-picker
1316 ref="picker" 1316 ref="picker"
1317 v-model="addStudents.date" 1317 v-model="addStudents.date"
1318 :max="new Date().toISOString().substr(0, 10)" 1318 :max="new Date().toISOString().substr(0, 10)"
1319 min="1950-01-01" 1319 min="1950-01-01"
1320 @input="menu = false" 1320 @input="menu = false"
1321 ></v-date-picker> 1321 ></v-date-picker>
1322 </v-menu> 1322 </v-menu>
1323 </v-flex> 1323 </v-flex>
1324 </v-layout> 1324 </v-layout>
1325 </v-flex> 1325 </v-flex>
1326 <v-flex xs12 sm6> 1326 <v-flex xs12 sm6>
1327 <v-layout> 1327 <v-layout>
1328 <v-flex xs4 class="pt-4 subheading"> 1328 <v-flex xs4 class="pt-4 subheading">
1329 <label class="right">City:</label> 1329 <label class="right">City:</label>
1330 </v-flex> 1330 </v-flex>
1331 <v-flex xs8 class="ml-3"> 1331 <v-flex xs8 class="ml-3">
1332 <v-text-field 1332 <v-text-field
1333 v-model="addStudents.city" 1333 v-model="addStudents.city"
1334 placeholder="fill your City Name" 1334 placeholder="fill your City Name"
1335 name="City" 1335 name="City"
1336 type="text" 1336 type="text"
1337 :rules="cityRules" 1337 :rules="cityRules"
1338 required 1338 required
1339 ></v-text-field> 1339 ></v-text-field>
1340 </v-flex> 1340 </v-flex>
1341 </v-layout> 1341 </v-layout>
1342 </v-flex> 1342 </v-flex>
1343 </v-layout> 1343 </v-layout>
1344 <v-layout wrap> 1344 <v-layout wrap>
1345 <v-flex xs12 sm6> 1345 <v-flex xs12 sm6>
1346 <v-layout> 1346 <v-layout>
1347 <v-flex xs4 class="pt-4 subheading"> 1347 <v-flex xs4 class="pt-4 subheading">
1348 <label class="right">State:</label> 1348 <label class="right">State:</label>
1349 </v-flex> 1349 </v-flex>
1350 <v-flex xs8 class="ml-3"> 1350 <v-flex xs8 class="ml-3">
1351 <v-text-field 1351 <v-text-field
1352 v-model="addStudents.state" 1352 v-model="addStudents.state"
1353 placeholder="fill your State Name" 1353 placeholder="fill your State Name"
1354 name="state" 1354 name="state"
1355 type="text" 1355 type="text"
1356 :rules="stateRules" 1356 :rules="stateRules"
1357 required 1357 required
1358 ></v-text-field> 1358 ></v-text-field>
1359 </v-flex> 1359 </v-flex>
1360 </v-layout> 1360 </v-layout>
1361 </v-flex> 1361 </v-flex>
1362 <v-flex xs12 sm6> 1362 <v-flex xs12 sm6>
1363 <v-layout> 1363 <v-layout>
1364 <v-flex xs4 class="pt-4 subheading"> 1364 <v-flex xs4 class="pt-4 subheading">
1365 <label class="right">Pincode:</label> 1365 <label class="right">Pincode:</label>
1366 </v-flex> 1366 </v-flex>
1367 <v-flex xs8 class="ml-3"> 1367 <v-flex xs8 class="ml-3">
1368 <v-text-field 1368 <v-text-field
1369 v-model="addStudents.pincode" 1369 v-model="addStudents.pincode"
1370 placeholder="fill your pincode" 1370 placeholder="fill your pincode"
1371 name="pincode" 1371 name="pincode"
1372 type="number" 1372 type="number"
1373 :rules="pincode" 1373 :rules="pincode"
1374 required 1374 required
1375 ></v-text-field> 1375 ></v-text-field>
1376 </v-flex> 1376 </v-flex>
1377 </v-layout> 1377 </v-layout>
1378 </v-flex> 1378 </v-flex>
1379 </v-layout> 1379 </v-layout>
1380 <v-layout wrap> 1380 <v-layout wrap>
1381 <v-flex xs12 sm6> 1381 <v-flex xs12 sm6>
1382 <v-layout> 1382 <v-layout>
1383 <v-flex xs4 class="pt-4 subheading"> 1383 <v-flex xs4 class="pt-4 subheading">
1384 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label> 1384 <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
1385 <label 1385 <label
1386 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1386 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1387 >Mobile:</label> 1387 >Mobile:</label>
1388 </v-flex> 1388 </v-flex>
1389 <v-flex xs8 class="ml-3"> 1389 <v-flex xs8 class="ml-3">
1390 <v-text-field 1390 <v-text-field
1391 v-model="addStudents.mobile" 1391 v-model="addStudents.mobile"
1392 placeholder="fill your MobileNo" 1392 placeholder="fill your MobileNo"
1393 name="mobileNo" 1393 name="mobileNo"
1394 type="number" 1394 type="number"
1395 :rules="mobileNoRules" 1395 :rules="mobileNoRules"
1396 required 1396 required
1397 ></v-text-field> 1397 ></v-text-field>
1398 </v-flex> 1398 </v-flex>
1399 </v-layout> 1399 </v-layout>
1400 </v-flex> 1400 </v-flex>
1401 <v-flex xs12 sm6> 1401 <v-flex xs12 sm6>
1402 <v-layout> 1402 <v-layout>
1403 <v-flex xs4 class="pt-4 subheading"> 1403 <v-flex xs4 class="pt-4 subheading">
1404 <label 1404 <label
1405 class="right hidden-xs-only hidden-sm-only" 1405 class="right hidden-xs-only hidden-sm-only"
1406 >Select Country:</label> 1406 >Select Country:</label>
1407 <label 1407 <label
1408 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1408 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1409 >Country:</label> 1409 >Country:</label>
1410 </v-flex> 1410 </v-flex>
1411 <v-flex xs8 class="ml-3"> 1411 <v-flex xs8 class="ml-3">
1412 <v-autocomplete 1412 <v-autocomplete
1413 v-model="addStudents.country" 1413 v-model="addStudents.country"
1414 :rules="country" 1414 :rules="country"
1415 :items="countries" 1415 :items="countries"
1416 placeholder="Select Country Name" 1416 placeholder="Select Country Name"
1417 required 1417 required
1418 ></v-autocomplete> 1418 ></v-autocomplete>
1419 </v-flex> 1419 </v-flex>
1420 </v-layout> 1420 </v-layout>
1421 </v-flex> 1421 </v-flex>
1422 </v-layout> 1422 </v-layout>
1423 <v-layout wrap> 1423 <v-layout wrap>
1424 <v-flex xs12 sm6> 1424 <v-flex xs12 sm6>
1425 <v-layout> 1425 <v-layout>
1426 <v-flex xs4 class="pt-4 subheading"> 1426 <v-flex xs4 class="pt-4 subheading">
1427 <label class="right">Gender:</label> 1427 <label class="right">Gender:</label>
1428 </v-flex> 1428 </v-flex>
1429 <v-flex xs8 class="ml-3"> 1429 <v-flex xs8 class="ml-3">
1430 <v-select 1430 <v-select
1431 :items="gender" 1431 :items="gender"
1432 v-model="addStudents.gender" 1432 v-model="addStudents.gender"
1433 :rules="genderRules" 1433 :rules="genderRules"
1434 label="Select Gender" 1434 label="Select Gender"
1435 required 1435 required
1436 ></v-select> 1436 ></v-select>
1437 </v-flex> 1437 </v-flex>
1438 </v-layout> 1438 </v-layout>
1439 </v-flex> 1439 </v-flex>
1440 <v-flex xs12 sm6> 1440 <v-flex xs12 sm6>
1441 <v-layout> 1441 <v-layout>
1442 <v-flex xs4 class="pt-4 subheading"> 1442 <v-flex xs4 class="pt-4 subheading">
1443 <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label> 1443 <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
1444 <label 1444 <label
1445 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1445 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1446 >Blood:</label> 1446 >Blood:</label>
1447 </v-flex> 1447 </v-flex>
1448 <v-flex xs8 class="ml-3"> 1448 <v-flex xs8 class="ml-3">
1449 <v-text-field 1449 <v-text-field
1450 v-model="addStudents.bloodGroup" 1450 v-model="addStudents.bloodGroup"
1451 placeholder="Fill your Blood Group" 1451 placeholder="Fill your Blood Group"
1452 required 1452 required
1453 ></v-text-field> 1453 ></v-text-field>
1454 </v-flex> 1454 </v-flex>
1455 </v-layout> 1455 </v-layout>
1456 </v-flex> 1456 </v-flex>
1457 </v-layout> 1457 </v-layout>
1458 <v-layout wrap> 1458 <v-layout wrap>
1459 <v-flex xs12 sm6> 1459 <v-flex xs12 sm6>
1460 <v-layout> 1460 <v-layout>
1461 <v-flex xs4 class="pt-4 subheading"> 1461 <v-flex xs4 class="pt-4 subheading">
1462 <label class="right">Allergies:</label> 1462 <label class="right">Allergies:</label>
1463 </v-flex> 1463 </v-flex>
1464 <v-flex xs8 class="ml-3"> 1464 <v-flex xs8 class="ml-3">
1465 <v-text-field 1465 <v-text-field
1466 v-model="addStudents.allergies" 1466 v-model="addStudents.allergies"
1467 placeholder="Fill your Allergies" 1467 placeholder="Fill your Allergies"
1468 required 1468 required
1469 ></v-text-field> 1469 ></v-text-field>
1470 </v-flex> 1470 </v-flex>
1471 </v-layout> 1471 </v-layout>
1472 </v-flex> 1472 </v-flex>
1473 <v-flex xs12 sm6> 1473 <v-flex xs12 sm6>
1474 <v-layout> 1474 <v-layout>
1475 <v-flex xs4 class="pt-4 subheading"> 1475 <v-flex xs4 class="pt-4 subheading">
1476 <label 1476 <label
1477 class="right hidden-xs-only hidden-sm-only" 1477 class="right hidden-xs-only hidden-sm-only"
1478 >Medical Notes:</label> 1478 >Medical Notes:</label>
1479 <label 1479 <label
1480 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1480 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1481 >Medical:</label> 1481 >Medical:</label>
1482 </v-flex> 1482 </v-flex>
1483 <v-flex xs8 class="ml-3"> 1483 <v-flex xs8 class="ml-3">
1484 <v-text-field 1484 <v-text-field
1485 v-model="addStudents.medicalNotes" 1485 v-model="addStudents.medicalNotes"
1486 placeholder="Fill your Medical Notes" 1486 placeholder="Fill your Medical Notes"
1487 required 1487 required
1488 ></v-text-field> 1488 ></v-text-field>
1489 </v-flex> 1489 </v-flex>
1490 </v-layout> 1490 </v-layout>
1491 </v-flex> 1491 </v-flex>
1492 </v-layout> 1492 </v-layout>
1493 <v-layout wrap> 1493 <v-layout wrap>
1494 <v-flex xs12 sm6> 1494 <v-flex xs12 sm6>
1495 <v-layout> 1495 <v-layout>
1496 <v-flex xs4 class="pt-4 subheading"> 1496 <v-flex xs4 class="pt-4 subheading">
1497 <label class="right">Height:</label> 1497 <label class="right">Height:</label>
1498 </v-flex> 1498 </v-flex>
1499 <v-flex xs8 class="ml-3"> 1499 <v-flex xs8 class="ml-3">
1500 <v-text-field 1500 <v-text-field
1501 v-model="addStudents.height" 1501 v-model="addStudents.height"
1502 placeholder="Fill your Height" 1502 placeholder="Fill your Height"
1503 required 1503 required
1504 ></v-text-field> 1504 ></v-text-field>
1505 </v-flex> 1505 </v-flex>
1506 </v-layout> 1506 </v-layout>
1507 </v-flex> 1507 </v-flex>
1508 <v-flex xs12 sm6> 1508 <v-flex xs12 sm6>
1509 <v-layout> 1509 <v-layout>
1510 <v-flex xs4 class="pt-4 subheading"> 1510 <v-flex xs4 class="pt-4 subheading">
1511 <label class="right">Weight:</label> 1511 <label class="right">Weight:</label>
1512 </v-flex> 1512 </v-flex>
1513 <v-flex xs8 class="ml-3"> 1513 <v-flex xs8 class="ml-3">
1514 <v-text-field 1514 <v-text-field
1515 v-model="addStudents.weight" 1515 v-model="addStudents.weight"
1516 placeholder="Fill your Weight" 1516 placeholder="Fill your Weight"
1517 required 1517 required
1518 ></v-text-field> 1518 ></v-text-field>
1519 </v-flex> 1519 </v-flex>
1520 </v-layout> 1520 </v-layout>
1521 </v-flex> 1521 </v-flex>
1522 </v-layout> 1522 </v-layout>
1523 <v-layout wrap> 1523 <v-layout wrap>
1524 <v-flex xs12 sm6> 1524 <v-flex xs12 sm6>
1525 <v-layout> 1525 <v-layout>
1526 <v-flex xs4 class="pt-4 subheading"> 1526 <v-flex xs4 class="pt-4 subheading">
1527 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label> 1527 <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
1528 <label 1528 <label
1529 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1529 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1530 >Uplaod :</label> 1530 >Uplaod :</label>
1531 </v-flex> 1531 </v-flex>
1532 <v-flex xs8 class="ml-3"> 1532 <v-flex xs8 class="ml-3">
1533 <v-text-field 1533 <v-text-field
1534 label="Select Image" 1534 label="Select Image"
1535 @click="pickFile" 1535 @click="pickFile"
1536 v-model="imageName" 1536 v-model="imageName"
1537 append-icon="attach_file" 1537 append-icon="attach_file"
1538 ></v-text-field> 1538 ></v-text-field>
1539 </v-flex> 1539 </v-flex>
1540 </v-layout> 1540 </v-layout>
1541 </v-flex> 1541 </v-flex>
1542 <v-flex xs12 sm6> 1542 <v-flex xs12 sm6>
1543 <v-layout> 1543 <v-layout>
1544 <v-flex xs4 class="pt-4 subheading"> 1544 <v-flex xs4 class="pt-4 subheading">
1545 <label 1545 <label
1546 class="right hidden-xs-only hidden-sm-only" 1546 class="right hidden-xs-only hidden-sm-only"
1547 >Academic Year:</label> 1547 >Academic Year:</label>
1548 <label 1548 <label
1549 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1549 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1550 >Year:</label> 1550 >Year:</label>
1551 </v-flex> 1551 </v-flex>
1552 <v-flex xs8 class="ml-3"> 1552 <v-flex xs8 class="ml-3">
1553 <v-text-field 1553 <v-text-field
1554 v-model="addStudents.establishmentYear" 1554 v-model="addStudents.establishmentYear"
1555 placeholder="fill your Academic Year" 1555 placeholder="fill your Academic Year"
1556 name="state" 1556 name="state"
1557 type="number" 1557 type="number"
1558 :rules="establishmentYearRules" 1558 :rules="establishmentYearRules"
1559 required 1559 required
1560 ></v-text-field> 1560 ></v-text-field>
1561 </v-flex> 1561 </v-flex>
1562 </v-layout> 1562 </v-layout>
1563 </v-flex> 1563 </v-flex>
1564 </v-layout> 1564 </v-layout>
1565 <v-layout wrap> 1565 <v-layout wrap>
1566 <v-flex xs12 sm6> 1566 <v-flex xs12 sm6>
1567 <v-layout> 1567 <v-layout>
1568 <v-flex xs4 class="pt-4 subheading"> 1568 <v-flex xs4 class="pt-4 subheading">
1569 <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label> 1569 <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
1570 <label 1570 <label
1571 class="right hidden-lg-only hidden-md-only hidden-xl-only" 1571 class="right hidden-lg-only hidden-md-only hidden-xl-only"
1572 >Roll No:</label> 1572 >Roll No:</label>
1573 </v-flex> 1573 </v-flex>
1574 <v-flex xs8 class="ml-3"> 1574 <v-flex xs8 class="ml-3">
1575 <v-text-field 1575 <v-text-field
1576 v-model="addStudents.rollNo" 1576 v-model="addStudents.rollNo"
1577 placeholder="Fill your Roll Number" 1577 placeholder="Fill your Roll Number"
1578 required 1578 required
1579 ></v-text-field> 1579 ></v-text-field>
1580 </v-flex> 1580 </v-flex>
1581 </v-layout> 1581 </v-layout>
1582 </v-flex> 1582 </v-flex>
1583 <v-flex xs12 sm6 class="hidden-xs-only hidden-sm-only"> 1583 <v-flex xs12 sm6 class="hidden-xs-only hidden-sm-only">
1584 <v-layout> 1584 <v-layout>
1585 <v-flex xs4 sm4 class="pt-4 subheading"> 1585 <v-flex xs4 sm4 class="pt-4 subheading">
1586 <label class="right pr-4">Present Address:</label> 1586 <label class="right pr-4">Present Address:</label>
1587 </v-flex> 1587 </v-flex>
1588 <v-flex xs8 sm8 class="ml-3"> 1588 <v-flex xs8 sm8 class="ml-3">
1589 <v-text-field 1589 <v-text-field
1590 name="input-4-3" 1590 name="input-4-3"
1591 v-model="addStudents.presentAddress" 1591 v-model="addStudents.presentAddress"
1592 :rules="presentAddress" 1592 :rules="presentAddress"
1593 placeholder="fill Your present Address" 1593 placeholder="fill Your present Address"
1594 required 1594 required
1595 ></v-text-field> 1595 ></v-text-field>
1596 </v-flex> 1596 </v-flex>
1597 </v-layout> 1597 </v-layout>
1598 </v-flex> 1598 </v-flex>
1599 </v-layout> 1599 </v-layout>
1600 <v-layout class="hidden-xs-only hidden-sm-only" wrap> 1600 <v-layout class="hidden-xs-only hidden-sm-only" wrap>
1601 <v-flex xs12 sm6> 1601 <v-flex xs12 sm6>
1602 <v-layout> 1602 <v-layout>
1603 <v-flex xs4 sm4 class="pt-4 subheading addressForm"> 1603 <v-flex xs4 sm4 class="pt-4 subheading addressForm">
1604 <label class="right">Permanent Address:</label> 1604 <label class="right">Permanent Address:</label>
1605 </v-flex> 1605 </v-flex>
1606 <v-flex xs12 sm8 class="ml-3"> 1606 <v-flex xs12 sm8 class="ml-3">
1607 <v-text-field 1607 <v-text-field
1608 name="input-4-3" 1608 name="input-4-3"
1609 v-model="addStudents.permanentAddress" 1609 v-model="addStudents.permanentAddress"
1610 :rules="permanentAddress" 1610 :rules="permanentAddress"
1611 placeholder="fill Your Permanent Address" 1611 placeholder="fill Your Permanent Address"
1612 required 1612 required
1613 ></v-text-field> 1613 ></v-text-field>
1614 </v-flex> 1614 </v-flex>
1615 </v-layout> 1615 </v-layout>
1616 </v-flex> 1616 </v-flex>
1617 </v-layout> 1617 </v-layout>
1618 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap> 1618 <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
1619 <v-flex xs12 sm12> 1619 <v-flex xs12 sm12>
1620 <v-layout> 1620 <v-layout>
1621 <v-flex xs12 sm12 class="pt-4 subheading text-xs-center"> 1621 <v-flex xs12 sm12 class="pt-4 subheading text-xs-center">
1622 <label class>Present Address :</label> 1622 <label class>Present Address :</label>
1623 </v-flex> 1623 </v-flex>
1624 </v-layout> 1624 </v-layout>
1625 <v-layout> 1625 <v-layout>
1626 <v-flex xs12 sm12> 1626 <v-flex xs12 sm12>
1627 <v-textarea 1627 <v-textarea
1628 name="input-4-3" 1628 name="input-4-3"
1629 v-model="addStudents.presentAddress" 1629 v-model="addStudents.presentAddress"
1630 :rules="presentAddress" 1630 :rules="presentAddress"
1631 placeholder="fill Your present Address" 1631 placeholder="fill Your present Address"
1632 required 1632 required
1633 ></v-textarea> 1633 ></v-textarea>
1634 </v-flex> 1634 </v-flex>
1635 </v-layout> 1635 </v-layout>
1636 </v-flex> 1636 </v-flex>
1637 <v-flex xs12 sm12> 1637 <v-flex xs12 sm12>
1638 <v-layout> 1638 <v-layout>
1639 <v-flex 1639 <v-flex
1640 xs12 1640 xs12
1641 sm12 1641 sm12
1642 class="pt-4 pr-4 subheading text-xs-center addressForm" 1642 class="pt-4 pr-4 subheading text-xs-center addressForm"
1643 > 1643 >
1644 <label>Permanent addr:</label> 1644 <label>Permanent addr:</label>
1645 </v-flex> 1645 </v-flex>
1646 </v-layout> 1646 </v-layout>
1647 <v-layout> 1647 <v-layout>
1648 <v-flex xs12 sm12> 1648 <v-flex xs12 sm12>
1649 <v-textarea 1649 <v-textarea
1650 name="input-4-3" 1650 name="input-4-3"
1651 v-model="addStudents.permanentAddress" 1651 v-model="addStudents.permanentAddress"
1652 :rules="permanentAddress" 1652 :rules="permanentAddress"
1653 placeholder="fill Your Permanent Address" 1653 placeholder="fill Your Permanent Address"
1654 required 1654 required
1655 ></v-textarea> 1655 ></v-textarea>
1656 </v-flex> 1656 </v-flex>
1657 </v-layout> 1657 </v-layout>
1658 </v-flex> 1658 </v-flex>
1659 </v-layout> 1659 </v-layout>
1660 <v-layout> 1660 <v-layout>
1661 <v-flex xs12 sm12> 1661 <v-flex xs12 sm12>
1662 <v-layout> 1662 <v-layout>
1663 <v-flex xs6> 1663 <v-flex xs6>
1664 <v-btn round dark @click="e2 = 1">Back</v-btn> 1664 <v-btn round dark @click="e2 = 1">Back</v-btn>
1665 </v-flex> 1665 </v-flex>
1666 <v-flex xs6> 1666 <v-flex xs6>
1667 <v-btn 1667 <v-btn
1668 @click="submit" 1668 @click="submit"
1669 round 1669 round
1670 dark 1670 dark
1671 :loading="loading" 1671 :loading="loading"
1672 class="right" 1672 class="right"
1673 >Add</v-btn> 1673 >Add</v-btn>
1674 </v-flex> 1674 </v-flex>
1675 </v-layout> 1675 </v-layout>
1676 </v-flex> 1676 </v-flex>
1677 </v-layout> 1677 </v-layout>
1678 </v-form> 1678 </v-form>
1679 </v-flex> 1679 </v-flex>
1680 </v-stepper-content> 1680 </v-stepper-content>
1681 </v-stepper-items> 1681 </v-stepper-items>
1682 </v-stepper> 1682 </v-stepper>
1683 </v-app> 1683 </v-app>
1684 </div> 1684 </div>
1685 </v-flex> 1685 </v-flex>
1686 </v-layout> 1686 </v-layout>
1687 </v-container> 1687 </v-container>
1688 </v-tab-item> 1688 </v-tab-item>
1689 </v-tabs> 1689 </v-tabs>
1690 <div class="loader" v-if="showLoader"> 1690 <div class="loader" v-if="showLoader">
1691 <v-progress-circular indeterminate color="white"></v-progress-circular> 1691 <v-progress-circular indeterminate color="white"></v-progress-circular>
1692 </div> 1692 </div>
1693 </div> 1693 </div>
1694 </template> 1694 </template>
1695 1695
1696 <script> 1696 <script>
1697 import http from "@/Services/http.js"; 1697 import http from "@/Services/http.js";
1698 import moment from "moment"; 1698 import moment from "moment";
1699 import countryList from "@/script/country.js"; 1699 import countryList from "@/script/country.js";
1700 import parent from '@/script/parents.js'
1700 1701
1701 export default { 1702 export default {
1702 data: () => ({ 1703 data: () => ({
1703 e2: 0, 1704 e2: 0,
1704 showParent: true, 1705 showParent: true,
1705 showNext: false, 1706 showNext: false,
1706 snackbar: false, 1707 snackbar: false,
1707 y: "top", 1708 y: "top",
1708 x: "right", 1709 x: "right",
1709 mode: "", 1710 mode: "",
1710 timeout: 3000, 1711 timeout: 3000,
1711 text: "", 1712 text: "",
1712 showLoader: false, 1713 showLoader: false,
1713 loading: false, 1714 loading: false,
1714 date: null, 1715 date: null,
1715 search: "", 1716 search: "",
1716 menu: false, 1717 menu: false,
1717 menu1: false, 1718 menu1: false,
1718 dialog: false, 1719 dialog: false,
1719 dialog1: false, 1720 dialog1: false,
1720 valid: true, 1721 valid: true,
1721 isActive: true, 1722 isActive: true,
1722 newActive: false, 1723 newActive: false,
1723 addclass: [], 1724 addclass: [],
1724 addSection: [], 1725 addSection: [],
1725 gender: ["Male", "Female"], 1726 gender: ["Male", "Female"],
1726 pagination: { 1727 pagination: {
1727 rowsPerPage: 15 1728 rowsPerPage: 15
1728 }, 1729 },
1729 imageData: {}, 1730 imageData: {},
1730 imageName: "", 1731 imageName: "",
1731 imageUrl: "", 1732 imageUrl: "",
1732 imageFile: "", 1733 imageFile: "",
1733 nameRules: [v => !!v || " Full Name is required"], 1734 nameRules: [v => !!v || " Full Name is required"],
1734 dateRules: [v => !!v || " DOB is required"], 1735 dateRules: [v => !!v || " DOB is required"],
1735 cityRules: [v => !!v || " City Name is required"], 1736 cityRules: [v => !!v || " City Name is required"],
1736 pincode: [v => !!v || " Pincode is required"], 1737 pincode: [v => !!v || " Pincode is required"],
1737 country: [v => !!v || " Country Name is required"], 1738 country: [v => !!v || " Country Name is required"],
1738 permanentAddress: [v => !!v || " Permanent Address is required"], 1739 permanentAddress: [v => !!v || " Permanent Address is required"],
1739 presentAddress: [v => !!v || " Present Address is required"], 1740 presentAddress: [v => !!v || " Present Address is required"],
1740 mobileNoRules: [v => !!v || "Mobile Number is required"], 1741 mobileNoRules: [v => !!v || "Mobile Number is required"],
1741 stateRules: [v => !!v || "State Name is required"], 1742 stateRules: [v => !!v || "State Name is required"],
1742 classRules: [v => !!v || " Class Name is required"], 1743 classRules: [v => !!v || " Class Name is required"],
1743 sectionRules: [v => !!v || " Section Name is required"], 1744 sectionRules: [v => !!v || " Section Name is required"],
1744 genderRules: [v => !!v || " Select Gender is required"], 1745 genderRules: [v => !!v || " Select Gender is required"],
1745 fatherNameRules: [v => !!v || " Father Name is required"], 1746 fatherNameRules: [v => !!v || " Father Name is required"],
1746 fatheCellNoRules: [v => !!v || " father Cell Number is required"], 1747 fatheCellNoRules: [v => !!v || " father Cell Number is required"],
1747 motherNameRules: [v => !!v || " Mother Name is required"], 1748 motherNameRules: [v => !!v || " Mother Name is required"],
1748 motherCellNoRules: [v => !!v || " Mother Cell Number is required"], 1749 motherCellNoRules: [v => !!v || " Mother Cell Number is required"],
1749 establishmentYearRules: [v => !!v || " Academic Year is required"], 1750 establishmentYearRules: [v => !!v || " Academic Year is required"],
1750 errorMessages: "", 1751 errorMessages: "",
1751 emailRules: [ 1752 emailRules: [
1752 v => !!v || "E-mail is required", 1753 v => !!v || "E-mail is required",
1753 v => 1754 v =>
1754 /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) || 1755 /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(v) ||
1755 "E-mail must be valid" 1756 "E-mail must be valid"
1756 ], 1757 ],
1757 countries: [], 1758 countries: [],
1758 headers: [ 1759 headers: [
1759 { 1760 {
1760 text: "Roll No.", 1761 text: "Roll No.",
1761 align: "center", 1762 align: "center",
1762 sortable: false, 1763 sortable: false,
1763 value: "rollNo" 1764 value: "rollNo"
1764 }, 1765 },
1765 { 1766 {
1766 text: "Profile Pic", 1767 text: "Profile Pic",
1767 value: "profilePicUrl", 1768 value: "profilePicUrl",
1768 sortable: false, 1769 sortable: false,
1769 align: "center" 1770 align: "center"
1770 }, 1771 },
1771 { text: "Name", value: "name", sortable: false, align: "center" }, 1772 { text: "Name", value: "name", sortable: false, align: "center" },
1772 { text: "Email", value: "email", sortable: false, align: "center" }, 1773 { text: "Email", value: "email", sortable: false, align: "center" },
1773 { text: "Dob", value: "dob", sortable: false, align: "center" }, 1774 { text: "Dob", value: "dob", sortable: false, align: "center" },
1774 { text: "Gender", value: "gender", sortable: false, align: "center" }, 1775 { text: "Gender", value: "gender", sortable: false, align: "center" },
1775 { 1776 {
1776 text: "Father Name", 1777 text: "Father Name",
1777 value: "fatherName", 1778 value: "fatherName",
1778 sortable: false, 1779 sortable: false,
1779 align: "center" 1780 align: "center"
1780 }, 1781 },
1781 { 1782 {
1782 text: "Mother Name", 1783 text: "Mother Name",
1783 value: "motherName", 1784 value: "motherName",
1784 sortable: false, 1785 sortable: false,
1785 align: "center" 1786 align: "center"
1786 }, 1787 },
1787 { 1788 {
1788 text: "Academic Year", 1789 text: "Academic Year",
1789 value: "establishmentYear", 1790 value: "establishmentYear",
1790 sortable: false, 1791 sortable: false,
1791 align: "center" 1792 align: "center"
1792 }, 1793 },
1793 { text: "Mobile No", value: "mobile", sortable: false, align: "center" }, 1794 { text: "Mobile No", value: "mobile", sortable: false, align: "center" },
1794 { text: "Action", value: "", sortable: false, align: "center" } 1795 { text: "Action", value: "", sortable: false, align: "center" }
1795 ], 1796 ],
1796 desserts: [], 1797 desserts: [],
1797 parentId: "", 1798 parentId: "",
1798 editedIndex: -1, 1799 editedIndex: -1,
1799 parentData: {}, 1800 parentData: {},
1800 addStudents: { 1801 addStudents: {
1801 role: "STUDENT", 1802 role: "STUDENT",
1802 name: "", 1803 name: "",
1803 email: "", 1804 email: "",
1804 date: "", 1805 date: "",
1805 city: "", 1806 city: "",
1806 pincode: "", 1807 pincode: "",
1807 country: "", 1808 country: "",
1808 permanentAddress: "", 1809 permanentAddress: "",
1809 presentAddress: "", 1810 presentAddress: "",
1810 mobile: "", 1811 mobile: "",
1811 state: "", 1812 state: "",
1812 gender: "", 1813 gender: "",
1813 select: "", 1814 select: "",
1814 selectSection: "", 1815 selectSection: "",
1815 bloodGroup: "", 1816 bloodGroup: "",
1816 allergies: "", 1817 allergies: "",
1817 medicalNotes: "", 1818 medicalNotes: "",
1818 height: "", 1819 height: "",
1819 weight: "", 1820 weight: "",
1820 rollNo: "", 1821 rollNo: "",
1821 establishmentYear: new Date().getFullYear() 1822 establishmentYear: new Date().getFullYear()
1822 }, 1823 },
1823 selectStudents: { 1824 selectStudents: {
1824 select: "", 1825 select: "",
1825 selectSection: "" 1826 selectSection: ""
1826 }, 1827 },
1827 editedItem: { 1828 editedItem: {
1828 role: "STUDENT", 1829 role: "STUDENT",
1829 name: "", 1830 name: "",
1830 email: "", 1831 email: "",
1831 dob: "", 1832 dob: "",
1832 city: "", 1833 city: "",
1833 pincode: "", 1834 pincode: "",
1834 country: "", 1835 country: "",
1835 permanentAddress: "", 1836 permanentAddress: "",
1836 presentAddress: "", 1837 presentAddress: "",
1837 mobile: "", 1838 mobile: "",
1838 state: "", 1839 state: "",
1839 gender: "", 1840 gender: "",
1840 select: "", 1841 select: "",
1841 selectSection: "", 1842 selectSection: "",
1842 bloodGroup: "", 1843 bloodGroup: "",
1843 allergies: "", 1844 allergies: "",
1844 medicalNotes: "", 1845 medicalNotes: "",
1845 height: "", 1846 height: "",
1846 weight: "", 1847 weight: "",
1847 rollNo: "", 1848 rollNo: "",
1848 establishmentYear: new Date().getFullYear() 1849 establishmentYear: new Date().getFullYear()
1849 } 1850 }
1850 }), 1851 }),
1851 watch: { 1852 watch: {
1852 menu(val) { 1853 menu(val) {
1853 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR")); 1854 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
1854 }, 1855 },
1855 menu1(val) { 1856 menu1(val) {
1856 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR")); 1857 val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
1857 } 1858 }
1858 }, 1859 },
1859 methods: { 1860 methods: {
1860 findStudents() { 1861 findStudents() {
1861 this.showLoader = true; 1862 this.showLoader = true;
1862 http() 1863 http()
1863 .get("/getStudentWithClass", { 1864 .get("/getStudentWithClass", {
1864 params: { 1865 params: {
1865 classId: this.selectStudents.select, 1866 classId: this.selectStudents.select,
1866 sectionId: this.selectStudents.selectSection 1867 sectionId: this.selectStudents.selectSection
1867 } 1868 }
1868 }) 1869 })
1869 .then(response => { 1870 .then(response => {
1870 this.desserts = response.data.data; 1871 this.desserts = response.data.data;
1871 this.showLoader = false; 1872 this.showLoader = false;
1872 console.log("getSectionsList=====>", this.addSection); 1873 console.log("getSectionsList=====>", this.addSection);
1873 }) 1874 })
1874 .catch(err => { 1875 .catch(err => {
1875 console.log("err====>", err); 1876 console.log("err====>", err);
1876 this.showLoader = false; 1877 this.showLoader = false;
1877 }); 1878 });
1878 }, 1879 },
1879 getSections(_id) { 1880 getSections(_id) {
1880 var token = this.$store.state.token; 1881 var token = this.$store.state.token;
1881 this.showLoader = true; 1882 this.showLoader = true;
1882 http() 1883 http()
1883 .get( 1884 .get(
1884 "/getSectionsList", 1885 "/getSectionsList",
1885 { params: { classId: _id } }, 1886 { params: { classId: _id } },
1886 { 1887 {
1887 headers: { Authorization: "Bearer " + token } 1888 headers: { Authorization: "Bearer " + token }
1888 } 1889 }
1889 ) 1890 )
1890 .then(response => { 1891 .then(response => {
1891 this.addSection = response.data.data; 1892 this.addSection = response.data.data;
1892 this.showLoader = false; 1893 this.showLoader = false;
1893 // console.log("getSectionsList=====>", this.addSection); 1894 // console.log("getSectionsList=====>", this.addSection);
1894 }) 1895 })
1895 .catch(err => { 1896 .catch(err => {
1896 this.showLoader = false; 1897 this.showLoader = false;
1897 // console.log("err====>", err); 1898 // console.log("err====>", err);
1898 // this.$router.replace({ path: '/' }); 1899 // this.$router.replace({ path: '/' });
1899 }); 1900 });
1900 }, 1901 },
1901 getSection(_id) { 1902 getSection(_id) {
1902 var token = this.$store.state.token; 1903 var token = this.$store.state.token;
1903 this.showLoader = true; 1904 this.showLoader = true;
1904 http() 1905 http()
1905 .get( 1906 .get(
1906 "/getSectionsList", 1907 "/getSectionsList",
1907 { params: { classId: _id } }, 1908 { params: { classId: _id } },
1908 { 1909 {
1909 headers: { Authorization: "Bearer " + token } 1910 headers: { Authorization: "Bearer " + token }
1910 } 1911 }
1911 ) 1912 )
1912 .then(response => { 1913 .then(response => {
1913 this.addSection = response.data.data; 1914 this.addSection = response.data.data;
1914 this.showLoader = false; 1915 this.showLoader = false;
1915 // console.log("getSectionsList=====>", this.addSection); 1916 // console.log("getSectionsList=====>", this.addSection);
1916 }) 1917 })
1917 .catch(err => { 1918 .catch(err => {
1918 this.showLoader = false; 1919 this.showLoader = false;
1919 // console.log("err====>", err); 1920 // console.log("err====>", err);
1920 // this.$router.replace({ path: '/' }); 1921 // this.$router.replace({ path: '/' });
1921 }); 1922 });
1922 }, 1923 },
1923 pickFile() { 1924 pickFile() {
1924 this.$refs.image.click(); 1925 this.$refs.image.click();
1925 }, 1926 },
1926 dates: function(date) { 1927 dates: function(date) {
1927 return moment(date).format("MMMM DD, YYYY"); 1928 return moment(date).format("MMMM DD, YYYY");
1928 }, 1929 },
1929 onFilePicked(e) { 1930 onFilePicked(e) {
1930 // console.log(e) 1931 // console.log(e)
1931 const files = e.target.files; 1932 const files = e.target.files;
1932 this.imageData.upload = e.target.files[0]; 1933 this.imageData.upload = e.target.files[0];
1933 if (files[0] !== undefined) { 1934 if (files[0] !== undefined) {
1934 this.imageName = files[0].name; 1935 this.imageName = files[0].name;
1935 if (this.imageName.lastIndexOf(".") <= 0) { 1936 if (this.imageName.lastIndexOf(".") <= 0) {
1936 return; 1937 return;
1937 } 1938 }
1938 const fr = new FileReader(); 1939 const fr = new FileReader();
1939 fr.readAsDataURL(files[0]); 1940 fr.readAsDataURL(files[0]);
1940 fr.addEventListener("load", () => { 1941 fr.addEventListener("load", () => {
1941 this.imageUrl = fr.result; 1942 this.imageUrl = fr.result;
1942 this.imageFile = files[0]; // this is an image file that can be sent to server... 1943 this.imageFile = files[0]; // this is an image file that can be sent to server...
1943 this.imageData.imageUrl = URL.createObjectURL(this.imageFile); 1944 this.imageData.imageUrl = URL.createObjectURL(this.imageFile);
1944 }); 1945 });
1945 } else { 1946 } else {
1946 this.imageName = ""; 1947 this.imageName = "";
1947 this.imageFile = ""; 1948 this.imageFile = "";
1948 this.imageUrl = ""; 1949 this.imageUrl = "";
1949 } 1950 }
1950 }, 1951 },
1951 // getStudentList() { 1952 // getStudentList() {
1952 // this.showLoader = true; 1953 // this.showLoader = true;
1953 // var token = this.$store.state.token; 1954 // var token = this.$store.state.token;
1954 // http() 1955 // http()
1955 // .get("/getStudentsList", { 1956 // .get("/getStudentsList", {
1956 // headers: { Authorization: "Bearer " + token } 1957 // headers: { Authorization: "Bearer " + token }
1957 // }) 1958 // })
1958 // .then(response => { 1959 // .then(response => {
1959 // this.desserts = response.data.data; 1960 // this.desserts = response.data.data;
1960 // this.showLoader = false; 1961 // this.showLoader = false;
1961 // // console.log("getStudentList=====>",this.desserts) 1962 // // console.log("getStudentList=====>",this.desserts)
1962 // }) 1963 // })
1963 // .catch(err => { 1964 // .catch(err => {
1964 // // console.log("err====>", err); 1965 // // console.log("err====>", err);
1965 // this.showLoader = false; 1966 // this.showLoader = false;
1966 // this.$router.replace({ path: "/" }); 1967 // this.$router.replace({ path: "/" });
1967 // }); 1968 // });
1968 // }, 1969 // },
1969 editItem(item) { 1970 editItem(item) {
1970 this.editedIndex = this.desserts.indexOf(item); 1971 this.editedIndex = this.desserts.indexOf(item);
1971 this.editedItem = Object.assign({}, item); 1972 this.editedItem = Object.assign({}, item);
1972 this.editedItem.fatherName = item.parentId.fatherName; 1973 this.editedItem.fatherName = item.parentId.fatherName;
1973 this.editedItem.fatherCellNo = item.parentId.fatherCellNo; 1974 this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
1974 this.editedItem.motherName = item.parentId.motherName; 1975 this.editedItem.motherName = item.parentId.motherName;
1975 this.editedItem.motherCellNo = item.parentId.motherCellNo; 1976 this.editedItem.motherCellNo = item.parentId.motherCellNo;
1976 this.editedItem.dob = 1977 this.editedItem.dob =
1977 this.editedItem.dob != undefined 1978 this.editedItem.dob != undefined
1978 ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10)) 1979 ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10))
1979 : (this.editedItem.dob = ""); 1980 : (this.editedItem.dob = "");
1980 this.dialog = true; 1981 this.dialog = true;
1981 }, 1982 },
1982 profile(item) { 1983 profile(item) {
1983 console.log("item", item); 1984 console.log("item", item);
1984 this.editedIndex = this.desserts.indexOf(item); 1985 this.editedIndex = this.desserts.indexOf(item);
1985 this.editedItem = Object.assign({}, item); 1986 this.editedItem = Object.assign({}, item);
1986 this.editedItem.fatherName = item.parentId.fatherName; 1987 this.editedItem.fatherName = item.parentId.fatherName;
1987 this.editedItem.fatherCellNo = item.parentId.fatherCellNo; 1988 this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
1988 this.editedItem.motherName = item.parentId.motherName; 1989 this.editedItem.motherName = item.parentId.motherName;
1989 this.editedItem.motherCellNo = item.parentId.motherCellNo; 1990 this.editedItem.motherCellNo = item.parentId.motherCellNo;
1990 1991
1991 this.dialog1 = true; 1992 this.dialog1 = true;
1992 }, 1993 },
1993 deleteItem(item) { 1994 deleteItem(item) {
1994 let deleteStudent = { 1995 let deleteStudent = {
1995 studentId: item._id 1996 studentId: item._id
1996 }; 1997 };
1997 http() 1998 http()
1998 .delete( 1999 .delete(
1999 "/deleteStudent", 2000 "/deleteStudent",
2000 confirm("Are you sure you want to delete this?") && { 2001 confirm("Are you sure you want to delete this?") && {
2001 params: deleteStudent 2002 params: deleteStudent
2002 } 2003 }
2003 ) 2004 )
2004 .then(response => { 2005 .then(response => {
2005 // console.log("deleteUers",deleteStudent) 2006 // console.log("deleteUers",deleteStudent)
2006 if ((this.snackbar = true)) { 2007 if ((this.snackbar = true)) {
2007 this.text = "Successfully delete Existing Student"; 2008 this.text = "Successfully delete Existing Student";
2008 } 2009 }
2009 this.getStudentList(); 2010 this.getStudentList();
2010 }) 2011 })
2011 .catch(error => { 2012 .catch(error => {
2012 // console.log(error); 2013 // console.log(error);
2013 }); 2014 });
2014 }, 2015 },
2015 activeTab(type) { 2016 activeTab(type) {
2016 switch (type) { 2017 switch (type) {
2017 case "existing": 2018 case "existing":
2018 this.newActive = false; 2019 this.newActive = false;
2019 this.isActive = true; 2020 this.isActive = true;
2020 break; 2021 break;
2021 2022
2022 default: 2023 default:
2023 this.newActive = true; 2024 this.newActive = true;
2024 this.isActive = false; 2025 this.isActive = false;
2025 break; 2026 break;
2026 } 2027 }
2027 }, 2028 },
2028 close() { 2029 close() {
2029 this.dialog = false; 2030 this.dialog = false;
2030 setTimeout(() => { 2031 setTimeout(() => {
2031 this.editedItem = Object.assign({}, this.defaultItem); 2032 this.editedItem = Object.assign({}, this.defaultItem);
2032 this.editedIndex = -1; 2033 this.editedIndex = -1;
2033 }, 300); 2034 }, 300);
2034 }, 2035 },
2035 close1() { 2036 close1() {
2036 this.dialog1 = false; 2037 this.dialog1 = false;
2037 }, 2038 },
2038 submit() { 2039 submit() {
2039 if (this.$refs.form.validate()) { 2040 if (this.$refs.form.validate()) {
2040 let addStudent = { 2041 let addStudent = {
2041 parentId: this.parentId, 2042 parentId: this.parentId,
2042 name: this.addStudents.name, 2043 name: this.addStudents.name,
2043 email: this.addStudents.email, 2044 email: this.addStudents.email,
2044 role: this.addStudents.role, 2045 role: this.addStudents.role,
2045 dob: this.addStudents.date, 2046 dob: this.addStudents.date,
2046 city: this.addStudents.city, 2047 city: this.addStudents.city,
2047 pincode: this.addStudents.pincode, 2048 pincode: this.addStudents.pincode,
2048 country: this.addStudents.country, 2049 country: this.addStudents.country,
2049 permanentAddress: this.addStudents.permanentAddress, 2050 permanentAddress: this.addStudents.permanentAddress,
2050 presentAddress: this.addStudents.presentAddress, 2051 presentAddress: this.addStudents.presentAddress,
2051 mobile: this.addStudents.mobile, 2052 mobile: this.addStudents.mobile,
2052 state: this.addStudents.state, 2053 state: this.addStudents.state,
2053 gender: this.addStudents.gender, 2054 gender: this.addStudents.gender,
2054 establishmentYear: this.addStudents.establishmentYear, 2055 establishmentYear: this.addStudents.establishmentYear,
2055 classId: this.addStudents.select, 2056 classId: this.addStudents.select,
2056 sectionId: this.addStudents.selectSection, 2057 sectionId: this.addStudents.selectSection,
2057 bloodGroup: this.addStudents.bloodGroup, 2058 bloodGroup: this.addStudents.bloodGroup,
2058 allergies: this.addStudents.allergies, 2059 allergies: this.addStudents.allergies,
2059 medicalNotes: this.addStudents.medicalNotes, 2060 medicalNotes: this.addStudents.medicalNotes,
2060 height: this.addStudents.height, 2061 height: this.addStudents.height,
2061 weight: this.addStudents.weight, 2062 weight: this.addStudents.weight,
2062 rollNo: this.addStudents.rollNo 2063 rollNo: this.addStudents.rollNo
2063 }; 2064 };
2064 if (this.imageUrl) { 2065 if (this.imageUrl) {
2065 var str = this.imageUrl; 2066 var str = this.imageUrl;
2066 const [baseUrl, imageUrl] = str.split(/,/); 2067 const [baseUrl, imageUrl] = str.split(/,/);
2067 addStudent.upload = imageUrl; 2068 addStudent.upload = imageUrl;
2068 } 2069 }
2069 this.loading = true; 2070 this.loading = true;
2070 http() 2071 http()
2071 .post("/createStudent", addStudent) 2072 .post("/createStudent", addStudent)
2072 .then(response => { 2073 .then(response => {
2073 console.log(addStudent); 2074 console.log(addStudent);
2074 if ((this.snackbar = true)) { 2075 if ((this.snackbar = true)) {
2075 this.text = "New Student added successfully"; 2076 this.text = "New Student added successfully";
2076 } 2077 }
2077 // this.getStudentList(); 2078 // this.getStudentList();
2078 this.clear(); 2079 this.clear();
2079 this.loading = false; 2080 this.loading = false;
2080 }) 2081 })
2081 .catch(error => { 2082 .catch(error => {
2082 // console.log(error); 2083 // console.log(error);
2083 if ((this.snackbar = true)) { 2084 if ((this.snackbar = true)) {
2084 this.text = error.response.data.message; 2085 this.text = error.response.data.message;
2085 } 2086 }
2086 this.loading = false; 2087 this.loading = false;
2087 }); 2088 });
2088 } 2089 }
2089 }, 2090 },
2090 clear() { 2091 clear() {
2091 this.$refs.form.reset(); 2092 this.$refs.form.reset();
2092 this.imageUrl = ""; 2093 this.imageUrl = "";
2093 }, 2094 },
2094 save() { 2095 save() {
2095 let editStudent = { 2096 let editStudent = {
2096 studentId: this.editedItem._id, 2097 studentId: this.editedItem._id,
2097 name: this.editedItem.name, 2098 name: this.editedItem.name,
2098 email: this.editedItem.email, 2099 email: this.editedItem.email,
2099 role: this.editedItem.role, 2100 role: this.editedItem.role,
2100 dob: this.editedItem.dob, 2101 dob: this.editedItem.dob,
2101 city: this.editedItem.city, 2102 city: this.editedItem.city,
2102 pincode: this.editedItem.pincode, 2103 pincode: this.editedItem.pincode,
2103 country: this.editedItem.country, 2104 country: this.editedItem.country,
2104 permanentAddress: this.editedItem.permanentAddress, 2105 permanentAddress: this.editedItem.permanentAddress,
2105 presentAddress: this.editedItem.presentAddress, 2106 presentAddress: this.editedItem.presentAddress,
2106 mobile: this.editedItem.mobile, 2107 mobile: this.editedItem.mobile,
2107 state: this.editedItem.state, 2108 state: this.editedItem.state,
2108 gender: this.editedItem.gender, 2109 gender: this.editedItem.gender,
2109 establishmentYear: this.editedItem.establishmentYear, 2110 establishmentYear: this.editedItem.establishmentYear,
2110 classId: this.editedItem.select, 2111 classId: this.editedItem.select,
2111 sectionId: this.editedItem.selectSection, 2112 sectionId: this.editedItem.selectSection,
2112 bloodGroup: this.editedItem.bloodGroup, 2113 bloodGroup: this.editedItem.bloodGroup,
2113 allergies: this.editedItem.allergies, 2114 allergies: this.editedItem.allergies,
2114 medicalNotes: this.editedItem.medicalNotes, 2115 medicalNotes: this.editedItem.medicalNotes,
2115 height: this.editedItem.height, 2116 height: this.editedItem.height,
2116 weight: this.editedItem.weight, 2117 weight: this.editedItem.weight,
2117 rollNo: this.editedItem.rollNo 2118 rollNo: this.editedItem.rollNo
2118 }; 2119 };
2119 if (this.imageUrl) { 2120 if (this.imageUrl) {
2120 var str = this.imageUrl; 2121 var str = this.imageUrl;
2121 const [baseUrl, imageUrl] = str.split(/,/); 2122 const [baseUrl, imageUrl] = str.split(/,/);
2122 editStudent.upload = imageUrl; 2123 editStudent.upload = imageUrl;
2123 } 2124 }
2124 http() 2125 http()
2125 .put("/updateStudent", editStudent) 2126 .put("/updateStudent", editStudent)
2126 .then(response => { 2127 .then(response => {
2127 this.snackbar = true; 2128 this.snackbar = true;
2128 this.text = "Successfully Student Existing User"; 2129 this.text = "Successfully Student Existing User";
2129 this.imageUrl = ""; 2130 this.imageUrl = "";
2130 this.findStudents(); 2131 this.findStudents();
2131 this.close(); 2132 this.close();
2132 }) 2133 })
2133 .catch(error => { 2134 .catch(error => {
2134 // console.log(error); 2135 // console.log(error);
2135 if ((this.snackbar = true)) { 2136 if ((this.snackbar = true)) {
2136 this.text = error.response.data.statusText; 2137 this.text = error.response.data.statusText;
2137 } 2138 }
2138 }); 2139 });
2139 }, 2140 },
2140 submitParentDetails() { 2141 submitParentDetails() {
2141 if (this.$refs.parentForm.validate()) { 2142 if (this.$refs.parentForm.validate()) {
2142 let addparentDetails = { 2143 let addparentDetails = {
2143 email: this.parentData.email, 2144 email: this.parentData.email,
2144 fatherName: this.parentData.fatherName, 2145 fatherName: this.parentData.fatherName,
2145 fatherCellNo: this.parentData.fatherCellNo, 2146 fatherCellNo: this.parentData.fatherCellNo,
2146 motherName: this.parentData.motherName, 2147 motherName: this.parentData.motherName,
2147 motherCellNo: this.parentData.motherCellNo, 2148 motherCellNo: this.parentData.motherCellNo,
2148 role: "PARENT" 2149 role: "PARENT"
2149 }; 2150 };
2150 this.loading = true; 2151 this.loading = true;
2151 http() 2152 http()
2152 .post("/createParent", addparentDetails) 2153 .post("/createParent", addparentDetails)
2153 .then(response => { 2154 .then(response => {
2154 this.parentId = response.data.data.id; 2155 this.parentId = response.data.data.id;
2155 this.e2 = 2; 2156 this.e2 = 2;
2156 if ((this.snackbar = true)) { 2157 if ((this.snackbar = true)) {
2157 this.text = "successfully"; 2158 this.text = "successfully";
2158 } 2159 }
2159 // this.getStudentList(); 2160 // this.getStudentList();
2160 this.clear(); 2161 this.clear();
2161 this.loading = false; 2162 this.loading = false;
2162 }) 2163 })
2163 .catch(error => { 2164 .catch(error => {
2164 console.log(error.response.data); 2165 console.log(error.response.data);
2165 if ((this.snackbar = true)) { 2166 if ((this.snackbar = true)) {
2166 this.text = error.response.data.message; 2167 this.text = error.response.data.message;
2167 this.text = error.response.data.statusText; 2168 this.text = error.response.data.statusText;
2168 } 2169 }
2169 this.loading = false; 2170 this.loading = false;
2170 }); 2171 });
2171 } 2172 }
2172 }, 2173 },
2173 getParentDetails() { 2174 getParentDetails() {
2174 if (this.parentData.email) { 2175 if (this.parentData.email) {
2175 http() 2176 http()
2176 .get("getParticularParent", { 2177 .get("getParticularParent", {
2177 params: { email: this.parentData.email }, 2178 params: { email: this.parentData.email },
2178 headers: { 2179 headers: {
2179 Authorization: "Bearer " + this.$store.state.token 2180 Authorization: "Bearer " + this.$store.state.token
2180 } 2181 }
2181 }) 2182 })
2182 .then(response => { 2183 .then(response => {
2183 this.showNext = true; 2184 this.showNext = true;
2184 this.showParent = false; 2185 this.showParent = false;
2185 this.parentData = response.data.data; 2186 this.parentData = response.data.data;
2186 this.parentId = response.data.data._id; 2187 this.parentId = response.data.data._id;
2187 }) 2188 })
2188 .catch(error => { 2189 .catch(error => {
2189 console.log("err====>", error.response.data.message); 2190 console.log("err====>", error.response.data.message);
2190 }); 2191 });
2191 } 2192 }
2192 } 2193 }
2193 }, 2194 },
2194 mounted() { 2195 mounted() {
2195 const getCountryList = countryList(); 2196 const getCountryList = countryList();
2196 this.countries = getCountryList; 2197 this.countries = getCountryList;
2197 var token = this.$store.state.token; 2198 var token = this.$store.state.token;
2198 http() 2199 http()
2199 .get("/getClassesList", { 2200 .get("/getClassesList", {
2200 headers: { Authorization: "Bearer " + token } 2201 headers: { Authorization: "Bearer " + token }
2201 }) 2202 })
2202 .then(response => { 2203 .then(response => {
2203 this.addclass = response.data.data; 2204 this.addclass = response.data.data;
2204 }) 2205 })
2205 .catch(error => { 2206 .catch(error => {
2206 this.showLoader = false; 2207 this.showLoader = false;
2207 if (error.response.status === 401) { 2208 if (error.response.status === 401) {
2208 this.$router.replace({ path: "/" }); 2209 this.$router.replace({ path: "/" });
2209 this.$store.dispatch("setToken", null); 2210 this.$store.dispatch("setToken", null);
2210 this.$store.dispatch("Id", null); 2211 this.$store.dispatch("Id", null);
2211 this.$store.dispatch("Role", null); 2212 this.$store.dispatch("Role", null);
2212 } 2213 }
2213 }); 2214 });
2214 }, 2215 },
2215 created() { 2216 created() {
2216 this.$root.$on("app:search", search => { 2217 this.$root.$on("app:search", search => {
2217 this.search = search; 2218 this.search = search;
2218 }); 2219 });
2219 }, 2220 },
2220 beforeDestroy() { 2221 beforeDestroy() {
2221 // dont forget to remove the listener 2222 // dont forget to remove the listener
2222 this.$root.$off("app:search"); 2223 this.$root.$off("app:search");
2223 } 2224 }
2224 }; 2225 };
2225 </script> 2226 </script>
2226 <style scoped> 2227 <style scoped>
2227 .active { 2228 .active {
2228 background-color: gray; 2229 background-color: gray;
2229 color: white !important; 2230 color: white !important;
2230 } 2231 }
2231 .activebtn { 2232 .activebtn {
2232 color: black !important; 2233 color: black !important;
2233 } 2234 }
2234 </style> 2235 </style>
src/schoolApi/apiCollection.js
File was created 1 // import schoolApi from "./schoolApi";
2 // // import GitHubRepository from "./gitHubRepository";
3
4 // const repositories = {
5 // posts: schoolApi
6 // // gitHub: GitHubRepository
7 // // other repositories ...
8 // };
9
10 // export const apiCollection = {
11 // get: name => repositories[name]
12 // };
src/schoolApi/schoolApi.js
File was created 1 // import http from "@/Services/http.js";
2
3 // const resource = "/getAllSections";
4 // export default {
5 // get() {
6 // return http().get(`${resource}`)
7 // },
8
9 // // getPost(postId) {
10 // // return Repository.get(`${resource}/${postId}`);
11 // // },
12
13 // // createPost(payload) {
14 // // return Repository.post(`${resource}`, payload);
15 // // }
16 // };
src/script/students.js
1 export default () => { 1 export default () => {
2
3 const students = [{ 2 const students = [{
4 "name": "Rishav Singla", 3 "name": "Rishav Singla",
5 "email": "rsingla.rishu@gmail.com", 4 "email": "rsingla.rishu@gmail.com",
6 "className": "1", 5 "className": "1",
7 "sectionName": "A", 6 "sectionName": "A",
8 "rollNo": "1", 7 "rollNo": "1",
9 "dob": "1993-10-08", 8 "dob": "1993-10-08",
10 "gender": "Male", 9 "gender": "Male",
11 "bloodGroup": "A+", 10 "bloodGroup": "A+",
12 "mobile": "9914092452", 11 "mobile": "9914092452",
13 "height": "5'11", 12 "height": "5'11",
14 "medicalNotes": "No", 13 "medicalNotes": "No",
15 "city": "Chandigarh", 14 "city": "Chandigarh",
16 "country": "India", 15 "country": "India",
17 "presentAddress": "Mohali Sector ", 16 "presentAddress": "Mohali Sector ",
18 "state": "Punjab", 17 "state": "Punjab",
19 "allergies": "No", 18 "allergies": "No",
20 "establishmentYear": "2019", 19 "establishmentYear": "2019",
21 "fatherCellNo": "09988772222", 20 "fatherCellNo": "09988772222",
22 "fatherName": "Raj", 21 "fatherName": "Raj",
23 "parentEmail": "rajkumar123@gmail.com", 22 "parentEmail": "rajkumar123@gmail.com",
24 "motherCellNo": "8877112266", 23 "motherCellNo": "8877112266",
25 "motherName": "Simran", 24 "motherName": "Simran",
26 "permanentAddress": "Mohali", 25 "permanentAddress": "Mohali",
27 "pincode": "160062", 26 "pincode": "160062",
28 "presentAddress": "Mohali Sector ", 27 "presentAddress": "Mohali Sector ",
29 "role": 4, 28 "role": 4,
30 "rollNo": "1", 29 "rollNo": "1",
31 "weight": "72" 30 "weight": "72"
32 }, 31 },
33 { 32 {
34 "name": "Shubham Chugh", 33 "name": "Shubham Chugh",
35 "email": "shubham@theideazfactory.com", 34 "email": "shubham@theideazfactory.com",
36 "className": "10", 35 "className": "10",
37 "sectionName": "A", 36 "sectionName": "A",
38 "rollNo": "2", 37 "rollNo": "2",
39 "dob": "1994-05-29", 38 "dob": "1994-05-29",
40 "gender": "Male", 39 "gender": "Male",
41 "bloodGroup": "A+", 40 "bloodGroup": "A+",
42 "mobile": "8077362128", 41 "mobile": "8077362128",
43 "height": "5'8", 42 "height": "5'8",
44 "medicalNotes": "No", 43 "medicalNotes": "No",
45 "motherCellNo": "7878654323", 44 "motherCellNo": "7878654323",
46 "city": "Chandigarh", 45 "city": "Chandigarh",
47 "country": "India", 46 "country": "India",
48 "presentAddress": "#1571, ground floor, sector 7C", 47 "presentAddress": "#1571, ground floor, sector 7C",
49 "state": "Chandigarh", 48 "state": "Chandigarh",
50 "allergies": "No", 49 "allergies": "No",
51 "establishmentYear": "2019", 50 "establishmentYear": "2019",
52 "parentEmail": "SureshKumar321@gmail.com", 51 "parentEmail": "SureshKumar321@gmail.com",
53 "fatherCellNo": "09898787865", 52 "fatherCellNo": "09898787865",
54 "fatherName": "Suresh Kumar", 53 "fatherName": "Suresh Kumar",
55 "motherName": "Shinki", 54 "motherName": "Shinki",
56 "permanentAddress": "Sector 43 Chandigarh", 55 "permanentAddress": "Sector 43 Chandigarh",
57 "pincode": " 160036", 56 "pincode": " 160036",
58 "presentAddress": "Sector 43 Chandigarh", 57 "presentAddress": "Sector 43 Chandigarh",
59 "role": 4, 58 "role": 4,
60 "rollNo": "2", 59 "rollNo": "2",
61 "weight": "70" 60 "weight": "70"
62 }, 61 },
63 ] 62 ]
64 return students; 63 return students;
65 } 64 }