Guest User

Untitled

a guest
Oct 8th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <div class="m-login-title">
  2. <h5>Servyto</h5>
  3. <br>
  4. <h3>Log In</h3>
  5. </div>
  6.  
  7. <m-auth-notice></m-auth-notice>
  8.  
  9. <form class="m-login-form m-form" name="login" (ngSubmit)="f.form.valid && submit()" #f="ngForm" novalidate>
  10. <div class="form-group">
  11. <mat-form-field>
  12. <mat-label>Username</mat-label>
  13. <input matInput name="username" type="text" placeholder="Username" autocomplete="off" [(ngModel)]="model.username"
  14. #username="ngModel" required>
  15. <mat-error *ngIf="username.errors?.required">
  16. Username is required.
  17. </mat-error>
  18. </mat-form-field>
  19. </div>
  20. <div class="form-group">
  21. <mat-form-field>
  22. <mat-label>Password</mat-label>
  23. <input matInput minlength="4" type="password" name="password" placeholder="Password" autocomplete="off" [(ngModel)]="model.password"
  24. #password="ngModel" required>
  25. <mat-error *ngIf="password.errors?.required">
  26. Password is required.
  27. </mat-error>
  28. <mat-error *ngIf="password.errors?.minlength">
  29. Password must be at least 4 characters long.
  30. </mat-error>
  31. </mat-form-field>
  32. </div>
  33. </form>
  34.  
  35. <mat-grid-list cols="5" rowHeight="40px">
  36. <mat-grid-tile [colspan]="2">
  37. <span>Password dimenticata?</span>
  38. </mat-grid-tile>
  39. <mat-grid-tile [colspan]="2">
  40. </mat-grid-tile>
  41. <mat-grid-tile [colspan]="1">
  42. <m-spinner-button [options]="spinner" (click)="submit()">Login</m-spinner-button>
  43. </mat-grid-tile>
  44. <mat-grid-tile [colspan]="2" class="margin-top-minus-10">
  45. <a href="javascript:;" (click)="forgotPasswordPage($event)" class="m-link">
  46. <span>Clicca qui per recuperare</span>
  47. </a>
  48. </mat-grid-tile>
  49. </mat-grid-list>
Add Comment
Please, Sign In to add comment