WIP: substitutions
Some checks failed
Gitea/swiss-client/pipeline/head There was a failure building this commit

This commit is contained in:
2025-09-10 10:35:15 +02:00
parent 33bfde27d4
commit 929fd6b581
6 changed files with 125 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
<mat-dialog-content>
<h3>Kies een invaller voor {{ data.player.name }}:</h3>
<div class="col-md-6">
<mat-form-field appearance="fill">
<mat-label>Invaller</mat-label>
<mat-select [(ngModel)]="substitute">
<mat-option>Geen</mat-option>
@for (player of data.availablePlayers; track player.playerId) {
<mat-option [value]="player">
{{ player.name }}
</mat-option>
}
</mat-select>
</mat-form-field>
</div>
</mat-dialog-content>
<mat-dialog-actions>
@if (substitute) {
<button mat-button [mat-dialog-close]="{substitute: substitute}">Invaller selecteren</button>
}
<button mat-button (click)="onAnnulerenClick()">Annuleren</button>
</mat-dialog-actions>