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