Skip to content

Commit

Permalink
Step 18.48: View for Password
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent 6418208 commit 45c4c3e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions imports/ui/components/password/password.html
@@ -0,0 +1,40 @@
<md-content layout="row" layout-align="center start" layout-fill layout-margin>
<md-whiteframe layout="column" flex flex-md="50" flex-lg="50" flex-gt-lg="33" class="md-whiteframe-z2" layout-fill>

<md-toolbar class="md-primary md-tall" layout="column" layout-align="end" layout-fill>
<div layout="row" class="md-toolbar-tools md-toolbar-tools-bottom">
<h3 class="md-display-1"> Reset Password</h3>
</div>
</md-toolbar>

<div layout="column" layout-fill layout-margin layout-padding>

<div layout="row" layout-fill layout-margin>
<p class="md-body-2">Enter your email so we can send you a reset link</p>
</div>

<form name="resetForm" layout="column" layout-fill layout-padding layout-margin>
<md-input-container>
<label> Email </label>
<input type="text" ng-model="password.credentials.email" placeholder="email" aria-label="email" required/>
</md-input-container>
<div layout="row" layout-align="end center">
<md-button class="md-raised md-primary" ng-click="password.reset()" aria-label="reset"
ng-disabled="password.resetForm.$invalid()">Send Email
</md-button>
</div>
</form>

<md-toolbar ng-show="password.error" class="md-warn" layout="row" layout-fill layout-padding layout-margin>
<p class="md-body-1">{{ password.error }}</p>
</md-toolbar>

<md-divider></md-divider>
<div layout="row" layout-align="center">
<a class="md-button" href="/login">Sign in</a>
</div>

</div>

</md-whiteframe>
</md-content>

0 comments on commit 45c4c3e

Please sign in to comment.