Skip to content

Commit

Permalink
Step 19.28: Create the recover component view
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent 04d9289 commit 5e66ae0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions client/imports/app/auth/recover.component.html
@@ -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>

0 comments on commit 5e66ae0

Please sign in to comment.