Add "Announcements" page to "Add game" component
This commit is contained in:
@@ -3,12 +3,16 @@
|
||||
<div id="game-infos">
|
||||
<!-- The following divs get displayed one after another, kinda wizard-like -->
|
||||
<div id="which-players" class="visible-{{this.currentPage === 0}}">
|
||||
<p>Select the active players for the game:</p>
|
||||
<div class="active-{{isPlayerActive(player)}}" *ngFor="let player of potentialPlayers" (click)="togglePlayer(player)">{{player.firstName}}</div>
|
||||
<p id="player-amount-warn" *ngIf="not4Players()">Illegal amount of players!</p>
|
||||
<button (click)="switchToNextPage()">Next</button>
|
||||
<button (click)="switchToNextPage()" [disabled]="not4Players()">Next</button>
|
||||
</div>
|
||||
<div id="announcements" class="visible-{{this.currentPage === 1}}">
|
||||
|
||||
<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}}">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user