Add support for entering eliminations matches on the scouting app
This patch plumbs through the "round" and "compLevel" fields where
necessary in order to let folks scout eliminations matches.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Idf20d77ed36b79f7dffb598f98e382260e6b81c9
diff --git a/scouting/www/entry/entry.ng.html b/scouting/www/entry/entry.ng.html
index b8eaa78..46e5989 100644
--- a/scouting/www/entry/entry.ng.html
+++ b/scouting/www/entry/entry.ng.html
@@ -28,6 +28,18 @@
max="9999"
/>
</div>
+ <div class="row">
+ <label for="round">Round</label>
+ <input [(ngModel)]="round" type="number" id="round" min="1" max="10" />
+ </div>
+ <div class="row">
+ <label for="comp_level">Round</label>
+ <select [(ngModel)]="compLevel" type="number" id="comp_level">
+ <option *ngFor="let level of COMP_LEVELS" [ngValue]="level">
+ {{COMP_LEVEL_LABELS[level]}}
+ </option>
+ </select>
+ </div>
<div class="buttons">
<!-- hack to right align the next button -->
<div></div>
@@ -348,6 +360,8 @@
<ul>
<li>Match number: {{matchNumber}}</li>
<li>Team number: {{teamNumber}}</li>
+ <li>Round: {{round}}</li>
+ <li>Comp Level: {{COMP_LEVEL_LABELS[compLevel]}}</li>
</ul>
<h4>Auto</h4>
@@ -372,7 +386,7 @@
<h4>Climb</h4>
<ul>
- <li>Level: {{level | levelToString}}</li>
+ <li>Climb Level: {{level | levelToString}}</li>
<li>Comments: {{comment}}</li>
</ul>