@@ -87,7 +87,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
87
87
< div id ="ViewModelDOMObject " class ="form-body ">
88
88
89
89
< div class ="form-group ">
90
- < label class ="pl-1 control-label font-weight-bold "> Load Subscription Template (Examples)</ label >
90
+ < label class ="h5 pl-1 control-label font-weight-bold "> Load Subscription Template (Examples)</ label >
91
91
< div >
92
92
< select class ="w-100 " id ="selectTemplate "
93
93
data-bind ="options: subscription_templates_in,
@@ -100,7 +100,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
100
100
101
101
<!-- ko foreach: subscription -->
102
102
< div class ="form-group ">
103
- < label class ="pl-1 control-label font-weight-bold "> SubscriptionName</ label >
103
+ < label class ="h5 pl-1 control-label font-weight-bold "> SubscriptionName</ label >
104
104
< div >
105
105
<!-- text injected from subscription.js -->
106
106
< span class ="text-danger font-small " id ="invalidSubscriptionName "> </ span >
@@ -127,82 +127,84 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
127
127
</div>
128
128
</div>
129
129
-->
130
- < div class ="form-group ">
131
- < label class ="pl-1 control-label font-weight-bold "> NotificationType</ label >
132
- < img class ="cursor-pointer " id ="notificationTypeInfo " alt ="NotificationType Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
130
+
131
+ < div class ="p-1 border form-group ">
132
+ < div class ="form-group ">
133
+ < label class ="h5 pl-1 control-label font-weight-bold "> NotificationType</ label >
134
+ < img class ="cursor-pointer " id ="notificationTypeInfo " alt ="NotificationType Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
133
135
title ="This is the notification method used when the subscription is triggered. "/>
134
136
135
137
<!-- Rest or Mail radio buttons -->
136
- < div id ="notificationTypeRadio " data-bind ="foreach: $root.notificationType_in " >
137
- < label >
138
- < input type ="radio " name ="restOrMailGroup " data-bind ="
138
+ < div id ="notificationTypeRadio " data-bind ="foreach: $root.notificationType_in " >
139
+ < label >
140
+ < input type ="radio " name ="restOrMailGroup " data-bind ="
139
141
attr: {value: value, id: id}, checked: $parent.notificationType, onChange " />
140
- < span data-bind ="text: label "> </ span >
141
- </ label >
142
+ < span data-bind ="text: label "> </ span >
143
+ </ label >
144
+ </ div >
142
145
</ div >
143
- </ div >
144
-
145
- < div class ="form-group " data-bind ="visible: $data.notificationType() == 'REST_POST' ">
146
- < label class ="pl-1 control-label font-weight-bold "> RestPostMediaType</ label >
147
- < img class ="cursor-pointer popup-large " id ="restPostMediaTypeInfo " alt ="RestPostMediaType Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
146
+ < div class ="form-group " data-bind ="visible: $data.notificationType() == 'REST_POST' ">
147
+ < label class ="h5 pl-1 control-label font-weight-bold "> RestPostMediaType</ label >
148
+ < img class ="cursor-pointer popup-large " id ="restPostMediaTypeInfo " alt ="RestPostMediaType Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
148
149
title =
149
150
"This decides the Content-Type of the POST body. <br>
150
151
Default is: <br>
151
152
RAW BODY: JSON (application/json) <br>
152
153
You may select: <br>
153
154
FORM/POST Parameters (application/x-www-form-urlencoded) " />
154
155
155
- <!-- Form post radio buttons -->
156
- < div data-bind ="foreach: $root.restPostBodyMediaType_in " >
156
+ <!-- Form post radio buttons -->
157
+ < div data-bind ="foreach: $root.restPostBodyMediaType_in " >
157
158
< label >
158
159
< input type ="radio " name ="restPostBodyMediaTypeGroup " data-bind ="
159
160
attr: {value: value, id: id}, checked: $parent.restPostBodyMediaType, onChange " />
160
161
< span data-bind ="text: label "> </ span >
161
- </ label >
162
- </ div >
163
- </ div >
164
-
165
- < div class ="p-1 border form-group " >
166
- < label class =" control-label font-weight-bold " > NotificationMessage </ label >
167
- < div >
168
- < span class =" text-danger font-small " id =" noNotificationKeyOrValue " > </ span >
169
- </ div >
170
- < div >
171
- < span class =" text-danger font-small " id =" notificationMessageKeyValuesArrayToLarge " > </ span >
172
- </ div >
173
- < div >
174
- < span class =" text-danger font-small " id =" keyInNotificationMessage " > </ span >
175
- </ div >
176
- < div >
177
- < span class =" text-danger font-small " id =" noNotificationMessage " > </ span >
178
- </ div >
179
- <!-- Table for FORM/POST Parameters (application/x-www-form-urlencoded) -- >
180
- < table width =" 100% " data-bind =" visible: $root.formpostkeyvaluepairs() " >
181
- < thead >
182
- < tr >
183
- < th width ="20 % "> Key </ th >
184
- < th width =" 80% " > Value </ th >
185
- </ tr >
186
- </ thead >
187
- < tbody data-bind =" foreach: notificationMessageKeyValues " >
188
- < tr >
189
- < td valign =" top " >
190
- < input data-bind =" textInput:$data.formkey, onChange " name =" formkey " placeholder =" Key " class =" form-control "
162
+ </ label >
163
+ </ div >
164
+ </ div >
165
+
166
+ < label class ="h5 control-label font-weight-bold " > NotificationMessage </ label >
167
+ < div >
168
+ < span class =" text-danger font-small " id =" noNotificationKeyOrValue " > </ span >
169
+ </ div >
170
+ < div >
171
+ < span class =" text-danger font-small " id =" notificationMessageKeyValuesArrayToLarge " > </ span >
172
+ </ div >
173
+ < div >
174
+ < span class =" text-danger font-small " id =" keyInNotificationMessage " > </ span >
175
+ </ div >
176
+ < div >
177
+ < span class =" text-danger font-small " id =" noNotificationMessage " > </ span >
178
+ </ div >
179
+ <!-- Table for FORM/POST Parameters (application/x-www-form-urlencoded) -- >
180
+ < table width =" 100% " data-bind =" visible: $root.formpostkeyvaluepairs() " >
181
+ < thead >
182
+ < tr >
183
+ < th width =" 20% " > Key </ th >
184
+ < th width ="80 % "> Value </ th >
185
+ </ tr >
186
+ </ thead >
187
+ < tbody data-bind =" foreach: notificationMessageKeyValues " >
188
+ < tr >
189
+ < td valign =" top " >
190
+ < input data-bind =" textInput:$data.formkey, onChange " name =" formkey " placeholder =" Key " class =" form-control "
191
+ > > > > > > > 12cfe8e... Fix grouping of subscription elements
191
192
type="text" />
192
- </ td >
193
- < td >
194
- < textarea data-bind ="textInput:$data.formvalue, onChange " name ="formvalue "
193
+ </ td >
194
+ < td >
195
+ < textarea data-bind ="textInput:$data.formvalue, onChange " name ="formvalue "
195
196
placeholder ="Value " class ="form-control " type ="text "> </ textarea >
196
- </ td >
197
- < td data-bind ="if: $root.subscription()[0].notificationMessageKeyValues().length > 1 " valign ="top " >
198
- < button data-bind ="click: function(data, event) {$root.delete_NotificationMsgKeyValuePair(data, event, $index());} "
197
+ </ td >
198
+ < td data-bind ="if: $root.subscription()[0].notificationMessageKeyValues().length > 1 " valign ="top " >
199
+ < button data-bind ="click: function(data, event) {$root.delete_NotificationMsgKeyValuePair(data, event, $index());} "
199
200
class ="btn btn-danger float-rightmr-1 mr-1 mt-1 d-inline-block ">
200
- < i class ="fa fa-fw fa-trash "> </ i >
201
- </ button >
202
- </ td >
203
- </ tr >
204
- </ tbody >
201
+ < i class ="fa fa-fw fa-trash "> </ i >
202
+ </ button >
203
+ </ td >
204
+ </ tr >
205
+ </ tbody >
205
206
</ table >
207
+
206
208
<!-- Button for FORM/POST Parameters (application/x-www-form-urlencoded) -->
207
209
< div data-bind ="if: $root.formpostkeyvaluepairs() && $root.restPost() " class ="pt-1 d-flex justify-content-end ">
208
210
< button id ="kvID " data-bind ="click: $root.addNotificationMsgKeyValuePair " class ="btn btn-success mr-1 mt-1 d-inline-block ">
@@ -226,11 +228,24 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
226
228
</ tr >
227
229
</ tbody >
228
230
</ table >
231
+
232
+ <!-- NOTIFICATION META -->
233
+ < div class ="form-group ">
234
+ < label class ="h5 pl-1 control-label font-weight-bold "> NotificationMeta</ label >
235
+ < img class ="cursor-pointer " id ="notificationMetaInfo " alt ="NotificationMeta Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
236
+ title ="The specific point to notify. Example: my@mail.com or host.com/endpoint "/>
237
+ < div >
238
+ < span class ="text-danger font-small " id ="invalidNotificationMeta "> </ span >
239
+ < textarea id ="notificationMeta " data-bind ="textInput:$data.notificationMeta, onChange "
240
+ name ="notificationMeta " placeholder ="notificationMeta " class ="form-control " type ="text "> </ textarea >
241
+ < span class ="help-block "> </ span >
242
+ </ div >
243
+ </ div >
229
244
</ div >
230
245
231
246
<!-- AUTHENTICATION -->
232
247
< div class ="pt-3 form-group ">
233
- < label class ="pl-1 control-label font-weight-bold "> Authorization</ label >
248
+ < label class ="h5 pl-1 control-label font-weight-bold "> Authorization</ label >
234
249
< div >
235
250
< select id ="selectAuth " title ="Choose an authentication type " data-bind ="options: $root.authenticationType_in,
236
251
optionsText: 'text', optionsValue: 'value', value: authenticationType ">
@@ -262,7 +277,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
262
277
</ div >
263
278
264
279
< div class ="pt-3 form-group ">
265
- < label class ="pl-1 control-label font-weight-bold "> Repeat</ label >
280
+ < label class ="h5 pl-1 control-label font-weight-bold "> Repeat</ label >
266
281
< img class ="cursor-pointer " id ="repeatInfo " alt ="Repeat Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
267
282
title ="Instructs whether the subscription should be re-triggered for new additions to the aggregated object. If false only first time the conditions are fulfilled
268
283
a notification will be triggered. No matter how many times the aggregated object is updated. "/>
@@ -276,19 +291,6 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
276
291
</ div >
277
292
</ div >
278
293
279
- <!-- NOTIFICATION META -->
280
- < div class ="form-group ">
281
- < label class ="pl-1 control-label font-weight-bold "> NotificationMeta</ label >
282
- < img class ="cursor-pointer " id ="notificationMetaInfo " alt ="NotificationMeta Info " src ="assets/images/information.png " data-toggle ="tooltip " data-placement ="top "
283
- title ="The specific point to notify. Example: my@mail.com or host.com/endpoint "/>
284
- < div >
285
- < span class ="text-danger font-small " id ="invalidNotificationMeta "> </ span >
286
- < textarea id ="notificationMeta " data-bind ="textInput:$data.notificationMeta, onChange "
287
- name ="notificationMeta " placeholder ="notificationMeta " class ="form-control " type ="text "> </ textarea >
288
- < span class ="help-block "> </ span >
289
- </ div >
290
- </ div >
291
-
292
294
<!-- REQUIREMENTS -->
293
295
<!-- ko foreach: { data: requirements, as: 'requirements_item' } -->
294
296
< div class ="pl-0 ml-0 ">
@@ -299,7 +301,7 @@ <h5>OR</h5>
299
301
title ="Info: 'AND' is used between Conditions in Requirement groups, and 'OR' is used between Requirement groups. "/>
300
302
</ div >
301
303
< div class ="p-1 border form-group ">
302
- < label class ="control-label font-weight-bold "> Requirement</ label >
304
+ < label class ="h5 control-label font-weight-bold "> Requirement</ label >
303
305
< div id ="requirementID ">
304
306
305
307
<!-- ko foreach: requirements_item.conditions -->
0 commit comments