Companion/src/app/registration-form/registration-form.component.html

18 lines
691 B
HTML
Raw Normal View History

2025-02-12 14:14:02 +01:00
<form [formGroup]="registrationForm" class="registration-form">
<h2>Player Registration</h2>
<mat-form-field appearance="fill">
<mat-label>Username</mat-label>
<input formControlName="username" matInput type="text" required>
<mat-error> Username is required! </mat-error>
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Password</mat-label>
<input formControlName="password" matInput type="password" required>
<mat-error> Password is required! </mat-error>
</mat-form-field>
<button mat-flat-button (click)="registerPlayer()">Register</button>
</form>