Blame view

src/pages/forgetpassword.vue 2.63 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  <template>
    <v-app id="login">
07095d4d8   Jatinder Singh   regex
3
      <v-toolbar color="grey lighten">
93a68cfa1   Jatinder Singh   first commit
4
        <v-toolbar-items>
07095d4d8   Jatinder Singh   regex
5
         <img src="/static/ana@2x.png" height="36" alt="ana" />
93a68cfa1   Jatinder Singh   first commit
6
7
8
9
10
      </v-toolbar-items>
    </v-toolbar>
      <v-content>
        <v-container fluid fill-height>
          <v-layout align-center justify-center>
04e3fbc56   Jatinder Singh   minor fix
11
            <v-flex xs12 sm8 md6 lg6>
93a68cfa1   Jatinder Singh   first commit
12
13
14
15
16
17
18
                <v-toolbar color="black" dark>
           <v-spacer></v-spacer>
            
            <v-toolbar-title>Forget Password</v-toolbar-title>
            <v-spacer></v-spacer>
            
          </v-toolbar>
04e3fbc56   Jatinder Singh   minor fix
19
              <v-card class="elevation-1 pa-1">
93a68cfa1   Jatinder Singh   first commit
20
                <v-card-text>
07095d4d8   Jatinder Singh   regex
21
                 
04e3fbc56   Jatinder Singh   minor fix
22
23
24
                  <h5 class="text-md-center"> Not to Worry! Enter to your registered Email ID. </h5>
                  <h5 class="text-md-center"> We'll send you a reset.</h5>
                 <v-flex xs12 sm8 md6 lg6 offset-xs3>                           
93a68cfa1   Jatinder Singh   first commit
25
                  <v-form class="mt-5">
07095d4d8   Jatinder Singh   regex
26
           
93a68cfa1   Jatinder Singh   first commit
27
28
                    <v-text-field append-icon="person" v-validate="'required|email'" v-model="email" :error-messages="errors.collect('email')" label="E-mail" data-vv-name="email" required ></v-text-field>
                    
04e3fbc56   Jatinder Singh   minor fix
29
                  </v-form></v-flex>
93a68cfa1   Jatinder Singh   first commit
30
31
                </v-card-text>
                <v-card-actions>
07095d4d8   Jatinder Singh   regex
32
                
93a68cfa1   Jatinder Singh   first commit
33
34
35
36
37
38
  
                  
                  <v-flex text-sm-center>
                      <h5> You will recieve an email to continue</h5>
                  <v-btn class="mt-3" round color="black" dark large @click="login">Send Request</v-btn></v-flex>
                  </v-card-actions>
04e3fbc56   Jatinder Singh   minor fix
39
40
41
42
43
44
45
46
47
48
49
50
51
52
                  <v-snackbar
                   :timeout="timeout"
                   v-model="snackbar"
                   color="green"
                    >
                   {{ text }}
                <v-icon
                 flat
                 @click="snackbar = false"
                 
               >
                close
                 </v-icon>
                 </v-snackbar>
93a68cfa1   Jatinder Singh   first commit
53
54
55
56
57
              </v-card>
            </v-flex>
          </v-layout>
        </v-container>
      </v-content>
04e3fbc56   Jatinder Singh   minor fix
58
    <v-footer class="pa-4" color="grey darken-2">
93a68cfa1   Jatinder Singh   first commit
59
60
61
62
63
64
65
    
    </v-footer>
    </v-app>
  </template>
  <script>
  export default {
    data: () => ({
04e3fbc56   Jatinder Singh   minor fix
66
67
68
      text: 'Link send to your Email address',
      snackbar: false,
      timeout: 1000,
93a68cfa1   Jatinder Singh   first commit
69
      loading: false,
04e3fbc56   Jatinder Singh   minor fix
70
      email: ''
93a68cfa1   Jatinder Singh   first commit
71
72
73
74
    }),
  
    methods: {
      login () {
04e3fbc56   Jatinder Singh   minor fix
75
76
        // this.loading = true;
        this.snackbar = true;
93a68cfa1   Jatinder Singh   first commit
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
        setTimeout(() => {
          this.$router.push('/');
        }, 1000);
      }
    }
  
  };
  </script>
  <style scoped lang="css">
    #login {
      height: 50%;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      z-index: 0;
    }
04e3fbc56   Jatinder Singh   minor fix
95
96
97
98
99
100
101
102
  img{
  position:absolute;
  top:13px;
  left:50px;
  }
  .v-btn--large {
      padding: 0px 74px;
  }
93a68cfa1   Jatinder Singh   first commit
103
  </style>