Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Improved test data, refactord signup and email
- Loading branch information
ChrisRollings
committed
Mar 17, 2019
1 parent
ee46fff
commit 283e7ed17d03c014f6abf49b2dee66741e10f4e7
Showing
10 changed files
with
233 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,21 @@ | ||
<div> | ||
<mat-card> | ||
<mat-card-title>Registration Page | ||
</mat-card-title> | ||
<form class="form-container" [formGroup]="form" (submit)="onSubmit()"> | ||
<mat-form-field appearance="outline"> | ||
<input matInput type="email" formControlName="Email" placeholder="Email"> | ||
<mat-error *ngIf="Email.invalid">Please enter a valid email</mat-error> | ||
</mat-form-field> | ||
<mat-card> | ||
<mat-card-title>Login Page | ||
</mat-card-title> | ||
<form class="form-container" [formGroup]="form" (submit)="onSubmit()"> | ||
<mat-form-field appearance="outline"> | ||
<input matInput type="email" formControlName="Email" placeholder="Email"> | ||
<mat-error *ngIf="Email.invalid">Please enter a valid email</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput type="text" formControlName="FirstName" placeholder="First name"> | ||
<mat-error *ngIf="FirstName.invalid">Please enter your first name</mat-error> | ||
<mat-form-field appearance="outline"> | ||
<input matInput type="password" formControlName="Password" placeholder="Password"> | ||
<mat-error *ngIf="Password.invalid">Please enter a password</mat-error> | ||
</mat-form-field> | ||
|
||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput type="text" formControlName="LastName" placeholder="Last name"> | ||
<mat-error *ngIf="LastName.invalid">Please enter your last name</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput type="password" formControlName="Password" placeholder="Password"> | ||
<mat-error *ngIf="Password.invalid">Please enter a password</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput type="tel" formControlName="PhoneNumber" placeholder="Phone number"> | ||
<mat-error *ngIf="PhoneNumber.invalid">Please enter your phone number</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput type="text" formControlName="UserName" placeholder="User name"> | ||
<mat-error *ngIf="UserName.invalid">Please enter a username</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline"> | ||
<input matInput [matDatepicker]="picker" formControlName="DateOfBirth" placeholder="Date of birth"> | ||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> | ||
<mat-datepicker #picker></mat-datepicker> | ||
</mat-form-field> | ||
<div> | ||
<button type="submit" [disabled]="form.invalid" mat-stroked-button>Login</button> | ||
</div> | ||
</form> | ||
</mat-card> | ||
<div> | ||
<button type="submit" [disabled]="form.invalid" mat-stroked-button>Login</button> | ||
</div> | ||
</form> | ||
</mat-card> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.