This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
<h2 mat-dialog-title>Kies een invaller voor {{ data.player.name }}:</h2>
|
||||
<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>
|
||||
@for (substitution of data.player.substitutions; track $index) {
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-3">
|
||||
<h5>{{ Event.getType(substitution.event) }}</h5>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Invaller</mat-label>
|
||||
<mat-select [(ngModel)]="substitution.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>
|
||||
</div>
|
||||
}
|
||||
</mat-dialog-content>
|
||||
<mat-dialog-actions>
|
||||
@if (substitute) {
|
||||
<button mat-button [mat-dialog-close]="{substitute: substitute}">Invaller selecteren</button>
|
||||
}
|
||||
<!-- @if (substitute) {-->
|
||||
<button mat-button [mat-dialog-close]="{substitutions: data.player.substitutions}">Opslaan</button>
|
||||
<!-- }-->
|
||||
<button mat-button (click)="onAnnulerenClick()">Annuleren</button>
|
||||
</mat-dialog-actions>
|
||||
|
||||
Reference in New Issue
Block a user