18
18
< h1 id ="test_rules_header "> Test Rules</ h1 >
19
19
</ div >
20
20
< div class ="row px-3 ">
21
- < div class ="p-1 col-lg-6 col-md-6 col-12 border border-right border-success " id ="testRulesDOMObject ">
22
- < div class ="d-flex flex-wrap ">
21
+ < div class ="p-1 col-lg-6 col-md-6 col-12 border border-right " id ="testRulesDOMObject ">
22
+ < div class ="d-flex flex-wrap sticky-button-bar ">
23
23
< div class ="col-11 ">
24
+ < button class ="btn btn-primary add_rule mr-1 mt-1 d-inline-block " data-bind ="click : $root.addRule.bind($data, ruleTemplate) ">
25
+ Add
26
+ < i class ="fa fa-fw fa-plus "> </ i >
27
+ </ button >
24
28
< button class ="btn btn-primary upload_rules mr-1 mt-1 d-inline-block ">
25
- Load Rules from file
29
+ Load From File
26
30
< i class ="fa fa-fw fa-upload "> </ i >
27
31
</ button >
28
32
< input class ="hide " type ='file ' id ='uploadRulesFile ' name ='file '/>
29
- < button class ="btn btn-primary download_rules_template rule-button mr-1 mt-1 d-inline-block ">
30
- Get Template
33
+ < button class ="btn btn-primary download_rules mr-1 mt-1 d-inline-block ">
34
+ Download
31
35
< i class ="fa fa-fw fa-download "> </ i >
32
36
</ button >
33
- < button class ="btn btn-primary add_rule rule-button mr-1 mt-1 d-inline-block " data-bind =" click : $root.addRule.bind($data, ruleTemplate) ">
34
- Add Rule
35
- < i class ="fa fa-fw fa-plus "> </ i >
37
+ < button class ="btn btn-primary download_rules_template mr-1 mt-1 d-inline-block ">
38
+ Get Template
39
+ < i class ="fa fa-fw fa-download "> </ i >
36
40
</ button >
37
- < button class ="btn btn-danger clear_all_rules rule-button mr-1 mt-1 d-inline-block " data-bind ="click : $root.clearAllRules .bind() ">
38
- Clear All Rules
41
+ < button class ="btn btn-danger clear_all_rules mr-1 mt-1 d-inline-block " data-bind ="click : $root.confirmClearAll .bind($data, 'rules' ) ">
42
+ Clear All
39
43
< i class ="fa fa-fw fa-trash "> </ i >
40
44
</ button >
41
45
</ div >
60
64
</ div >
61
65
</ div >
62
66
</ div >
63
- < div class ="p-1 col-lg-6 col-md-6 col-12 border border-right border-success " id ="testEventsDOMObject ">
64
- < div class ="d-flex flex-wrap ">
67
+ < div class ="p-1 col-lg-6 col-md-6 col-12 border border-right " id ="testEventsDOMObject ">
68
+ < div class ="d-flex flex-wrap sticky-button-bar ">
65
69
< div class ="col-11 ">
70
+ < button class ="btn btn-primary add_event mr-1 mt-1 d-inline-block " data-bind ="click : $root.addEvent.bind($data, {}) ">
71
+ Add
72
+ < i class ="fa fa-fw fa-plus "> </ i >
73
+ </ button >
66
74
< button class ="btn btn-primary upload_events mr-1 mt-1 d-inline-block ">
67
- Load Events from file
75
+ Load From File
68
76
< i class ="fa fa-fw fa-upload "> </ i >
69
77
</ button >
70
78
< input class ="hide " type ='file ' id ='uploadEventsFile ' name ='file '/>
71
- < button class ="btn btn-primary download_events_template rule-button mr-1 mt-1 d-inline-block ">
72
- Get Template
79
+ < button class ="btn btn-primary download_events mr-1 mt-1 d-inline-block ">
80
+ Download
73
81
< i class ="fa fa-fw fa-download "> </ i >
74
82
</ button >
75
- < button class ="btn btn-primary add_event rule-button mr-1 mt-1 d-inline-block " data-bind =" click : $root.addEvent.bind($data, {}) ">
76
- Add Event
77
- < i class ="fa fa-fw fa-plus "> </ i >
83
+ < button class ="btn btn-primary download_events_template mr-1 mt-1 d-inline-block ">
84
+ Get Template
85
+ < i class ="fa fa-fw fa-download "> </ i >
78
86
</ button >
79
- < button class ="btn btn-danger clear_all_events rule-button mr-1 mt-1 d-inline-block " data-bind ="click : $root.clearAllEvents .bind() ">
80
- Clear All Events
87
+ < button class ="btn btn-danger clear_all_events mr-1 mt-1 d-inline-block " data-bind ="click : $root.confirmClearAll .bind($data, 'events' ) ">
88
+ Clear All
81
89
< i class ="fa fa-fw fa-trash "> </ i >
82
90
</ button >
83
91
</ div >
@@ -103,26 +111,14 @@ <h6>
103
111
</ div >
104
112
</ div >
105
113
</ div >
106
- < div class ="row-fluid divpad " id ="submitButton ">
107
- < div class ="row ">
108
- < div class ="col-4 ">
109
- < button class ="btn btn-success download_rules white-space-normal ">
110
- Download Rules
111
- < i class ="fa fa-fw fa-download "> </ i >
112
- </ button >
113
- </ div >
114
- < div class ="col-4 text-center ">
114
+ < div class ="row-fluid divpad footer-buttons " id ="submitButton ">
115
+ < div class ="row ">
116
+ < div class ="text-center ">
115
117
< button class ="btn btn-success find_aggregated_object white-space-normal " data-bind ="click : $root.submit.bind($data) "> Find Aggregated Object</ button >
116
118
< button class ="rules_info ">
117
119
< img src ="assets/images/information.png "/>
118
120
</ button >
119
121
</ div >
120
- < div class ="col-4 ">
121
- < button class ="btn btn-success download_events white-space-normal float-right ">
122
- Download Events
123
- < i class ="fa fa-fw fa-download "> </ i >
124
- </ button >
125
- </ div >
126
122
</ div >
127
123
</ div >
128
124
</ div >
@@ -178,5 +174,39 @@ <h5 class="modal-title">Usage Information</h5>
178
174
</ div >
179
175
</ div >
180
176
</ div >
177
+
178
+ <!-- /. Clear all events -->
179
+ < div class ="modal delete-warning-modal fade " tabindex ="-1 " role ="dialog ">
180
+ < div class ="modal-dialog " role ="document ">
181
+ < div class ="modal-content ">
182
+ < div class ="modal-header ">
183
+ < h5 class ="modal-title "> WARNING!</ h5 >
184
+ < button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close ">
185
+ < span aria-hidden ="true "> ×</ span >
186
+ </ button >
187
+ </ div >
188
+ < div class ="modal-body ">
189
+ <!-- ko if: $root.clearType()=="rules" -->
190
+ < p id ="delete-warning-modal-text " > Do you really want to remove all rules?</ p >
191
+ <!-- /ko-->
192
+
193
+ <!-- ko if: $root.clearType()=="events" -->
194
+ < p id ="delete-warning-modal-text " > Do you really want to remove all events?</ p >
195
+ <!-- /ko-->
196
+ </ div >
197
+ < div class ="modal-footer ">
198
+ < button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> Close</ button >
199
+
200
+ <!-- ko if: $root.clearType()=="rules" -->
201
+ < button data-bind ="click: $root.clearAllRules " type ="button " class ="btn btn-danger "> Clear all rules</ button >
202
+ <!-- /ko-->
203
+
204
+ <!-- ko if: $root.clearType()=="events" -->
205
+ < button data-bind ="click: $root.clearAllEvents " type ="button " class ="btn btn-danger "> Clear all events</ button >
206
+ <!-- /ko-->
207
+ </ div >
208
+ </ div >
209
+ </ div >
210
+ </ div >
181
211
</ body >
182
- </ html >
212
+ </ html >
0 commit comments