forked from Yeti-Robotics/angular-scouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam.html
264 lines (261 loc) · 10 KB
/
team.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<div class="container-fluid">
<div class="form-group">
<label for="scoutTeam">Scouted by:</label>
<select id="scoutTeam" class="form-control" ng-model="currentTeam" ng-change="loadData(currentTeam.team_number)" ng-options="team as (team.team_number + ' - ' + team.team_name) for team in teams track by team.team_number">
</select>
</div>
<div ng-show="error != ''">
<h1 class="text-center">{{error}}</h1>
</div>
<div ng-show="error == ''">
<h2>Team {{teamNumber}}
<a class="btn btn-primary" style="float: right" ng-href="#/pit/{{teamNumber}}">Click for pit data</a>
<br>
<h6 class="card-subtitle text-muted">{{data.team.team_name}}</h6>
</h2>
</div>
<div class="card-columns">
<!--Auto data-->
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseAuto" ng-click="autoCollapsed = !autoCollapsed">
Auto Data
<i style="float: right" ng-if="!autoCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="autoCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div id="collapseAuto" class="collapse card-body table-responsive">
<table class="table table-striped table-hover table-bordered">
<tbody>
<tr>
<td>Likelihood of Crossing the Auto Line</td>
<td>
<div class="progress">
<div ng-class="chooseBar(data.stats.avg_auto_check)" class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
style="width:{{data.stats.avg_auto_check}}%">
{{data.stats.avg_auto_check | number:0}}%
</div>
</div>
</td>
</tr>
<tr>
<td>Total Cubes Placed in Switch</td>
<td>{{data.stats.total_auto_switch}}</td>
</tr>
<tr>
<td>Total Cubes Placed in Scale</td>
<td>{{data.stats.total_auto_scale}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--Teleop data-->
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseTele" ng-click="teleCollapsed = !teleCollapsed">
Teleop Data
<i style="float: right" ng-if="!teleCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="teleCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div id="collapseTele" class="collapse card-body table-responsive">
<table class="table table-striped table-hover table-bordered">
<tbody>
<tr>
<td>Able to Stack Scale Cubes</td>
<td>
<i ng-if="data.tele_cube_stack" class="material-icons text-success">check</i>
<i ng-if="!data.tele_cube_stack" class="material-icons text-danger">clear</i>
</td>
</tr>
<tr>
<td>Likelihood of Climbing the Bar</td>
<td>
<div class="progress">
<div ng-class="chooseBar(data.stats.climb_accuracy)" class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
style="width:{{data.stats.climb_accuracy}}%">
<span class="text-center">{{data.stats.climb_accuracy | number:0}}%</span>
</div>
</div>
</td>
</tr>
<tr>
<td>Likelihood of Helping Other Robots Climb</td>
<td>
<div class="progress">
<div ng-class="chooseBar(data.stats.avg_help_climb)" class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
style="width:{{data.stats.avg_help_climb}}%">
{{data.stats.avg_help_climb | number:0}}%
</div>
</div>
</td>
</tr>
<tr>
<td>Likelihood of Robot Climbing via a Ramp</td>
<td>
<div class="progress">
<div ng-class="chooseBar(data.stats.avg_ramp_climb)" class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuemin="0" aria-valuemax="100" style="width:{{data.stats.avg_ramp_climb}}%">
{{data.stats.avg_ramp_climb | number:0}}%
</div>
</div>
</td>
</tr>
<tr>
<td>Likelihood of Defending</td>
<td>
<div class="progress">
<div ng-class="chooseBar(data.stats.avg_tele_defense)" class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuemin="0" aria-valuemax="100" style="width:{{data.stats.avg_tele_defense}}%">
{{data.stats.avg_tele_defense | number:0}}%
</div>
</div>
</td>
</tr>
<tr>
<td>Total Cubes Placed on Switch</td>
<td>{{data.stats.total_switch_cubes}}</td>
</tr>
<tr>
<td>Total Cubes on Enemy Switch</td>
<td>{{data.stats.total_enemy_switch_cubes}}</td>
</tr>
<tr>
<td>Total Cubes Placed on Scale</td>
<td>{{data.stats.total_scale_cubes}}</td>
</tr>
<tr>
<td>Total Cubes Exchanged to Human Players</td>
<td>{{data.stats.total_vault}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--MATCH DATA -->
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseMatch" ng-click="matchCollapsed = !matchCollapsed">
Match Data
<i style="float: right" ng-if="!matchCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="matchCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div class="card-body collapse" id="collapseMatch">
<div class="card-columns">
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseTeleMatch" ng-click="teleMatchCollapsed = !teleMatchCollapsed">
Teleop Match Data
<i style="float: right" ng-if="!teleMatchCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="teleMatchCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div class="card-body collapse table-responsive" id="collapseTeleMatch">
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Match #</th>
<th>Alliance Switch Cubes</th>
<th>Enemy Switch Cubes</th>
<th>Scale cubes</th>
<th>Cubes Put in Vault</th>
<th>Climbed</th>
<th>Deployed a Ramp</th>
<th>Played Defense</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="data in data.formData">
<td >
<a href="#/match/{{data.match_number}}">{{data.match_number}}</a>
</td>
<td>{{data.switch_cubes}}</td>
<td>{{data.enemy_switch_cubes}}</td>
<td>{{data.scale_cubes}}</td>
<td>{{data.vault_cubes}}</td>
<td>
<i ng-if="data.bar_climb" class="material-icons text-success">check</i>
<i ng-if="!data.bar_climb" class="material-icons text-danger">clear</i>
</td>
<td>
<i ng-if="data.help_climb" class="material-icons text-success">check</i>
<i ng-if="!data.help_climb" class="material-icons text-danger">clear</i>
</td>
<td>
<i ng-if="data.tele_defense" class="material-icons text-success">check</i>
<i ng-if="!data.tele_defense" class="material-icons text-danger">clear</i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseAutoMatch" ng-click="autoMatchCollapsed = !autoMatchCollapsed">
Auto Match Data
<i style="float: right" ng-if="!autoMatchCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="autoMatchCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div class="card-body collapse table-responsive" id="collapseAutoMatch">
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Match #</th>
<th>Crossed Auto Line</th>
<th>Switch Cubes</th>
<th>Scale cubes</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="data in data.formData">
<td>
<a href="#/match/{{data.match_number}}">{{data.match_number}}</a>
</td>
<td>
<i ng-if="data.auto_check" class="material-icons text-success">check</i>
<i ng-if="!data.auto_check" class="material-icons text-danger">clear</i>
</td>
<td>{{data.auto_switch}}</td>
<td>{{data.auto_scale}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--SCOUTING COMMENTS -->
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseComments" ng-click="commentsCollapse = !commentsCollapse">
Comments
<i style="float: right" ng-if="!commentsCollapse" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="commentsCollapse" class="material-icons">arrow_drop_up</i>
</h5>
<div class="card-body collapse" id="collapseComments">
<div class="card">
<ul class="list-group list-group-flush">
<li class="list-group-item" ng-repeat="data in data.formData">
{{data.comment}}
<span ng-if="data.comment == ''">No comment.</span>
<footer class="blockquote-footer">{{data.name}}, match #{{data.match_number}}</footer>
</li>
</ul>
</div>
<div ng-if="isClimbComment">
<div class="card">
<h5 class="card-header" data-toggle="collapse" data-target="#collapseClimb" ng-click="climbCollapsed = !climbCollapsed">
Specialized Climbing Comments
<i style="float: right" ng-if="!climbCollapsed" class="material-icons">arrow_drop_down</i>
<i style="float: right" ng-if="climbCollapsed" class="material-icons">arrow_drop_up</i>
</h5>
<div id="collapseClimb" class="collapse card-body">
<div class="card">
<ul class="list-group list-group-flush">
<li class="list-group-item" ng-repeat="row in climbComments">
{{row.other_climb}}
<footer class="blockquote-footer">{{row.name}}, match #{{row.match_number}}</footer>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>