Add an "Import match list" tab to the scouting web page
This patch adds a new tab to the scouting web page to import the match
list. You have to point the server at a config file with `--tba_config`.
See its `--help` for more information.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I606915a6cc5776fe183da41ab8b04b063f57dafd
diff --git a/scouting/www/app.ng.html b/scouting/www/app.ng.html
index f763b7d..2fafceb 100644
--- a/scouting/www/app.ng.html
+++ b/scouting/www/app.ng.html
@@ -1,5 +1,13 @@
-<!--Progress Bar-->
-<!--<div class="row">
- <h1 class="text-end">Match {{matchNumber}}, Team {{teamNumber}}</h1>
-</div>-->
-<app-entry></app-entry>
+<ul class="nav nav-tabs">
+ <li class="nav-item">
+ <a class="nav-link" [class.active]="tabIs('Entry')" (click)="switchTabTo('Entry')">Data Entry</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" [class.active]="tabIs('ImportMatchList')" (click)="switchTabTo('ImportMatchList')">Import Match List</a>
+ </li>
+</ul>
+
+<ng-container [ngSwitch]="tab">
+ <app-entry *ngSwitchCase="'Entry'"></app-entry>
+ <app-import-match-list *ngSwitchCase="'ImportMatchList'"></app-import-match-list>
+</ng-container>