8
8
< meta name ="description " content ="" />
9
9
< meta name ="author " content ="" />
10
10
11
- < link href =" css/style.css " rel =" stylesheet " / >
11
+ < script type =" text/javascript " src =" resources/subscription_templates.js " > </ script >
12
12
13
13
< title > Eiffel Intelligence Subscription Handling</ title >
14
14
</ head >
15
15
16
16
< body >
17
-
18
- < div class ="hidden " id ="frontendServiceUrl " style ="display: none " th:text ="${frontendServiceUrl} "> </ div >
19
- < div class ="hidden " id ="subscriptionTemplate " style ="display: none " th:text ="${subscriptionTemplate} "> </ div >
20
-
21
- < script type ="text/javascript " src ="resources/subscription_templates.js "> </ script >
22
-
17
+ < div class ="d-none " id ="subscriptionTemplate " th:text ="${subscriptionTemplate} "> </ div >
23
18
< div class ="d-flex ">
24
19
< div class ="col-md-9 col-8 ">
25
20
< h3 > Eiffel Intelligence Subscription Handling</ h3 >
@@ -54,7 +49,7 @@ <h3 id="subData">Subscription Data</h3>
54
49
< button id ="uploadSubscription " class ="mt-1 btn btn-info upload_subscriptions show_if_authorized ">
55
50
< i class ="glyphicon glyphicon-upload "> </ i > Upload Subscriptions
56
51
</ button >
57
- < input class ="hidden " type ='file ' id ='upload_sub ' name ='file ' style =" position: absolute; left: -999em; " />
52
+ < input class ="hide " type ='file ' id ='upload_sub ' name ='file '/>
58
53
</ div >
59
54
< div class ="pb-1 col-12 loadingAnimation ">
60
55
<!-- This div is the animated loading indicator -->
@@ -64,7 +59,7 @@ <h3 id="subData">Subscription Data</h3>
64
59
65
60
<!-- Datatable -->
66
61
67
- < div class ="pl-2 pr-2 ">
62
+ < div class ="pl-2 pr-2 pb-3 ">
68
63
< table id ="table " class ="table table-bordered " width ="100% " cellspacing ="0 "> </ table >
69
64
</ div >
70
65
@@ -89,7 +84,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
89
84
< div class ="form-group ">
90
85
< label class ="pl-1 control-label font-weight-bold "> Load Subscription Template (Examples)</ label >
91
86
< div >
92
- < select style =" width: 100% " id ="selectTemplate "
87
+ < select class =" w- 100 " id ="selectTemplate "
93
88
data-bind ="options: subscription_templates_in,
94
89
optionsText: 'text',
95
90
optionsValue: 'value',
@@ -104,8 +99,8 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
104
99
< label class ="pl-1 control-label font-weight-bold "> SubscriptionName</ label >
105
100
< div >
106
101
<!-- text injected from subscription.js -->
107
- < font class ="addSubscriptionErrors " id ="invalidLetters " color =" red " size =" 2 " / >
108
- < font class ="addSubscriptionErrors " id ="noNameGiven " color =" red " size =" 2 " / >
102
+ < span class ="text-danger font-small " id ="invalidLetters "> </ span >
103
+ < span class ="text-danger font-small " id ="noNameGiven "> </ span >
109
104
110
105
< input id ="subscriptionNameInput " data-bind ="textInput:$data.subscriptionName "
111
106
name ="subscriptionName " placeholder ="subscriptionName " class ="form-control display-inline-table " type ="text "/>
@@ -138,7 +133,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
138
133
optionsValue: 'value',
139
134
value: $data.notificationType,
140
135
optionsCaption: 'Choose...' "> </ select >
141
- < font class ="addSubscriptionErrors " id ="notificationTypeNotSet " color =" red " size =" 2 " / >
136
+ < span class ="text-danger font-small " id ="notificationTypeNotSet "> </ span >
142
137
</ div >
143
138
</ div >
144
139
@@ -147,7 +142,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
147
142
< img class ="cursor-pointer " id ="restPostMediaTypeInfo " alt ="RestPostMediaType Info " src ="assets/images/information.png "
148
143
title ="This decides the Content-Type of the POST body. "/>
149
144
< div >
150
- < select style =" width: 100% " data-bind ="options: $root.restPostBodyType_in,
145
+ < select class =" w- 100 " data-bind ="options: $root.restPostBodyType_in,
151
146
optionsText: 'text',
152
147
optionsValue: 'value',
153
148
value: $data.restPostBodyMediaType,
@@ -158,16 +153,16 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
158
153
< div class ="p-1 border border-primary form-group ">
159
154
< label class ="control-label font-weight-bold "> NotificationMessage</ label >
160
155
< div >
161
- < font class ="addSubscriptionErrors " id ="noNotificationKeyOrValue " color =" red " size =" 2 " / >
156
+ < span class ="text-danger font-small " id ="noNotificationKeyOrValue "> </ span >
162
157
</ div >
163
158
< div >
164
- < font class ="addSubscriptionErrors " id ="notificationMessageKeyValuesArrayToLarge " color =" red " size =" 2 " / >
159
+ < span class ="text-danger font-small " id ="notificationMessageKeyValuesArrayToLarge "> </ span >
165
160
</ div >
166
161
< div >
167
- < font class ="addSubscriptionErrors " id ="keyInNotificationMessage " color =" red " size =" 2 " / >
162
+ < span class ="text-danger font-small " id ="keyInNotificationMessage "> </ span >
168
163
</ div >
169
164
< div >
170
- < font class ="addSubscriptionErrors " id ="noNotificationMessage " color =" red " size =" 2 " / >
165
+ < span class ="text-danger font-small " id ="noNotificationMessage "> </ span >
171
166
</ div >
172
167
< table width ="100% ">
173
168
< thead >
@@ -248,7 +243,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
248
243
optionsText: $data.repeat(),
249
244
value: $data.repeat,
250
245
optionsCaption: 'Choose...' "> </ select >
251
- < font class ="addSubscriptionErrors " id ="repeatNotSet " color =" red " size =" 2 " / >
246
+ < span class ="text-danger font-small " id ="repeatNotSet "> </ span >
252
247
< span class ="help-block "> </ span >
253
248
</ div >
254
249
</ div >
@@ -257,7 +252,7 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
257
252
< img class ="cursor-pointer " id ="notificationMetaInfo " alt ="NotificationMeta Info " src ="assets/images/information.png "
258
253
title ="The specific point to notify. Example: my@mail.com or host.com/endpoint "/>
259
254
< div >
260
- < font class ="addSubscriptionErrors " id ="noNotificationMetaGiven " color =" red " size =" 2 " / >
255
+ < span class ="text-danger font-small " id ="noNotificationMetaGiven "> </ span >
261
256
< textarea id ="metaData " data-bind ="textInput:$data.notificationMeta "
262
257
name ="notificationMeta " placeholder ="notificationMeta " class ="form-control " type ="text "> </ textarea >
263
258
< span class ="help-block "> </ span >
@@ -280,13 +275,13 @@ <h5>OR</h5>
280
275
<!-- ko foreach: requirements_item.conditions -->
281
276
< div id ="conditionID ">
282
277
<!-- ko if: $index() !== 0 -->
283
- < h5 style =" display: inline "> AND</ h5 >
278
+ < h5 class =" d- inline "> AND</ h5 >
284
279
<!-- /ko -->
285
280
< label class ="control-label font-weight-bold "> Condition</ label >
286
281
287
282
<!-- ko ifnot: $data.jmespath() -->
288
- < div >
289
- < font class ="addSubscriptionErrors emptyCondition " color =" red " size =" 2 " / >
283
+ < div >
284
+ < span class ="text-danger font-small emptyCondition "> </ span >
290
285
</ div >
291
286
<!-- /ko -->
292
287
@@ -321,8 +316,8 @@ <h5 style="display:inline">AND</h5>
321
316
</ form >
322
317
</ div >
323
318
< div class ="modal-footer ">
324
- < font class ="addSubscriptionErrors " id ="errorExists " color =" red " size =" 3 " / >
325
- < font class ="addSubscriptionErrors " id ="serverError " color =" red " size =" 3 " / >
319
+ < span class ="text-danger font-medium " id ="errorExists "> </ span >
320
+ < span class ="text-danger font-medium " id ="serverError "> </ span >
326
321
< button type ="button " id ="btnSave " class ="btn btn-primary save_record ">
327
322
Save
328
323
</ button >
0 commit comments