25 lines
1.0 KiB
HTML
25 lines
1.0 KiB
HTML
<!-- src/app/components/login/login.component.html -->
|
|
<form [formGroup]="loginForm" (ngSubmit)="onSubmit()">
|
|
<div class="mb-3">
|
|
<mat-form-field>
|
|
<mat-label>Username</mat-label>
|
|
<input matInput formControlName="username">
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="mb-3">
|
|
<mat-form-field>
|
|
<mat-label>Enter your password</mat-label>
|
|
<input matInput [type]="hide ? 'password' : 'text'" formControlName="password">
|
|
<button type="button" mat-icon-button matSuffix (click)="togglePWVisibility($event)"
|
|
[attr.aria-label]="'Hide password'" [attr.aria-pressed]="hide">
|
|
<mat-icon>{{hide ? 'visibility_off' : 'visibility'}}</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="mb-3">
|
|
<button type="submit" class="btn" mat-flat-button color="primary">
|
|
<span class="me-2">Anmeldung</span>
|
|
<span class="p-0 m-0" [class.spinner-border]="wait4waitRes" [class.spinner-border-sm]="wait4waitRes" aria-hidden="true"></span>
|
|
</button>
|
|
</div>
|
|
</form> |