Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 1 | <div class="header"> |
| 2 | <h2>{{section}}</h2> |
| 3 | </div> |
| 4 | |
| 5 | <ng-container [ngSwitch]="section"> |
Philipp Schrader | 93ade04 | 2022-03-05 17:16:10 -0800 | [diff] [blame] | 6 | <div *ngSwitchCase="'Team Selection'" id="team_selection" class="container-fluid"> |
| 7 | <div class="row"> |
| 8 | <label for="match_number">Match Number</label> |
| 9 | <input [(ngModel)]="matchNumber" type="number" id="match_number" min="1" max="999"> |
| 10 | </div> |
| 11 | <div class="row"> |
| 12 | <label for="team_number">Team Number</label> |
| 13 | <input [(ngModel)]="teamNumber" type="number" id="team_number" min="1" max="9999"> |
| 14 | </div> |
| 15 | <div class="text-right"> |
| 16 | <button class="btn btn-primary" (click)="nextSection()">Next</button> |
| 17 | </div> |
| 18 | </div> |
| 19 | |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 20 | <div *ngSwitchCase="'Auto'" id="auto" class="container-fluid"> |
| 21 | <div class="row"> |
| 22 | <!--Image here--> |
| 23 | <h4>Image</h4> |
| 24 | <form> |
| 25 | <!--Choice for each ball location--> |
| 26 | <input type="radio" name="balls" value="1" id="ball-1"><label for="ball-1">Ball 1</label> |
| 27 | <input type="radio" name="balls" value="2" id="ball-2"><label for="ball-2">Ball 2</label><br> |
| 28 | <input type="radio" name="balls" value="3" id="ball-3"><label for="ball-3">Ball 3</label> |
| 29 | <input type="radio" name="balls" value="4" id="ball-4"><label for="ball-4">Ball 4</label> |
| 30 | </form> |
| 31 | </div> |
| 32 | <div class="row"> |
| 33 | <!--Image here--> |
| 34 | <h4>Image</h4> |
| 35 | <form> |
| 36 | <input type="radio" name="quadrant" id="first" value="Quadrant 1"> |
| 37 | <label for="first">Quadrant 1</label> |
| 38 | <input type="radio" name="quadrant" id="second" value="Quadrant 2"> |
| 39 | <label for="second">Quadrant 2</label><br> |
| 40 | <input type="radio" name="quadrant" id="third" value="Quadrant 3"> |
| 41 | <label for="third">Quadrant 3</label> |
| 42 | <input type="radio" name="quadrant" id="fourth" value="Quadrant 4"> |
| 43 | <label for="fourth">Quadrant 4</label> |
| 44 | </form> |
| 45 | </div> |
| 46 | <div class="row justify-content-center"> |
Alex Perry | f82524c | 2022-03-09 20:04:47 -0800 | [diff] [blame^] | 47 | <frc971-counter-button class="col-4" [(value)]="autoUpperShotsMade">Upper</frc971-counter-button> |
| 48 | <frc971-counter-button class="col-4" [(value)]="autoLowerShotsMade">Lower</frc971-counter-button> |
| 49 | <frc971-counter-button class="col-4" [(value)]="autoShotsMissed">Missed</frc971-counter-button> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 50 | </div> |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 51 | <div class="buttons"> |
| 52 | <!-- hack to right align the next button --> |
| 53 | <div></div> |
| 54 | <button class="btn btn-primary" (click)="nextSection()">Next</button> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 55 | </div> |
| 56 | </div> |
| 57 | |
| 58 | <div *ngSwitchCase="'TeleOp'" id="teleop" class="container-fluid"> |
| 59 | <div class="row justify-content-center"> |
Alex Perry | f82524c | 2022-03-09 20:04:47 -0800 | [diff] [blame^] | 60 | <frc971-counter-button class="col-4" [(value)]="teleUpperShotsMade">Upper</frc971-counter-button> |
| 61 | <frc971-counter-button class="col-4" [(value)]="teleLowerShotsMade">Lower</frc971-counter-button> |
| 62 | <frc971-counter-button class="col-4" [(value)]="teleShotsMissed">Missed</frc971-counter-button> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 63 | </div> |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 64 | <div class="buttons"> |
| 65 | <button class="btn btn-primary" (click)="prevSection()">Back</button> |
| 66 | <button class="btn btn-primary" (click)="nextSection()">Next</button> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | <div *ngSwitchCase="'Climb'" id="climb" class="container-fluid"> |
| 71 | <div class="row"> |
| 72 | <form> |
| 73 | <input (click)="setClimbedFalse()" type="radio" name="climbing" id="continue"><label for="continue">Kept Shooting</label><br> |
| 74 | <input (click)="setClimbedTrue()" type="radio" name="climbing" id="climbed"><label for="climbed">Attempted to Climb</label><br> |
| 75 | </form> |
| 76 | </div> |
| 77 | <div *ngIf="climbed"> |
| 78 | <h4>Bar Made</h4> |
| 79 | <form> |
| 80 | <input (click)="setLow()" type="radio" name="level" id="low"><label for="low">Low</label><br> |
| 81 | <input (click)="setMedium()" type="radio" name="level" id="medium"><label for="medium">Medium</label><br> |
| 82 | <input (click)="setHigh()" type="radio" name="level" id="high"><label for="high">High</label><br> |
| 83 | <input (click)="setTransversal()" type="radio" name="level" id="transversal"><label for="transversal">Transversal</label><br> |
| 84 | <input (click)="toggleProper()" type="checkbox" id="proper"><label for="proper">~10 seconds to attempt next level?</label> |
| 85 | </form> |
| 86 | </div> |
| 87 | <div class="row"> |
| 88 | <h4>Comments</h4> |
| 89 | <textarea></textarea> |
| 90 | </div> |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 91 | <div class="buttons"> |
| 92 | <button class="btn btn-primary" (click)="prevSection()">Back</button> |
| 93 | <button class="btn btn-primary" (click)="nextSection()">Next</button> |
| 94 | </div> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 95 | </div> |
| 96 | |
| 97 | <div *ngSwitchCase="'Defense'" id="defense" class="container-fluid"> |
| 98 | <h4 class="text-center">How much defense did other robots play on this robot?</h4> |
| 99 | |
| 100 | <div class="row" style="min-height: 50px"> |
| 101 | <div class="col"> |
| 102 | <h6>None</h6> |
| 103 | </div> |
| 104 | |
| 105 | <div class="col"> |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 106 | <input type="range" min="1" max="5" value="3" (input)="defensePlayedOnSlider($event)"> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 107 | </div> |
| 108 | |
| 109 | <div class="col"> |
| 110 | <h6>A lot</h6> |
| 111 | </div> |
| 112 | </div> |
| 113 | |
| 114 | <h6 class="text-center">{{defensePlayedOnScore}}</h6> |
| 115 | |
| 116 | <h4 class="text-center">How much defense did this robot play?</h4> |
| 117 | |
| 118 | <div class="row"> |
| 119 | |
| 120 | <div class="col"> |
| 121 | <h6>None</h6> |
| 122 | </div> |
| 123 | |
| 124 | <div class="col"> |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 125 | <input type="range" min="1" max="5" value="3" (input)="defensePlayedSlider($event)"> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 126 | </div> |
| 127 | |
| 128 | <div class="col"> |
| 129 | <h6>A lot</h6> |
| 130 | </div> |
| 131 | </div> |
| 132 | <h6 class="text-center">{{defensePlayedScore}}</h6> |
| 133 | |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 134 | <div class="buttons"> |
| 135 | <button class="btn btn-primary" (click)="prevSection()">Back</button> |
| 136 | <button class="btn btn-primary" (click)="nextSection()">Next</button> |
| 137 | </div> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 138 | </div> |
| 139 | |
| 140 | <div *ngSwitchCase="'Review and Submit'" id="review" class="container-fluid"> |
Philipp Schrader | 93ade04 | 2022-03-05 17:16:10 -0800 | [diff] [blame] | 141 | <h4>Team Selection</h4> |
| 142 | <ul> |
| 143 | <li>Match number: {{matchNumber}}</li> |
| 144 | <li>Team number: {{teamNumber}}</li> |
| 145 | </ul> |
| 146 | |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 147 | <h4>Auto</h4> |
| 148 | <ul> |
| 149 | <li>Upper Shots Made: {{autoUpperShotsMade}}</li> |
| 150 | <li>Lower Shots Made: {{autoLowerShotsMade}}</li> |
| 151 | <li>Missed Shots: {{autoShotsMissed}}</li> |
| 152 | </ul> |
| 153 | |
| 154 | <h4>TeleOp</h4> |
| 155 | <ul> |
| 156 | <li>Upper Shots Made: {{teleUpperShotsMade}}</li> |
| 157 | <li>Lower Shots Made: {{teleLowerShotsMade}}</li> |
Philipp Schrader | fa09693 | 2022-03-05 20:07:10 -0800 | [diff] [blame] | 158 | <li>Missed Shots: {{teleShotsMissed}}</li> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 159 | </ul> |
| 160 | |
| 161 | <h4>Climb</h4> |
| 162 | <ul> |
| 163 | <div *ngIf="climbed"> |
| 164 | <li *ngIf="climbed">Attempted to Climb?: Yes</li> |
| 165 | <li>Level: {{level}}</li> |
| 166 | <li *ngIf="proper">Proper Attempt: Yes</li> |
| 167 | <li *ngIf="!proper">Proper Attempt: No</li> |
| 168 | </div> |
| 169 | <li *ngIf="!climbed">Attempted to Climb: No</li> |
| 170 | </ul> |
| 171 | |
| 172 | <h4>Defense</h4> |
| 173 | <ul> |
| 174 | <li>Defense Played On Rating: {{defensePlayedOnScore}}</li> |
Philipp Schrader | fa09693 | 2022-03-05 20:07:10 -0800 | [diff] [blame] | 175 | <li>Defense Played Rating: {{defensePlayedScore}}</li> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 176 | </ul> |
| 177 | |
Philipp Schrader | 72beced | 2022-03-07 05:29:52 -0800 | [diff] [blame] | 178 | <span class="error_message">{{ errorMessage }}</span> |
Philipp Schrader | 8b8ed67 | 2022-03-05 18:08:50 -0800 | [diff] [blame] | 179 | |
Alex Perry | bb3d206 | 2022-03-05 18:14:33 -0800 | [diff] [blame] | 180 | <div class="buttons"> |
| 181 | <button class="btn btn-primary" (click)="prevSection()">Back</button> |
| 182 | <button class="btn btn-primary" (click)="nextSection()">Submit</button> |
| 183 | </div> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 184 | </div> |
| 185 | </ng-container> |