-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscores.html
90 lines (84 loc) · 3.89 KB
/
scores.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
<ion-view view-title="Golf Match">
<ion-nav-buttons side="left">
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
<ion-nav-buttons side="right">
<a target="_" href="https://airtable.com/shrMMjfn75ibr8V2g">
<button class="button button-stable"> <i class="icon ion-edit"></i> Edit Scores </button> </a>
</ion-nav-buttons>
<ion-header-bar class="bar-positive">
<h1 class="title"> </h1>
</ion-header-bar>
<ion-content class="has-header">
<ion-list>
<div ng-repeat="group in accGroup" ng-init="hhidx = $index">
<ion-item class="item-stable"
ng-click="toggleGroup(group)"
ng-class="{active: group.isShown}">
<i class="icon" ng-class="group.isShown ?
'ion-minus' : 'ion-plus'"></i>
Hole #{{hhidx+1}}
</ion-item>
<ion-item class="item-accordion"
ng-repeat="item in byTeam"
ng-init="ttidx = $index"
ng-show="group.isShown">
{{item.name}} :: {{item.scores[hhidx]}} / {{item.putts[hhidx]}}
</ion-item>
</div>
</ion-list>
<ion-list>
<ion-item>
<div class="button button-small"> :: {{x.Team}} :: </div>
<div class="button button-small">
<span> </span> {{x.tsR18}} <span class="button button-small button-dark"> [{{x.tpR18}}] </span>
</div>
<div class="button button-small">
<span class="button button-royal">
<span> </span> {{x.tsF9}} <span class="button button-small button-royal"> [{{x.tpF9}}] </span></span> <br>
:: {{x.Scores}} :: <br> {{x.Putts}}
</div>
<div class="button button-small">
<span class="button button-royal">
<span> </span> {{x.tsB9}} <span class="button button-small button-royal"> [{{x.tpB9}}] </span>
</span> <br> <span ng-repeat="yy in x.Scores track by 'x.Team'">
:: {{yy}} :: <br> {{x.Putts[$index]}} </span>
</div>
</ion-item>
<ion-item>
<span> #1 >> </span> <br> <div ng-repeat="x in byTeam | orderBy:'Team'" class="button button-small"> :: {{x.Team}} :: <br>
<span class="button button-balanced">
<span> </span> {{x.Scores[0]}} <span class="button button-small button-assertive"> [{{x.Putts[0]}}] </span>
</span> </div>
</ion-item>
<ion-item>
<span> #2 >> </span> <br> <div ng-repeat="x in byTeam | orderBy:'Team'" class="button button-small"> :: {{x.Team}} :: <br>
<span class="button button-energized">
<span> </span> {{x.Scores[1]}} <span class="button button-small button-royal"> [{{x.Putts[1]}}] </span>
</span> </div>
</ion-item>
<ion-item>
<span> #3 >> </span> <br> <div ng-repeat="x in byTeam | orderBy:'Team'" class="button button-small"> :: {{x.Team}} :: <br>
<span class="button button-calm">
<span> </span> {{x.Scores[2]}} <span class="button button-small button-calm"> [{{x.Putts[2]}}] </span>
</span> </div>
</ion-item>
<ion-item>
<span> #8 >> </span> <br> <div ng-repeat="x in byTeam | orderBy:'Team'" class="button button-small"> :: {{x.Team}} :: <br>
<span class="button button-calm">
<span> </span> {{x.Scores[7]}} <span class="button button-small button-calm"> [{{x.Putts[7]}}] </span>
</span> </div>
</ion-item>
<ion-item>
<span> #9 >> </span> <br> <div ng-repeat="x in byTeam | orderBy:'Team'" class="button button-small"> :: {{x.Team}} :: <br>
<span class="button button-calm">
<span> </span> {{x.Scores[8]}} <span class="button button-small button-royal"> [{{x.Putts[8]}}] </span>
</span> </div>
</ion-item>
</ion-list>
<div class="row-fluid">
Teams: {{byTeam}}
</div>
</ion-content>
</ion-view>