<app-card [formGroup]="form" closeLink="../" heading="neuen Benutzer anlegen">
  <mat-form-field appearance="outline">
    <mat-label>Name</mat-label>
    <input formControlName="name" matInput />
  </mat-form-field>
  <mat-form-field appearance="outline">
    <mat-label>E-Mail Adresse</mat-label>
    <input formControlName="email" matInput />
  </mat-form-field>
  <mat-form-field appearance="outline">
    <mat-label>Passwort</mat-label>
    <input formControlName="password" matInput type="password" />
  </mat-form-field>
  @if (errorMessage) {
  <p class="error">{{ errorMessage | authMessage }}</p>
  }

  <app-button-row>
    <app-button (click)="onCreate()" [icon]="faNewUser">Benutzer anlegen </app-button>
  </app-button-row>
</app-card>
