This commit is contained in:
@@ -14,37 +14,43 @@
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ng-container *ngIf="eventRegistration.doublesEvent">
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Partner</mat-label>
|
||||
<mat-select [value]="eventRegistration.partner" [disabled]="!tournamentRegistration.editable || !eventRegistration.registered" [(ngModel)]="eventRegistration.partner">
|
||||
<mat-option>Geen</mat-option>
|
||||
<mat-option *ngFor="let player of getRelevantPlayers(eventRegistration.type)" [value]="player.id">
|
||||
{{ player | fullName }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</ng-container>
|
||||
@if (eventRegistration.doublesEvent) {
|
||||
<ng-container>
|
||||
<mat-form-field appearance="fill">
|
||||
<mat-label>Partner</mat-label>
|
||||
<mat-select [value]="eventRegistration.partner" [disabled]="!tournamentRegistration.editable || !eventRegistration.registered" [(ngModel)]="eventRegistration.partner">
|
||||
<mat-option>Geen</mat-option>
|
||||
<mat-option *ngFor="let player of getRelevantPlayers(eventRegistration.type)" [value]="player.id">
|
||||
{{ player | fullName }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</ng-container>
|
||||
}
|
||||
</div>
|
||||
<div class="col-6"></div>
|
||||
</div>
|
||||
</ng-container>
|
||||
</mat-card-content>
|
||||
<mat-card-actions *ngIf="tournamentRegistration.editable">
|
||||
<button mat-button (click)="saveRegistration(tournamentRegistration, $event)" [disabled]="waitingForBackend">
|
||||
<mat-icon>save</mat-icon>
|
||||
Opslaan
|
||||
</button>
|
||||
<a mat-button routerLink="/players">
|
||||
<mat-icon>cancel</mat-icon>
|
||||
Annuleren
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
@if (tournamentRegistration.editable) {
|
||||
<mat-card-actions>
|
||||
<button mat-button (click)="saveRegistration(tournamentRegistration, $event)" [disabled]="waitingForBackend">
|
||||
<mat-icon>save</mat-icon>
|
||||
Opslaan
|
||||
</button>
|
||||
<a mat-button routerLink="/players">
|
||||
<mat-icon>cancel</mat-icon>
|
||||
Annuleren
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
}
|
||||
</mat-card>
|
||||
<button mat-button (click)="this.showAll = true" *ngIf="!this.showAll">
|
||||
<mat-icon>search</mat-icon>
|
||||
Toon oude toernooien
|
||||
</button>
|
||||
@if (!this.showAll) {
|
||||
<button mat-button (click)="this.showAll = true">
|
||||
<mat-icon>search</mat-icon>
|
||||
Toon oude toernooien
|
||||
</button>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user