Add "team selection" page to "add game" component
This commit is contained in:
@@ -9,13 +9,19 @@
|
||||
<button (click)="switchToNextPage()" [disabled]="not4Players()">Next</button>
|
||||
</div>
|
||||
<div id="announcements" class="visible-{{this.currentPage === 1}}">
|
||||
<p>Players: {{getPlayerNamesAsString()}}</p>
|
||||
<p>Select the announcements for this game:</p>
|
||||
<div class="active-{{isAnnouncementActive(announcement)}}" *ngFor="let announcement of getAllPossibleAnnouncements()" (click)="toggleAnnouncement(announcement)">{{announcement.toString()}}</div>
|
||||
<p id="announcement-warn" *ngIf="!checkAnnouncementsValid()">Illegal set of announcements!</p>
|
||||
<button (click)="switchToNextPage()" [disabled]="!checkAnnouncementsValid()">Next</button>
|
||||
</div>
|
||||
<div id="player-teams" class="visible-{{this.currentPage === 2}}">
|
||||
|
||||
<p>Players: {{getPlayerNamesAsString()}}</p>
|
||||
<p>Highest Announcements: {{getHighestAnnouncements()}}</p>
|
||||
<p>Please select the elder(s):</p>
|
||||
<div class="elder-player-{{isPlayerElder(player)}}" *ngFor="let player of actualPlayers" (click)="toggleElderPlayer(player)">{{player.firstName}}</div>
|
||||
<p id="team-warn" *ngIf="!checkValidTeamAssignment()">Illegal game teams!</p>
|
||||
<button (click)="switchToNextPage()" [disabled]="!checkValidTeamAssignment()">Next</button>
|
||||
</div>
|
||||
<div id="player-points" class="visible-{{this.currentPage === 3}}">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user