Skip to content

Commit

Permalink
Step 22.10: Add a form with phone number to provide
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 27, 2016
1 parent a4dcfb9 commit 3d96c37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/imports/app/auth/login.component.mobile.html
Expand Up @@ -9,6 +9,16 @@
<p class="md-body-2"> Sign in with SMS</p>
</div>

<form [formGroup]="phoneForm" #f="ngForm" (ngSubmit)="send()"
layout="column" layout-fill layout-padding layout-margin>

<md-input formControlName="phone" type="text" placeholder="Phone"></md-input>

<div layout="row" layout-align="space-between center">
<button md-raised-button class="md-primary" type="submit" aria-label="send">Send SMS</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>
Expand Down

0 comments on commit 3d96c37

Please sign in to comment.