Permalink
Browse files

Step 19.24: Added the signup view

  • Loading branch information...
dotansimha authored and DAB0mB committed Sep 27, 2016
1 parent da49bb7 commit eac62c11156cfc858af55fdd03cd347e63a2e25c
Showing with 32 additions and 0 deletions.
  1. +32 −0 client/imports/app/auth/signup.component.html
@@ -0,0 +1,32 @@
<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">
Sign up
</md-toolbar>
<div layout="column" layout-fill layout-margin layout-padding>
<form [formGroup]="signupForm" #f="ngForm" (ngSubmit)="signup()"
layout="column" layout-fill layout-padding layout-margin>
<md-input formControlName="email" type="email" placeholder="Email"></md-input>
<md-input formControlName="password" type="password" placeholder="Password"></md-input>
<div layout="row" layout-align="space-between center">
<button md-raised-button class="md-primary" type="submit" aria-label="login">Sign Up</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']">Already a user?</a>
</div>
</div>
</div>
</div>

0 comments on commit eac62c1

Please sign in to comment.