3
3
< head lang ="en ">
4
4
< meta charset ="UTF-8 ">
5
5
< title > Flat JSON format for data tables</ title >
6
- < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css ">
6
+ < link rel ="stylesheet " href ="demo.css ">
7
+ < link rel ="stylesheet " href ="../dist/material.css ">
7
8
</ head >
8
9
< body >
9
- < div class ="container ">
10
+ < div class ="container " ng-app =" myApp " ng-controller =" myAppController " ng-cloak >
10
11
< div class ="container ">
11
- < h1 > TEST < a href ="../index.html "> Go back</ a > </ h1 >
12
+ < h1 > Angular Data Grid</ h1 >
13
+ < div class ="b-change-theme ">
14
+ < span class ="b-change-theme__link _active "> Material Design</ span >
15
+ < a href ="../index.html " class ="b-change-theme__link "> Bootstrap</ a >
16
+ </ div >
17
+ < div class ="row ">
18
+ < div class ="col-xs-12 ">
19
+ < div class ="col-md-3 ">
20
+ < div class ="form-group ">
21
+ < input type ="text " class ="form-control order-search-box "
22
+ placeholder ="Search By Order # "
23
+ ng-change ="gridActions.filter() "
24
+ ng-model ="code "
25
+ filter-by ="code "
26
+ filter-type ="text ">
27
+ </ div >
28
+ </ div >
29
+ < div class ="col-md-9 buttons-right ">
30
+ < div class ="form-inline margin-bottom-small ">
31
+ < div class ="form-group ">
32
+ < label class ="control-label "> From: </ label >
33
+
34
+ < div class ="input-group datepicker ">
35
+ < input type ="text "
36
+ id ="dateFrom "
37
+ class ="form-control "
38
+ is-open ="dateFromOpened "
39
+ ng-click ="dateFromOpened = true "
40
+ datepicker-popup ="shortDate "
41
+ filter-by ="placed "
42
+ filter-type ="dateFrom "
43
+ ng-model ="dateFrom "
44
+ ng-blur ="gridActions.filter() "
45
+ ng-focus ="gridActions.filter() "
46
+ max-date ="dateTo "
47
+ show-weeks ="false "
48
+ close-text ="Close "
49
+ placeholder ="MM/DD/YY "/>
50
+ < span class ="input-group-btn ">
51
+ < label for ="dateFrom " class ="btn btn-default form-control ">
52
+ < i class ="fa fa-calendar "> </ i > </ label >
53
+ </ span >
54
+ </ div >
55
+ </ div >
56
+ < div class ="form-group ">
57
+ < label class ="control-label "> To: </ label >
58
+
59
+ < div class ="input-group datepicker ">
60
+ < input type ="text "
61
+ id ="dateTo "
62
+ class ="form-control "
63
+ is-open ="dateToOpened "
64
+ ng-click ="dateToOpened = true "
65
+ min-date ="dateFrom "
66
+ datepicker-popup ="shortDate "
67
+ filter-by ="placed "
68
+ filter-type ="dateTo "
69
+ ng-model ="dateTo "
70
+ ng-blur ="gridActions.filter() "
71
+ ng-focus ="gridActions.filter() "
72
+ show-weeks ="false "
73
+ close-text ="Close "
74
+ placeholder ="MM/DD/YY "/>
75
+ < span class ="input-group-btn ">
76
+ < label for ="dateTo " class ="btn btn-default form-control ">
77
+ < i class ="fa fa-calendar "> </ i > </ label >
78
+ </ span >
79
+ </ div >
80
+ </ div >
81
+ </ div >
82
+ < div ng-show ="dateTo || dateFrom " class ="buttons-right ">
83
+ < a href ="" ng-click ="dateTo = ''; dateFrom = ''; reloadGrid(); "> Clear Dates</ a >
84
+ </ div >
85
+ </ div >
86
+ < div grid-data id ='test ' grid-options ="gridOptions " grid-actions ="gridActions ">
87
+ < div class ="row margin-bottom-big ">
88
+ < strong class ="col-md-12 ">
89
+ found : {{filtered.length}} items
90
+ </ strong >
91
+
92
+ </ div >
93
+ < pagination max-size ="5 "
94
+ boundary-links ="true "
95
+ class ="pagination-sm "
96
+ ng-if ="paginationOptions.totalItems > paginationOptions.itemsPerPage "
97
+ total-items ="paginationOptions.totalItems "
98
+ ng-model ="paginationOptions.currentPage "
99
+ ng-change ="reloadGrid() "
100
+ items-per-page ="paginationOptions.itemsPerPage "> </ pagination >
101
+ < table class ="table table-hover table-leo table-condensed table-bordered table-striped ">
102
+ < thead >
103
+ < tr >
104
+ < th sortable ="code " class ="sortable ">
105
+ Order #
106
+ </ th >
107
+ < th sortable ="placed " class ="sortable ">
108
+ Date Placed
109
+ </ th >
110
+ < th sortable ="purchaseOrderNumber " class ="sortable ">
111
+ Purchase Order #
112
+ </ th >
113
+ < th class ="st-sort-disable th-dropdown ">
114
+ < select class ="form-control width-15 "
115
+ filter-by ="statusDisplay "
116
+ filter-type ="select "
117
+ ng-model ="status "
118
+ ng-change ="filter() ">
119
+ < option value =""> All Statuses</ option >
120
+ </ select >
121
+ </ th >
122
+ < th sortable ='total.value ' class ="sortable ">
123
+ Total
124
+ </ th >
125
+ < th class ="st-sort-disable ">
126
+ </ th >
127
+ </ tr >
128
+ </ thead >
129
+ < tbody >
130
+ < tr grid-item >
131
+ < td >
132
+ < a href ="{{globalData.contextPath + '/my-account/order/' + item.code}} "
133
+ ng-bind ="item.id "> </ a >
134
+ </ td >
135
+ < td ng-bind ="item.placed | date:'MM/dd/yyyy' "> </ td >
136
+ < td ng-bind ="item.purchaseOrderNumber "> </ td >
137
+ < td ng-bind ="item.statusDisplay "> </ td >
138
+ < td ng-bind ="item.total.formattedValue "> </ td >
139
+ < td >
140
+ < a class ="btn btn-secondary btn-sm "
141
+ href ="{{globalData.contextPath + '/my-account/order/' + item.code}} "> View
142
+ Order</ a >
143
+ </ td >
144
+ </ tr >
145
+ </ tbody >
146
+ </ table >
147
+ < div class ="row ">
148
+ < pagination max-size ="5 "
149
+ boundary-links ="true "
150
+ class ="pagination-sm "
151
+ ng-if ="paginationOptions.totalItems > paginationOptions.itemsPerPage "
152
+ total-items ="paginationOptions.totalItems "
153
+ ng-model ="paginationOptions.currentPage "
154
+ ng-change ="reloadGrid() "
155
+ items-per-page ="paginationOptions.itemsPerPage "> </ pagination >
156
+ < div grid-item-per-page ="10, 25, 50, 75 " class ="pagination-sm "> </ div >
157
+ </ div >
158
+ </ div >
159
+ </ div >
160
+ </ div >
12
161
</ div >
13
162
</ div >
14
163
</ body >
15
164
16
- < script src ="https://code.jquery.com/jquery-1.11.3.min.js "> </ script >
165
+ <!--< script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>-- >
17
166
< script src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js "> </ script >
167
+ < script src ="../dist/pagination.min.js "> </ script >
168
+ < script src ="../dist/dataGrid.min.js "> </ script >
169
+ < script src ="demoApp.js "> </ script >
18
170
19
171
</ html >
0 commit comments