Commit 5e8c798f authored by Lukas Mauß's avatar Lukas Mauß

Merge branch 'input-type-email-on-forms' into 'master'

Use type 'email' on mat input

Closes #270

See merge request !215
parents 093e01ca 72a52220
Pipeline #27063 passed with stages
in 6 minutes and 32 seconds
<form (ngSubmit)="resetPassword(email.value)" fxLayout="column" fxLayoutAlign="space-around"
fxLayoutGap="10px">
<mat-form-field class="input-block">
<input matInput #email placeholder="{{ 'password-reset.email' | translate }}" [formControl]="usernameFormControl"
<input matInput type="email" #email placeholder="{{ 'password-reset.email' | translate }}" [formControl]="usernameFormControl"
[errorStateMatcher]="matcher" name="email"/>
<mat-error *ngIf="usernameFormControl.hasError('required')">
{{ 'password-reset.email-required' | translate }}
......
<form (ngSubmit)="register(userName.value, userPassword1.value)" fxLayout="column"
fxLayoutAlign="space-around" fxLayoutGap="10px">
<mat-form-field class="input-block">
<input matInput #userName placeholder="{{ 'register.email' | translate }}" [formControl]="usernameFormControl"
<input matInput type="email" #userName placeholder="{{ 'register.email' | translate }}" [formControl]="usernameFormControl"
[errorStateMatcher]="matcher">
<mat-error *ngIf="usernameFormControl.hasError('email') && !usernameFormControl.hasError('required')">
{{ 'register.email-invalid' | translate }}
......@@ -12,7 +12,7 @@
</mat-form-field>
<mat-form-field class="input-block">
<input matInput #userName2 placeholder="{{ 'register.email-verify' | translate }}" [formControl]="username2FormControl"
<input matInput type="email" #userName2 placeholder="{{ 'register.email-verify' | translate }}" [formControl]="username2FormControl"
[errorStateMatcher]="matcher">
<mat-error *ngIf="username2FormControl.hasError('emailIsEqual') && !username2FormControl.hasError('required')">
{{ 'register.email-unmatch' | translate }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment