diff --git a/src/app/components/player-registrations/player-registrations.component.html b/src/app/components/player-registrations/player-registrations.component.html index 3cf3469..12039b9 100644 --- a/src/app/components/player-registrations/player-registrations.component.html +++ b/src/app/components/player-registrations/player-registrations.component.html @@ -14,37 +14,43 @@
- - - Partner - - Geen - - {{ player | fullName }} - - - - + @if (eventRegistration.doublesEvent) { + + + Partner + + Geen + + {{ player | fullName }} + + + + + }
- - - - cancel - Annuleren - - + @if (tournamentRegistration.editable) { + + + + cancel + Annuleren + + + } - + @if (!this.showAll) { + + } } diff --git a/src/app/components/tournament-divide/tournament-divide.component.html b/src/app/components/tournament-divide/tournament-divide.component.html index a3f2ddd..6f2133a 100644 --- a/src/app/components/tournament-divide/tournament-divide.component.html +++ b/src/app/components/tournament-divide/tournament-divide.component.html @@ -1,45 +1,51 @@ - - -
Indeling voor {{ tournament.name }}
-
- - - -
Indeling {{ TournamentEvent.getType(event.type) }}
-
- - - - - - {{ group.name }} {{ group.teams.length }} - - - - - - - - - - - - - - - - - - - - - - - -
NaamClubSpeelsterktePartnerClubSpeelsterkte
{{ team.player1 | fullName }}{{ team.player1.club }}{{ getStrength(team.player1.strength.valueOf()) }}{{ team.player2 | fullName }}{{ team.player2.club }}{{ getStrength(team.player2.strength.valueOf()) }}
-
-
-
-
-
-
+@if (tournament) { + + +
Indeling voor {{ tournament.name }}
+
+ + + +
Indeling {{ TournamentEvent.getType(event.type) }}
+
+ + + + + + {{ group.name }} {{ group.teams.length }} + + + + + + + + + @if (event.doublesEvent) { + + + + } + + + + + + + + @if (event.doublesEvent) { + + + + } + + +
NaamClubSpeelsterktePartnerClubSpeelsterkte
{{ team.player1 | fullName }}{{ team.player1.club }}{{ getStrength(team.player1.strength.valueOf()) }}{{ team.player2 | fullName }}{{ team.player2.club }}{{ getStrength(team.player2.strength.valueOf()) }}
+
+
+
+
+
+
+} diff --git a/src/app/components/tournament-draw/tournament-draw.component.html b/src/app/components/tournament-draw/tournament-draw.component.html index fa68ac1..5c51a82 100644 --- a/src/app/components/tournament-draw/tournament-draw.component.html +++ b/src/app/components/tournament-draw/tournament-draw.component.html @@ -1,40 +1,41 @@ - - -
Loting voor {{ tournament.name }}
-
- - - -
Loting {{ TournamentEvent.getType(event.type) }}
-
- - - - - - {{ group.name }} {{ group.teams.length }} - - - - - - - - - - - - - - - - - -
Team 1-Team 2
{{ match.team1 | teamText }}-{{ match.team2 | teamText }}
-
-
-
-
-
-
- +@if (tournament) { + + +
Loting voor {{ tournament.name }}
+
+ + + +
Loting {{ TournamentEvent.getType(event.type) }}
+
+ + + + + + {{ group.name }} {{ group.teams.length }} + + + + + + + + + + + + + + + + + +
Team 1-Team 2
{{ match.team1 | teamText }}-{{ match.team2 | teamText }}
+
+
+
+
+
+
+} diff --git a/src/app/components/tournament-list/tournament-list.component.html b/src/app/components/tournament-list/tournament-list.component.html index 2a51fab..861d99a 100644 --- a/src/app/components/tournament-list/tournament-list.component.html +++ b/src/app/components/tournament-list/tournament-list.component.html @@ -1,9 +1,4 @@ - @@ -16,28 +11,68 @@ - - - - - - - + @for (tournament of getActiveTournaments(); track tournament) { + + + + + + + + } + @if (showInactive) { + @for (tournament of getInactiveTournaments(); track tournament) { + + + + + + + + } + }
{{ tournament.id }}{{ tournament.name }}{{ tournament.date }}{{ Tournament.getStatus(tournament) }} - - edit - Bewerk - - - group - Inschrijvingen - - - safety_divider - Loting wissen - -
{{ tournament.id }}{{ tournament.name }}{{ tournament.date }}{{ Tournament.getStatus(tournament) }} + @if (Tournament.getStatus(tournament) != 'Afgerond') { + + edit + Bewerk + + } + + group + Inschrijvingen + + @if (Tournament.getStatus(tournament) == 'Geloot') { + + safety_divider + Loting wissen + + } +
{{ tournament.id }}{{ tournament.name }}{{ tournament.date }}{{ Tournament.getStatus(tournament) }} + @if (Tournament.getStatus(tournament) != 'Afgerond') { + + edit + Bewerk + + } + + group + Inschrijvingen + + @if (Tournament.getStatus(tournament) == 'Geloot') { + + safety_divider + Loting wissen + + } +
+ @if (!showInactive) { + + expand + Toon inactief + + } add Nieuw toernooi diff --git a/src/app/components/tournament-list/tournament-list.component.ts b/src/app/components/tournament-list/tournament-list.component.ts index 41f6fba..4c3b3df 100644 --- a/src/app/components/tournament-list/tournament-list.component.ts +++ b/src/app/components/tournament-list/tournament-list.component.ts @@ -20,6 +20,7 @@ import {TitleService} from "../../service/title.service"; export class TournamentListComponent implements OnInit, AfterContentChecked { tournaments: Tournament[]; + showInactive: boolean = false; constructor( private tournamentService: TournamentService, @@ -46,4 +47,14 @@ export class TournamentListComponent implements OnInit, AfterContentChecked { }) } + getActiveTournaments(): Tournament[] { + if (!this.tournaments) return []; + return this.tournaments.filter(tournament => tournament.active); + } + + getInactiveTournaments(): Tournament[] { + if (!this.tournaments) return []; + return this.tournaments.filter(tournament => !tournament.active); + } + } diff --git a/src/app/components/tournament-manage/tournament-manage.component.html b/src/app/components/tournament-manage/tournament-manage.component.html index c667214..7f88b40 100644 --- a/src/app/components/tournament-manage/tournament-manage.component.html +++ b/src/app/components/tournament-manage/tournament-manage.component.html @@ -71,9 +71,11 @@ Naam Club Speelsterkte - Partner - Club - Speelsterkte + @if (event.doublesEvent) { + Partner + Club + Speelsterkte + } @@ -81,9 +83,11 @@ {{ team.player1 | fullName }} {{ team.player1.club }} {{ getStrength(team.player1.strength.valueOf()) }} - {{ team.player2 | fullName }} - {{ team.player2?.club }} - {{ getStrength(team.player2?.strength?.valueOf()) }} + @if (event.doublesEvent) { + {{ team.player2 | fullName }} + {{ team.player2?.club }} + {{ getStrength(team.player2?.strength?.valueOf()) }} + } diff --git a/src/app/components/tournament-registrations/tournament-registrations.component.html b/src/app/components/tournament-registrations/tournament-registrations.component.html index dc91a69..c6f04d4 100644 --- a/src/app/components/tournament-registrations/tournament-registrations.component.html +++ b/src/app/components/tournament-registrations/tournament-registrations.component.html @@ -1,32 +1,38 @@ - - -
Inschrijvingen voor {{ tournament.name }}
-
- - - -
{{ TournamentEvent.getType(event.type) }} ({{ event.registrations.length}} inschrijvingen)
-
- - - - - - - - - - - - - - - - - - -
NaamClubPartnerClub
{{ registration.player | fullName }}{{ registration.player.club }}{{ registration.partner | fullName }}{{ registration.partner?.club }}
-
-
-
-
+@if (tournament) { + + +
Inschrijvingen voor {{ tournament.name }}
+
+ + + +
{{ TournamentEvent.getType(event.type) }} ({{ event.registrations.length}} inschrijvingen)
+
+ + + + + + + @if (event.doublesEvent) { + + + } + + + + + + + @if (event.doublesEvent) { + + + } + + +
NaamClubPartnerClub
{{ registration.player | fullName }}{{ registration.player.club }}{{ registration.partner?.club }}{{ registration.partner | fullName }}
+
+
+
+
+} diff --git a/src/app/components/tournament-validate/tournament-validate.component.html b/src/app/components/tournament-validate/tournament-validate.component.html index 717ff42..01cdf54 100644 --- a/src/app/components/tournament-validate/tournament-validate.component.html +++ b/src/app/components/tournament-validate/tournament-validate.component.html @@ -36,16 +36,20 @@ Naam Club - Partner - Club + @if (event.doublesEvent) { + Partner + Club + } {{ registration.player | fullName }} {{ registration.player.club }} - {{ registration.partner | fullName }} - {{ registration.partner?.club }} + @if (event.doublesEvent) { + {{ registration.partner | fullName }} + {{ registration.partner?.club }} + } @@ -60,11 +64,6 @@
  • {{ getIconForSeverity(validation.severity) }} -