Skip to content
Snippets Groups Projects
start-lock-input.component.html 693 B
Newer Older
  • Learn to ignore specific revisions
  • mechtelm's avatar
    mechtelm committed
    <form [formGroup]="startkeyform" fxLayout="column">
    
      <h1 mat-dialog-title>{{ data.title }}</h1>
    
    mechtelm's avatar
    mechtelm committed
      <mat-dialog-content>
    
    Martin Mechtel's avatar
    Martin Mechtel committed
        <p>{{ data.prompt }}</p>
    
        <mat-form-field *ngFor="let c of data.codes" fxLayout="column">
          <p>{{ c.prompt }}</p>
          <input matInput [formControlName]="c.testletId" [(ngModel)]="c.value" (keyup.enter)="close()">
        </mat-form-field>
    
    Martin Mechtel's avatar
    Martin Mechtel committed
      </mat-dialog-content>
    
      <mat-dialog-actions>
    
    Martin Mechtel's avatar
    Martin Mechtel committed
        <button mat-raised-button #okButton color="primary"
            [disabled]="startkeyform.invalid"
            type="submit" [mat-dialog-close]="data.codes">Weiter</button>
    
    Martin Mechtel's avatar
    Martin Mechtel committed
        <button mat-raised-button [mat-dialog-close]="false">Abbrechen</button>
      </mat-dialog-actions>
    </form>