Alex Perry | bb90105 | 2022-03-23 19:46:15 -0700 | [diff] [blame] | 1 | <h2>Notes</h2> |
| 2 | |
| 3 | <ng-container [ngSwitch]="section"> |
| 4 | <div *ngSwitchCase="'TeamSelection'"> |
| 5 | <label for="team_number_notes">Team Number</label> |
| 6 | <input [(ngModel)]="teamNumber" type="number" id="team_number_notes" min="1" max="9999"> |
| 7 | <button class="btn btn-primary" (click)="setTeamNumber()">Select</button> |
| 8 | </div> |
| 9 | |
| 10 | <div *ngSwitchCase="'Data'"> |
| 11 | <h3> Scouting team: {{teamNumber}}</h3> |
| 12 | <ul *ngFor="let note of notes"> |
| 13 | <li class="note"> |
| 14 | {{ note.data }} |
| 15 | </li> |
| 16 | </ul> |
| 17 | <textarea class="text-input" [(ngModel)]="newData"></textarea> |
| 18 | <div class="buttons"> |
| 19 | <button class="btn btn-primary" (click)="changeTeam()">Change team</button> |
| 20 | <button class="btn btn-primary" (click)="submitData()">Submit</button> |
| 21 | </div> |
| 22 | </div> |
| 23 | <div class="error"> |
| 24 | {{errorMessage}} |
| 25 | </div> |
| 26 | </ng-container> |