diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 8d2f42f1eb3e384a7a260fbecc829047fdee9b4e..11aa6fd16aa66096bb18ebe906846418ce2a53f5 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -37,6 +37,10 @@ const routes: Routes = [ { path: 'help-line', loadChildren: () => import('./help-line/help-line.module').then( m => m.HelpLinePageModule) + }, + { + path: 'reset-password', + loadChildren: () => import('./reset-password/reset-password.module').then( m => m.ResetPasswordPageModule) } diff --git a/src/app/auth/login/login.page.html b/src/app/auth/login/login.page.html index 5562a831129cd506a6a8b61a439d8683370414dd..68710322b8eeabb976182fba7506adeb062cd454 100644 --- a/src/app/auth/login/login.page.html +++ b/src/app/auth/login/login.page.html @@ -31,7 +31,10 @@ <div padding> <ion-button size="large" expand="block" (click)="login()">Login</ion-button> + <a href="../../reset-password">Forgot your Password?</a> + </div> + <div padding> <ion-button size="large" expand="block" (click)="register()">Click here to Register</ion-button> </div> diff --git a/src/app/reset-password/reset-password-routing.module.ts b/src/app/reset-password/reset-password-routing.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..335ad7782c9d13b507b11957c05fd623f4763194 --- /dev/null +++ b/src/app/reset-password/reset-password-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { ResetPasswordPage } from './reset-password.page'; + +const routes: Routes = [ + { + path: '', + component: ResetPasswordPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class ResetPasswordPageRoutingModule {} diff --git a/src/app/reset-password/reset-password.module.ts b/src/app/reset-password/reset-password.module.ts new file mode 100644 index 0000000000000000000000000000000000000000..30e0cd0b2c4ce8007ab7f512c40435be967ea959 --- /dev/null +++ b/src/app/reset-password/reset-password.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { ResetPasswordPageRoutingModule } from './reset-password-routing.module'; + +import { ResetPasswordPage } from './reset-password.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + ResetPasswordPageRoutingModule + ], + declarations: [ResetPasswordPage] +}) +export class ResetPasswordPageModule {} diff --git a/src/app/reset-password/reset-password.page.html b/src/app/reset-password/reset-password.page.html new file mode 100644 index 0000000000000000000000000000000000000000..055104ba0b62d67805c874a03700f729d67ecb34 --- /dev/null +++ b/src/app/reset-password/reset-password.page.html @@ -0,0 +1,42 @@ +<ion-header> + <ion-toolbar> + <ion-title>Reset Password</ion-title> + </ion-toolbar> +</ion-header> + +<ion-content> + + <form> + <ion-grid> + <ion-row justify-content-center> + <ion-col align-self-center size-md="6" size-lg="5" size-xs="12"> + <div padding> + <img src="../../../assets/images/bike2gologo.png"> + </div> + <div class="ion-text"> + <h3>Reset Password</h3> + + </div> + + + <ion-item ><ion-input type="text" disabled="true" placeholder="Bob@mail.com"></ion-input></ion-item> + + + + + <ion-item ><ion-input type="password" placeholder="Old Password"></ion-input></ion-item> + <ion-item ><ion-input type="password" placeholder="New Password"></ion-input></ion-item> + <ion-item ><ion-input type="password" placeholder="Confirm Password"></ion-input></ion-item> + + + <div padding> + <ion-button size="large" expand="block" (click)="resetPassword()">Reset Password</ion-button> + </div> + <div padding> + <ion-button size="large" expand="block" (click)="login()">Login</ion-button> + </div> + </ion-col> + </ion-row> + </ion-grid> + </form> +</ion-content> \ No newline at end of file diff --git a/src/app/reset-password/reset-password.page.scss b/src/app/reset-password/reset-password.page.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/reset-password/reset-password.page.spec.ts b/src/app/reset-password/reset-password.page.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..5628db6d2b7cef64da8482e0a8764ec079d1c638 --- /dev/null +++ b/src/app/reset-password/reset-password.page.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { ResetPasswordPage } from './reset-password.page'; + +describe('ResetPasswordPage', () => { + let component: ResetPasswordPage; + let fixture: ComponentFixture<ResetPasswordPage>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ResetPasswordPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(ResetPasswordPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/reset-password/reset-password.page.ts b/src/app/reset-password/reset-password.page.ts new file mode 100644 index 0000000000000000000000000000000000000000..f0395c2078352ee2408f0e3e13d96c720ce90599 --- /dev/null +++ b/src/app/reset-password/reset-password.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-reset-password', + templateUrl: './reset-password.page.html', + styleUrls: ['./reset-password.page.scss'], +}) +export class ResetPasswordPage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}