diff --git a/src/app/components/court-selection/court-selection.component.html b/src/app/components/court-selection/court-selection.component.html index 2d00840..eb58825 100644 --- a/src/app/components/court-selection/court-selection.component.html +++ b/src/app/components/court-selection/court-selection.component.html @@ -1,10 +1,11 @@

Kies een baan:

- + @for (item of [].constructor(data.totalCourts); track item) { + + }
diff --git a/src/app/components/court-selection/court-selection.component.ts b/src/app/components/court-selection/court-selection.component.ts index bd94af1..61108e3 100644 --- a/src/app/components/court-selection/court-selection.component.ts +++ b/src/app/components/court-selection/court-selection.component.ts @@ -7,7 +7,6 @@ import { MatDialogTitle } from "@angular/material/dialog"; import {Match} from "../../model/match"; -import {NgForOf} from "@angular/common"; import {MatButton} from "@angular/material/button"; @Component({ @@ -15,7 +14,6 @@ import {MatButton} from "@angular/material/button"; imports: [ MatDialogTitle, MatDialogContent, - NgForOf, MatButton, MatDialogClose, MatDialogActions diff --git a/src/app/components/match-result/match-result.component.ts b/src/app/components/match-result/match-result.component.ts index 97c5019..951d394 100644 --- a/src/app/components/match-result/match-result.component.ts +++ b/src/app/components/match-result/match-result.component.ts @@ -3,19 +3,19 @@ import { MAT_DIALOG_DATA, MatDialogActions, MatDialogClose, - MatDialogContent, MatDialogRef, + MatDialogContent, + MatDialogRef, MatDialogTitle } from "@angular/material/dialog"; -import {MatButton, MatIconButton} from "@angular/material/button"; -import {DatePipe, NgClass, NgForOf} from "@angular/common"; -import {MatIcon} from "@angular/material/icon"; +import {MatButton} from "@angular/material/button"; +import {NgClass} from "@angular/common"; import {TeamPipe} from "../../pipes/team-pipe"; import {FullNamePipe} from "../../pipes/fullname-pipe"; import {Match} from "../../model/match"; import {MatFormField, MatInput} from "@angular/material/input"; import {FormsModule, ReactiveFormsModule} from "@angular/forms"; import {Result} from "../../model/result"; -import {MatGridList, MatGridTile, MatGridTileText} from "@angular/material/grid-list"; +import {MatGridList, MatGridTile} from "@angular/material/grid-list"; import {Round} from "../../model/round"; import {Group} from "../../model/group"; import {Game} from "../../model/game"; diff --git a/src/app/components/match-sheets/match-sheets.component.html b/src/app/components/match-sheets/match-sheets.component.html index 70d94e1..040ebee 100644 --- a/src/app/components/match-sheets/match-sheets.component.html +++ b/src/app/components/match-sheets/match-sheets.component.html @@ -1,5 +1,5 @@ @if (round) { - + @for (match of round.matches; track match.id) {
@@ -54,10 +54,9 @@ {{ group.name }} {{ round.name }}
-
-
+ } } diff --git a/src/app/components/match-sheets/match-sheets.component.ts b/src/app/components/match-sheets/match-sheets.component.ts index c158bbd..555cd82 100644 --- a/src/app/components/match-sheets/match-sheets.component.ts +++ b/src/app/components/match-sheets/match-sheets.component.ts @@ -7,7 +7,6 @@ import {Round} from "../../model/round"; import {TeamPipe} from "../../pipes/team-pipe"; import {FullNamePipe} from "../../pipes/fullname-pipe"; import {Group} from "../../model/group"; -import {NgForOf} from "@angular/common"; import {MatFormField} from "@angular/material/form-field"; import {MatInput} from "@angular/material/input"; import {ReactiveFormsModule} from "@angular/forms"; @@ -19,7 +18,6 @@ import {TitleService} from "../../service/title.service"; MatCard, MatCardContent, TeamPipe, - NgForOf, MatFormField, MatInput, ReactiveFormsModule diff --git a/src/app/components/player-edit/player-edit.component.html b/src/app/components/player-edit/player-edit.component.html index 7929826..d4eeff0 100644 --- a/src/app/components/player-edit/player-edit.component.html +++ b/src/app/components/player-edit/player-edit.component.html @@ -60,9 +60,11 @@ Speelsterkte - - {{ strengthOption.value }} - + @for (strengthOption of Strength | keyvalue; track strengthOption) { + + {{ strengthOption.value }} + + } diff --git a/src/app/components/player-edit/player-edit.component.ts b/src/app/components/player-edit/player-edit.component.ts index 979810f..45db4cd 100644 --- a/src/app/components/player-edit/player-edit.component.ts +++ b/src/app/components/player-edit/player-edit.component.ts @@ -9,7 +9,7 @@ import {MatIcon} from "@angular/material/icon"; import {MatRadioButton, MatRadioGroup} from "@angular/material/radio"; import {MatCard, MatCardActions, MatCardContent} from "@angular/material/card"; import {MatOption, MatSelect} from "@angular/material/select"; -import {KeyValuePipe, NgForOf} from "@angular/common"; +import {KeyValuePipe} from "@angular/common"; import {MatAnchor, MatButton} from "@angular/material/button"; import {TitleService} from "../../service/title.service"; import {MatSnackBar} from "@angular/material/snack-bar"; @@ -33,7 +33,6 @@ import {NgxMaskDirective} from "ngx-mask"; MatSelect, MatOption, KeyValuePipe, - NgForOf, MatButton, MatAnchor, ReactiveFormsModule, diff --git a/src/app/components/player-registrations/player-registrations.component.html b/src/app/components/player-registrations/player-registrations.component.html index 12039b9..e93c341 100644 --- a/src/app/components/player-registrations/player-registrations.component.html +++ b/src/app/components/player-registrations/player-registrations.component.html @@ -1,50 +1,54 @@ @if (player && tournamentRegistrations && allPlayers) { - - -
{{ tournamentRegistration.name }}
-
- - -
-
- - {{ EventRegistration.getType(eventRegistration.type) }} - + @for (tournamentRegistration of getTournamentRegistrations(); track tournamentRegistration.id) { + + +
{{ tournamentRegistration.name }}
+
+ + @for (eventRegistration of tournamentRegistration.events; track eventRegistration.id) { +
+
+ + {{ EventRegistration.getType(eventRegistration.type) }} + +
+
+ @if (eventRegistration.doublesEvent) { + + + Partner + + Geen + @for (player of getRelevantPlayers(eventRegistration.type); track player.id) { + + {{ player | fullName }} + + } + + + + } +
+
-
- @if (eventRegistration.doublesEvent) { - - - Partner - - Geen - - {{ player | fullName }} - - - - - } -
-
-
- - - @if (tournamentRegistration.editable) { - - - - cancel - Annuleren - - - } - + } + + @if (tournamentRegistration.editable) { + + + + cancel + Annuleren + + + } + + } @if (!this.showAll) {