Scouting: Add Practice Match to Data Entry
I also deleted some tests from last year that used an old version of Action from db.go since they were causing problems.
I probably need to go through and delete other old database functions, etc in a future patch.
Signed-off-by: Emily Markova <emily.markova@gmail.com>
Change-Id: Ib13dbbbde901cc3e7c9aaf4d242eb6bac714aa3a
diff --git a/scouting/www/entry/entry.ng.html b/scouting/www/entry/entry.ng.html
index a5d778c..3a672e1 100644
--- a/scouting/www/entry/entry.ng.html
+++ b/scouting/www/entry/entry.ng.html
@@ -58,13 +58,28 @@
<label>
<input
id="pre_scouting"
- type="checkbox"
- [(ngModel)]="preScouting"
+ name="comp_type"
+ type="radio"
+ [(ngModel)]="compType"
+ value="Prescouting"
(ngModelChange)="updateTeamSelectionValidity()"
/>
Pre-scouting
</label>
</div>
+ <div class="row">
+ <label>
+ <input
+ id="practice_match"
+ name="comp_type"
+ type="radio"
+ [(ngModel)]="compType"
+ value="Practice"
+ (ngModelChange)="updateTeamSelectionValidity()"
+ />
+ Practice Match
+ </label>
+ </div>
<div class="buttons">
<!-- hack to right align the next button -->
<div></div>
@@ -429,6 +444,7 @@
<div *ngSwitchCase="'Review and Submit'" id="Review" class="container-fluid">
<div class="row">
<ul id="review_data">
+ <div *ngIf="compType!='Regular'">This is a {{this.compType}} match</div>
<li *ngFor="let action of actionList" style="display: flex">
<div [ngSwitch]="action.actionTakenType" style="padding: 0px">
<span *ngSwitchCase="ActionType.StartMatchAction">