Philipp Schrader | 6b2e950 | 2022-03-15 23:42:56 -0700 | [diff] [blame] | 1 | <div class="header" #header> |
Philipp Schrader | 2b33427 | 2023-04-11 21:27:36 -0700 | [diff] [blame] | 2 | <h2> |
| 3 | <span *ngIf="section != 'Team Selection'">{{teamNumber}}</span> |
| 4 | {{section}} |
| 5 | </h2> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 6 | </div> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 7 | <ng-container [ngSwitch]="section"> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 8 | <div |
| 9 | *ngSwitchCase="'Team Selection'" |
| 10 | id="team_selection" |
| 11 | class="container-fluid" |
| 12 | > |
| 13 | <div class="row"> |
| 14 | <label for="match_number">Match Number</label> |
| 15 | <input |
| 16 | [(ngModel)]="matchNumber" |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 17 | (ngModelChange)="updateTeamSelectionValidity()" |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 18 | type="number" |
| 19 | id="match_number" |
| 20 | min="1" |
| 21 | max="999" |
| 22 | /> |
| 23 | </div> |
| 24 | <div class="row"> |
| 25 | <label for="team_number">Team Number</label> |
| 26 | <input |
| 27 | [(ngModel)]="teamNumber" |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 28 | (ngModelChange)="updateTeamSelectionValidity()" |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 29 | type="number" |
| 30 | id="team_number" |
| 31 | min="1" |
| 32 | max="9999" |
| 33 | /> |
| 34 | </div> |
Philipp Schrader | 8aeb14f | 2022-04-08 21:23:18 -0700 | [diff] [blame] | 35 | <div class="row"> |
Philipp Schrader | 30b4a68 | 2022-04-16 14:36:17 -0700 | [diff] [blame] | 36 | <label for="set_number">Set Number</label> |
| 37 | <input |
| 38 | [(ngModel)]="setNumber" |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 39 | (ngModelChange)="updateTeamSelectionValidity()" |
Philipp Schrader | 30b4a68 | 2022-04-16 14:36:17 -0700 | [diff] [blame] | 40 | type="number" |
| 41 | id="set_number" |
| 42 | min="1" |
| 43 | max="10" |
| 44 | /> |
Philipp Schrader | 8aeb14f | 2022-04-08 21:23:18 -0700 | [diff] [blame] | 45 | </div> |
| 46 | <div class="row"> |
Philipp Schrader | 30b4a68 | 2022-04-16 14:36:17 -0700 | [diff] [blame] | 47 | <label for="comp_level">Comp Level</label> |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 48 | <select |
| 49 | [(ngModel)]="compLevel" |
| 50 | (ngModelChange)="updateTeamSelectionValidity()" |
| 51 | type="number" |
| 52 | id="comp_level" |
| 53 | > |
Philipp Schrader | 8aeb14f | 2022-04-08 21:23:18 -0700 | [diff] [blame] | 54 | <option *ngFor="let level of COMP_LEVELS" [ngValue]="level"> |
| 55 | {{COMP_LEVEL_LABELS[level]}} |
| 56 | </option> |
| 57 | </select> |
| 58 | </div> |
Philipp Schrader | e149885 | 2023-04-15 18:06:45 -0700 | [diff] [blame] | 59 | <div class="row"> |
| 60 | <label> |
| 61 | <input |
| 62 | id="pre_scouting" |
| 63 | type="checkbox" |
| 64 | [(ngModel)]="preScouting" |
| 65 | (ngModelChange)="updateTeamSelectionValidity()" |
| 66 | /> |
| 67 | Pre-scouting |
| 68 | </label> |
| 69 | </div> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 70 | <div class="buttons"> |
| 71 | <!-- hack to right align the next button --> |
| 72 | <div></div> |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 73 | <button |
| 74 | class="btn btn-primary" |
| 75 | (click)="changeSectionTo('Init');" |
| 76 | [disabled]="!teamSelectionIsValid" |
| 77 | > |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 78 | Next |
| 79 | </button> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 80 | </div> |
| 81 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 82 | <div *ngSwitchCase="'Init'" id="init" class="container-fluid"> |
| 83 | <h2>Select Starting Position</h2> |
Filip Kujawa | 1d9add9 | 2023-03-03 13:14:40 -0800 | [diff] [blame] | 84 | <img |
| 85 | id="field_starting_positions_image" |
| 86 | src="/sha256/b71def525fb78486617a8b350c0ba6907e8ea25f78d4084a932cba8ae922528c/pictures/field/field.jpg" |
| 87 | alt="Starting Positions Image" |
| 88 | class="img-fluid" |
| 89 | /> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 90 | <div *ngFor="let i of [1, 2, 3, 4]"> |
| 91 | <label> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 92 | <input |
| 93 | type="radio" |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 94 | name="radio-group" |
| 95 | [value]="i" |
| 96 | (change)="selectedValue = $event.target.value" |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 97 | /> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 98 | {{ i }} |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 99 | </label> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 100 | </div> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 101 | <div class="buttons"> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 102 | <!-- Creates a responsive stack of full-width, "block buttons". --> |
Filip Kujawa | 36f5608 | 2023-03-03 10:58:53 -0800 | [diff] [blame] | 103 | <div class="d-grid gap-5"> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 104 | <button |
| 105 | class="btn btn-primary" |
| 106 | [disabled]="!selectedValue" |
| 107 | (click)="changeSectionTo('Pickup'); addAction({type: 'startMatchAction', position: selectedValue});" |
| 108 | > |
| 109 | Start Match |
| 110 | </button> |
| 111 | </div> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 112 | </div> |
| 113 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 114 | <div *ngSwitchCase="'Pickup'" id="PickUp" class="container-fluid"> |
Filip Kujawa | 493b59f | 2023-03-11 17:58:59 -0800 | [diff] [blame] | 115 | <h6 class="text-muted"> |
| 116 | Last Action: {{actionList[actionList.length - 1].type}} |
| 117 | </h6> |
Philipp Schrader | 9ade12c | 2023-04-20 13:03:33 -0700 | [diff] [blame] | 118 | <!-- |
Filip Kujawa | aa7d11f | 2023-04-13 09:12:32 -0700 | [diff] [blame] | 119 | Decrease distance between buttons during auto to make space for auto balancing |
| 120 | selection and keep all buttons visible without scrolling on most devices. |
| 121 | --> |
| 122 | <div |
| 123 | [ngClass]="{'d-grid': true, 'gap-3': autoPhase === true, 'gap-5': autoPhase === false}" |
| 124 | > |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 125 | <button class="btn btn-secondary" (click)="undoLastAction()">UNDO</button> |
| 126 | <button |
| 127 | class="btn btn-danger" |
| 128 | (click)="changeSectionTo('Dead'); addAction({type: 'robotDeathAction', robotOn: false});" |
| 129 | > |
| 130 | DEAD |
| 131 | </button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 132 | <button |
| 133 | class="btn btn-warning" |
| 134 | (click)="changeSectionTo('Place'); addAction({type: 'pickupObjectAction', objectType: ObjectType.kCone});" |
| 135 | > |
| 136 | CONE |
| 137 | </button> |
| 138 | <button |
| 139 | class="btn btn-primary" |
| 140 | (click)="changeSectionTo('Place'); addAction({type: 'pickupObjectAction', objectType: ObjectType.kCube});" |
| 141 | > |
| 142 | CUBE |
| 143 | </button> |
Filip Kujawa | 0b4b1e5 | 2023-04-15 14:05:40 -0700 | [diff] [blame] | 144 | <button |
Filip Kujawa | b73e94c | 2023-04-19 09:33:14 -0700 | [diff] [blame] | 145 | *ngIf="autoPhase && !mobilityCompleted" |
Filip Kujawa | 0b4b1e5 | 2023-04-15 14:05:40 -0700 | [diff] [blame] | 146 | class="btn btn-light" |
| 147 | (click)="addAction({type: 'mobilityAction', mobility: true});" |
| 148 | > |
| 149 | Mobility |
| 150 | </button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 151 | <!-- 'Balancing' during auto. --> |
| 152 | <div *ngIf="autoPhase" class="d-grid gap-2"> |
| 153 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 154 | <input |
| 155 | #docked |
| 156 | type="radio" |
| 157 | id="option1" |
| 158 | name="docked_engaged" |
| 159 | value="docked" |
| 160 | /> |
Philipp Schrader | 87fe98a | 2023-04-15 17:26:34 -0700 | [diff] [blame] | 161 | Docked (on the charging station) |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 162 | </label> |
| 163 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 164 | <input |
| 165 | #engaged |
| 166 | type="radio" |
| 167 | id="option2" |
| 168 | name="docked_engaged" |
| 169 | value="dockedengaged" |
| 170 | /> |
| 171 | Docked & Engaged (level & station lights on) |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 172 | </label> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 173 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 174 | <input |
| 175 | #attempted |
| 176 | type="radio" |
| 177 | id="option3" |
| 178 | name="docked_engaged" |
| 179 | value="failed" |
| 180 | /> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 181 | Attempted to dock and engage but failed |
| 182 | </label> |
Philipp Schrader | 9ade12c | 2023-04-20 13:03:33 -0700 | [diff] [blame] | 183 | <button |
| 184 | class="btn btn-dark" |
| 185 | (click)="autoPhase = false; addAction({type: 'endAutoPhase'}); addAction({type: 'autoBalanceAction', docked: docked.checked, engaged: engaged.checked, balanceAttempt: attempted.checked});" |
| 186 | > |
| 187 | Start Teleop |
| 188 | </button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 189 | </div> |
| 190 | <button |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 191 | *ngIf="!autoPhase" |
| 192 | class="btn btn-info" |
| 193 | (click)="changeSectionTo('Endgame')" |
| 194 | > |
| 195 | Endgame |
| 196 | </button> |
| 197 | </div> |
| 198 | </div> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 199 | <div *ngSwitchCase="'Place'" id="Place" class="container-fluid"> |
Filip Kujawa | 493b59f | 2023-03-11 17:58:59 -0800 | [diff] [blame] | 200 | <h6 class="text-muted"> |
| 201 | Last Action: {{actionList[actionList.length - 1].type}} |
| 202 | </h6> |
Philipp Schrader | 9ade12c | 2023-04-20 13:03:33 -0700 | [diff] [blame] | 203 | <!-- |
Filip Kujawa | aa7d11f | 2023-04-13 09:12:32 -0700 | [diff] [blame] | 204 | Decrease distance between buttons during auto to make space for auto balancing |
| 205 | selection and keep all buttons visible without scrolling on most devices. |
| 206 | --> |
| 207 | <div |
| 208 | [ngClass]="{'d-grid': true, 'gap-3': autoPhase === true, 'gap-5': autoPhase === false}" |
| 209 | > |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 210 | <button class="btn btn-secondary" (click)="undoLastAction()">UNDO</button> |
| 211 | <button |
| 212 | class="btn btn-danger" |
| 213 | (click)="changeSectionTo('Dead'); addAction({type: 'robotDeathAction', robotOn: false});" |
| 214 | > |
| 215 | DEAD |
| 216 | </button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 217 | <button |
| 218 | class="btn btn-success" |
| 219 | (click)="changeSectionTo('Pickup'); addAction({type: 'placeObjectAction', scoreLevel: ScoreLevel.kHigh});" |
| 220 | > |
| 221 | HIGH |
| 222 | </button> |
| 223 | <button |
| 224 | class="btn btn-warning" |
| 225 | (click)="changeSectionTo('Pickup'); addAction({type: 'placeObjectAction', scoreLevel: ScoreLevel.kMiddle});" |
| 226 | > |
| 227 | MID |
| 228 | </button> |
| 229 | <button |
| 230 | class="btn btn-danger" |
| 231 | (click)="changeSectionTo('Pickup'); addAction({type: 'placeObjectAction', scoreLevel: ScoreLevel.kLow});" |
| 232 | > |
| 233 | LOW |
| 234 | </button> |
Filip Kujawa | 0b4b1e5 | 2023-04-15 14:05:40 -0700 | [diff] [blame] | 235 | <button |
Filip Kujawa | b73e94c | 2023-04-19 09:33:14 -0700 | [diff] [blame] | 236 | *ngIf="autoPhase && !mobilityCompleted" |
Filip Kujawa | 0b4b1e5 | 2023-04-15 14:05:40 -0700 | [diff] [blame] | 237 | class="btn btn-light" |
| 238 | (click)="addAction({type: 'mobilityAction', mobility: true});" |
| 239 | > |
| 240 | Mobility |
| 241 | </button> |
Filip Kujawa | 7a045e7 | 2023-04-13 08:41:09 -0700 | [diff] [blame] | 242 | <!-- Impossible to place supercharged pieces in auto. --> |
| 243 | <div *ngIf="autoPhase == false" class="d-grid gap-2"> |
| 244 | <button |
| 245 | class="btn btn-dark" |
| 246 | (click)="changeSectionTo('Pickup'); addAction({type: 'placeObjectAction', scoreLevel: ScoreLevel.kSupercharged});" |
| 247 | > |
| 248 | SUPERCHARGED |
| 249 | </button> |
| 250 | </div> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 251 | <!-- 'Balancing' during auto. --> |
Filip Kujawa | 0b4b1e5 | 2023-04-15 14:05:40 -0700 | [diff] [blame] | 252 | <div *ngIf="autoPhase" class="d-grid gap-1"> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 253 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 254 | <input |
| 255 | #docked |
| 256 | type="radio" |
| 257 | id="option1" |
| 258 | name="docked_engaged" |
| 259 | value="docked" |
| 260 | /> |
Philipp Schrader | 87fe98a | 2023-04-15 17:26:34 -0700 | [diff] [blame] | 261 | Docked (on the charging station) |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 262 | </label> |
| 263 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 264 | <input |
| 265 | #engaged |
| 266 | type="radio" |
| 267 | id="option2" |
| 268 | name="docked_engaged" |
| 269 | value="dockedengaged" |
| 270 | /> |
| 271 | Docked & Engaged (level & station lights on) |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 272 | </label> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 273 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 274 | <input |
| 275 | #attempted |
| 276 | type="radio" |
| 277 | id="option3" |
| 278 | name="docked_engaged" |
| 279 | value="failed" |
| 280 | /> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 281 | Attempted to dock and engage but failed |
| 282 | </label> |
Philipp Schrader | 9ade12c | 2023-04-20 13:03:33 -0700 | [diff] [blame] | 283 | <button |
| 284 | class="btn btn-dark" |
| 285 | (click)="autoPhase = false; addAction({type: 'endAutoPhase'}); addAction({type: 'autoBalanceAction', docked: docked.checked, engaged: engaged.checked, balanceAttempt: attempted.checked});" |
| 286 | > |
| 287 | Start Teleop |
| 288 | </button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 289 | </div> |
| 290 | <button |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 291 | *ngIf="!autoPhase" |
| 292 | class="btn btn-info" |
| 293 | (click)="changeSectionTo('Endgame')" |
| 294 | > |
| 295 | Endgame |
| 296 | </button> |
| 297 | </div> |
| 298 | </div> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 299 | <div *ngSwitchCase="'Endgame'" id="Endgame" class="container-fluid"> |
Filip Kujawa | 493b59f | 2023-03-11 17:58:59 -0800 | [diff] [blame] | 300 | <h6 class="text-muted"> |
| 301 | Last Action: {{actionList[actionList.length - 1].type}} |
| 302 | </h6> |
Filip Kujawa | 36f5608 | 2023-03-03 10:58:53 -0800 | [diff] [blame] | 303 | <div class="d-grid gap-5"> |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 304 | <button class="btn btn-secondary" (click)="undoLastAction()">UNDO</button> |
| 305 | <button |
| 306 | class="btn btn-danger" |
| 307 | (click)="changeSectionTo('Dead'); addAction({type: 'robotDeathAction', robotOn: false});" |
| 308 | > |
| 309 | DEAD |
| 310 | </button> |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 311 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 312 | <input |
| 313 | #docked |
| 314 | type="radio" |
| 315 | id="option1" |
| 316 | name="docked_engaged" |
| 317 | value="docked" |
| 318 | /> |
Philipp Schrader | 87fe98a | 2023-04-15 17:26:34 -0700 | [diff] [blame] | 319 | Docked (on the charging station) |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 320 | </label> |
| 321 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 322 | <input |
| 323 | #engaged |
| 324 | type="radio" |
| 325 | id="option2" |
| 326 | name="docked_engaged" |
| 327 | value="dockedengaged" |
| 328 | /> |
| 329 | Docked & Engaged (level & station lights on) |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 330 | </label> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 331 | <label> |
Evelyn Yang | 6cc153d | 2023-05-24 19:35:16 -0700 | [diff] [blame^] | 332 | <input |
| 333 | #attempted |
| 334 | type="radio" |
| 335 | id="option3" |
| 336 | name="docked_engaged" |
| 337 | value="failed" |
| 338 | /> |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 339 | Attempted to dock and engage but failed |
| 340 | </label> |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 341 | <button |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 342 | *ngIf="!autoPhase" |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 343 | class="btn btn-info" |
Emily Markova | 63c63f6 | 2023-03-29 20:57:35 -0700 | [diff] [blame] | 344 | (click)="changeSectionTo('Review and Submit'); addAction({type: 'endMatchAction', docked: docked.checked, engaged: engaged.checked, balanceAttempt: attempted.checked});" |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 345 | > |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 346 | End Match |
Filip Kujawa | 4413a59 | 2023-03-01 10:54:34 -0800 | [diff] [blame] | 347 | </button> |
| 348 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 349 | </div> |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 350 | <div *ngSwitchCase="'Dead'" id="Dead" class="container-fluid"> |
| 351 | <h2>Robot is dead</h2> |
| 352 | <div class="d-grid gap-2"> |
| 353 | <button |
| 354 | class="btn btn-success" |
| 355 | (click)="changeSectionTo('Pickup'); addAction({type: 'robotDeathAction', robotOn: true}); " |
| 356 | > |
| 357 | Revive |
| 358 | </button> |
Filip Kujawa | 32d13b6 | 2023-03-11 17:41:53 -0800 | [diff] [blame] | 359 | <button |
| 360 | class="btn btn-info" |
Philipp Schrader | 8686bbb | 2023-03-22 20:15:21 -0700 | [diff] [blame] | 361 | (click)="changeSectionTo('Review and Submit'); addAction({type: 'endMatchAction', docked: docked.checked, engaged: engaged.checked});" |
Filip Kujawa | 32d13b6 | 2023-03-11 17:41:53 -0800 | [diff] [blame] | 362 | > |
| 363 | End Match |
| 364 | </button> |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 365 | </div> |
| 366 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 367 | <div *ngSwitchCase="'Review and Submit'" id="Review" class="container-fluid"> |
Filip Kujawa | 36f5608 | 2023-03-03 10:58:53 -0800 | [diff] [blame] | 368 | <div class="d-grid gap-5"> |
Filip Kujawa | 9f56d0e | 2023-03-03 19:44:43 -0800 | [diff] [blame] | 369 | <button class="btn btn-secondary" (click)="undoLastAction()">UNDO</button> |
Filip Kujawa | 32d13b6 | 2023-03-11 17:41:53 -0800 | [diff] [blame] | 370 | <button class="btn btn-warning" (click)="submitActions();">Submit</button> |
Filip Kujawa | 375aaac | 2023-02-28 21:43:47 -0800 | [diff] [blame] | 371 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 372 | </div> |
Filip Kujawa | 0ef334c | 2023-02-20 19:42:45 -0800 | [diff] [blame] | 373 | <div *ngSwitchCase="'Success'" id="Success" class="container-fluid"> |
| 374 | <h2>Successfully submitted data.</h2> |
Philipp Schrader | 817cce3 | 2022-03-26 15:00:00 -0700 | [diff] [blame] | 375 | </div> |
Philipp Schrader | 8686bbb | 2023-03-22 20:15:21 -0700 | [diff] [blame] | 376 | |
Philipp Schrader | 8702b78 | 2023-04-15 17:33:37 -0700 | [diff] [blame] | 377 | <span class="progress_message" role="alert">{{ progressMessage }}</span> |
Philipp Schrader | 8686bbb | 2023-03-22 20:15:21 -0700 | [diff] [blame] | 378 | <span class="error_message" role="alert">{{ errorMessage }}</span> |
Philipp Schrader | 8058743 | 2022-03-05 15:41:22 -0800 | [diff] [blame] | 379 | </ng-container> |