Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 19.28: Create the recover component view
- Loading branch information
1 parent
04d9289
commit 5e66ae0
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="md-content" layout="row" layout-align="center start" layout-fill layout-margin> | ||
<div layout="column" flex flex-md="50" flex-lg="50" flex-gt-lg="33" class="md-whiteframe-z2" layout-fill> | ||
<md-toolbar class="md-primary" color="primary"> | ||
Recover Your Password | ||
</md-toolbar> | ||
|
||
<div layout="column" layout-fill layout-margin layout-padding> | ||
<form [formGroup]="recoverForm" #f="ngForm" (ngSubmit)="recover()" | ||
layout="column" layout-fill layout-padding layout-margin> | ||
|
||
<md-input formControlName="email" type="email" placeholder="Email"></md-input> | ||
|
||
<div layout="row" layout-align="space-between center"> | ||
<button md-raised-button class="md-primary" type="submit" aria-label="Recover">Recover</button> | ||
</div> | ||
</form> | ||
|
||
<div [hidden]="error == ''"> | ||
<md-toolbar class="md-warn" layout="row" layout-fill layout-padding layout-margin> | ||
<p class="md-body-1">{{ error }}</p> | ||
</md-toolbar> | ||
</div> | ||
|
||
<md-divider></md-divider> | ||
|
||
<div layout="row" layout-align="center"> | ||
<a md-button [routerLink]="['/login']">Remember your password?</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |