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/entry/BUILD b/scouting/www/entry/BUILD
index 55b6937..2c394de 100644
--- a/scouting/www/entry/BUILD
+++ b/scouting/www/entry/BUILD
@@ -2,13 +2,15 @@
ts_library(
name = "entry",
- srcs = glob([
- "*.ts",
- ]),
- angular_assets = glob([
- "*.ng.html",
- "*.css",
- ]),
+ srcs = [
+ "entry.component.ts",
+ "entry.module.ts",
+ ],
+ angular_assets = [
+ "entry.component.css",
+ "entry.ng.html",
+ "//scouting/www:common_css",
+ ],
compiler = "//tools:tsc_wrapped_with_angular",
target_compatible_with = ["@platforms//cpu:x86_64"],
use_angular_plugin = True,
diff --git a/scouting/www/entry/entry.component.css b/scouting/www/entry/entry.component.css
index 7cbc6d7..76a3c29 100644
--- a/scouting/www/entry/entry.component.css
+++ b/scouting/www/entry/entry.component.css
@@ -19,10 +19,6 @@
height: 150px;
}
-.error_message {
- color: red;
-}
-
button {
touch-action: manipulation;
}
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index ddc31df..fb4a1b1 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -15,7 +15,7 @@
@Component({
selector: 'app-entry',
templateUrl: './entry.ng.html',
- styleUrls: ['./entry.component.css']
+ styleUrls: ['../common.css', './entry.component.css']
})
export class EntryComponent {
section: Section = 'Team Selection';
diff --git a/scouting/www/entry/entry.ng.html b/scouting/www/entry/entry.ng.html
index c210ea3..b5783d2 100644
--- a/scouting/www/entry/entry.ng.html
+++ b/scouting/www/entry/entry.ng.html
@@ -209,7 +209,7 @@
<li>Defense Played Rating: {{defensePlayedScore}}</li>
</ul>
- <div class="error_message">{{ errorMessage }}</div>
+ <span class="error_message">{{ errorMessage }}</span>
<div class="buttons">
<button class="btn btn-primary" (click)="prevSection()">Back</button>