Guest User

Untitled

a guest
Mar 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <form class="example-form" (ngSubmit)="onSignup(f)" #f="ngForm">
  2. <label class="registr">Registration Form</label>
  3. <table class="example-full-width" cellspacing="0"><tr>
  4. <td><mat-form-field class="example-full-width">
  5. <input matInput id="fname" name="fname" placeholder="First name">
  6. </mat-form-field></td>
  7.  
  8. <td><mat-form-field class="example-full-width">
  9. <input matInput id="lname" name="lname" placeholder="Last Name">
  10. </mat-form-field></td>
  11. </tr></table>
  12.  
  13. <table class="example-full-width" cellspacing="0"><tr>
  14. <td><mat-form-field class="example-full-width">
  15. <input type="email" matInput placeholder="Enter your email" id="email" name="email" [formControl]="email" required>
  16. <mat-error *ngIf="email.invalid">{{getErrorMessage()}}</mat-error>
  17. </mat-form-field></td>
  18. <td><mat-form-field class="example-full-width">
  19. <mat-select placeholder="Select Role">
  20. <mat-option *ngFor="let role of roles" [value]="role" value="option" required>{{role}}</mat-option>
  21. </mat-select>
  22. </mat-form-field></td>
  23. </tr></table>
  24.  
  25. <mat-form-field>
  26. <input type="password" matInput placeholder="Enter your password" id="password" name="password" [type]="hide ? 'password' : 'text'">
  27. <mat-icon matSuffix (click)="hide = !hide">{{hide ? 'visibility' : 'visibility_off'}}</mat-icon>
  28. </mat-form-field>
  29. <button type="button" class="btn btn-info d-none d-lg-block m-l-15" type="submit">Sign Up</button>
  30. </form>
Add Comment
Please, Sign In to add comment