18
18
19
19
< script type ="text/javascript " src ="resources/subscription_templates.js "> </ script >
20
20
21
- < div class ="container pull-left ">
21
+ < div style =" max-width: 100%; " class ="container pull-left ">
22
22
< h1 style ="font-size:20pt "> Eiffel Intelligence Subscription Handling (< span th:text ="${frontendServiceUrl} "> </ span > )
23
23
< button data-toggle ="tooltip " title ="EI connection status check is refreshed continuesly. Click button to force check status. " type ="button " id ="btnEIConnection " class ="btn btnEIConnectionStatus "> < i class ="glyphicon "> </ i > EI Backend Status</ button >
24
24
</ h1 >
@@ -45,7 +45,7 @@ <h3>Subscription Data</h3>
45
45
46
46
<!-- Bootstrap modal -->
47
47
< div class ="modal fade " id ="modal_form " role ="dialog ">
48
- < div class ="modal-dialog ">
48
+ < div style =" max-width: 50%; " class ="modal-dialog ">
49
49
< div class ="modal-content ">
50
50
< div class ="modal-header ">
51
51
< div class ="container pull-left ">
@@ -61,29 +61,29 @@ <h3 class="modal-title text-center">Subscription Form</h3>
61
61
62
62
<!-- ko foreach: subscription -->
63
63
< div class ="form-group ">
64
- < label class ="control-label col-md-3 "> SubscriptionName</ label >
65
- < div class =" col-md-9 " >
64
+ < label class ="pl-1 control-label font-weight-bold "> SubscriptionName</ label >
65
+ < div >
66
66
< input data-toggle ="tooltip " title ="Specify a SubsciptionName " data-bind ="textInput:$data.subscriptionName " name ="subscriptionName " placeholder ="subscriptionName " class ="form-control " type ="text " />
67
67
< span class ="help-block "> </ span >
68
68
</ div >
69
69
</ div >
70
70
< div class ="form-group " data-bind ="visible: created() ">
71
- < label class ="control-label col-md-3 " > Created </ label >
72
- < div class =" col-md-9 " >
73
- < span data-toggle ="tooltip " title ="Specify the creation date " data-bind ="text:$ data.created " name ="created " placeholder ="created " class ="form-control " type ="text " />
71
+ < label class ="pl-1 control-label font-weight-bold " > Date </ label >
72
+ < div >
73
+ < span data-toggle ="tooltip " title ="Specify the creation date " data-bind ="text: $root.getUTCDate($ data.created()) " name ="created " placeholder ="created " class ="form-control " type ="text " />
74
74
< span class ="help-block "> </ span >
75
75
</ div >
76
76
</ div >
77
77
< div class ="form-group ">
78
- < label class ="control-label col-md-3 "> Type</ label >
79
- < div class =" col-md-9 " >
78
+ < label class ="pl-1 control-label font-weight-bold "> Type</ label >
79
+ < div >
80
80
< span data-toggle ="tooltip " title ="Specify the creation date " data-bind ="text:$data.aggregationtype " name ="aggregationtype " placeholder ="aggregation_type " class ="form-control " type ="text " />
81
81
< span class ="help-block "> </ span >
82
82
</ div >
83
83
</ div >
84
84
< div class ="form-group ">
85
- < label class ="control-label col-md-3 "> NotificationType</ label >
86
- < div class =" col-md-9 " >
85
+ < label class ="pl-1 control-label font-weight-bold "> NotificationType</ label >
86
+ < div >
87
87
< select data-toggle ="tooltip " title ="Choose a notification type " data-bind ="options: $root.notificationType_in,
88
88
optionsText: 'text',
89
89
optionsValue: 'value',
@@ -92,15 +92,8 @@ <h3 class="modal-title text-center">Subscription Form</h3>
92
92
</ div >
93
93
</ div >
94
94
< div class ="form-group ">
95
- < label class ="control-label col-md-3 "> NotificationMeta</ label >
96
- < div class ="col-md-9 ">
97
- < input data-toggle ="tooltip " title ="Specify notification meta data " data-bind ="textInput:$data.notificationMeta " name ="notificationMeta " placeholder ="notificationMeta " class ="form-control " type ="text " />
98
- < span class ="help-block "> </ span >
99
- </ div >
100
- </ div >
101
- < div class ="form-group ">
102
- < label class ="control-label col-md-3 "> Repeat</ label >
103
- < div class ="col-md-9 ">
95
+ < label class ="pl-1 control-label font-weight-bold "> Repeat</ label >
96
+ < div >
104
97
< select data-toggle ="tooltip " title ="Choose if to repeat or not to repeat " data-bind ="options: $root.repeat_in,
105
98
optionsText: $data.repeat(),
106
99
value: $data.repeat,
@@ -109,24 +102,37 @@ <h3 class="modal-title text-center">Subscription Form</h3>
109
102
</ div >
110
103
</ div >
111
104
< div class ="form-group ">
112
- < label class ="control-label col-md-3 "> NotificationMessage</ label >
113
- < div class ="col-md-9 ">
114
- < input data-toggle ="tooltip " title ="Choose a notification message " data-bind ="textInput:$data.notificationMessage " name ="notificationMessage " placeholder ="notificationMessage " class ="form-control " type ="text " />
105
+ < label class ="pl-1 control-label font-weight-bold "> NotificationMeta</ label >
106
+ < div >
107
+ <!--<input data-toggle="tooltip" title="Specify notification meta data" data-bind="textInput:$data.notificationMeta" name="notificationMeta" placeholder="notificationMeta" class="form-control" type="text" />-->
108
+
109
+ < textarea data-toggle ="tooltip " title ="Specify notification meta data " data-bind ="textInput:$data.notificationMeta " name ="notificationMeta " placeholder ="notificationMeta " class ="form-control " type ="text " />
110
+
111
+
112
+ < span class ="help-block "> </ span >
113
+ </ div >
114
+ </ div >
115
+ < div class ="form-group ">
116
+ < label class ="pl-1 control-label font-weight-bold "> NotificationMessage</ label >
117
+ < div >
118
+ <!--<input data-toggle="tooltip" title="Choose a notification message" data-bind="textInput:$data.notificationMessage" name="notificationMessage" placeholder="notificationMessage" class="form-control" type="text" />-->
119
+ < textarea data-toggle ="tooltip " title ="Choose a notification message " data-bind ="textInput:$data.notificationMessage " name ="notificationMessage " placeholder ="notificationMessage " class ="form-control " type ="text " />
120
+
115
121
< span class ="help-block "> </ span >
116
122
</ div >
117
123
</ div >
118
124
119
- < img width ="16 " alt ="Information " src ="assets/images/information.png " title ="Info: 'AND' is used between Conditions in Requirement groups, and 'OR' is used between Requirement groups "/>
120
125
121
126
<!-- ko foreach: { data: requirements, as: 'requirements_item' } -->
122
- < div class ="form-group ">
123
- < label class ="control-label col-md-3 "> Requirements</ label >
124
- < div class ="col-md-9 ">
127
+ < div class ="pl-0 ml-0 "> < img width ="16 " alt ="Information " src ="assets/images/information.png " title ="Info: 'AND' is used between Conditions in Requirement groups, and 'OR' is used between Requirement groups "/> </ div >
128
+ < div class ="pb-3 border border-primary form-group ">
129
+ < label class ="pl-1 control-label font-weight-bold "> Requirement</ label >
130
+ < div >
125
131
126
132
<!-- ko foreach: requirements_item.conditions -->
127
133
< div class ="form-group ">
128
- < label class ="control-label col-md-3 " > Conditions </ label >
129
- < div class ="col-md-9 ">
134
+ < label class ="pl-3 control-label font-weight-bold " > Condition </ label >
135
+ < div class ="p-3 ">
130
136
< textarea data-toggle ="tooltip " title ="Write a Subscription Rule(JmePath) " data-bind ="textInput:$data.jmespath() " name ="jmespath " placeholder ="jmespath " class ="form-control " type ="text " />
131
137
< button data-bind ="click: function(data, event) { $root.delete_condition(data, event, requirements_item , $index(), $parentContext.$index() ); }, clickBubble: false " data-toggle ="tooltip " title ="Delete condition " class ="btn btn-danger float-right " > < i class ="glyphicon glyphicon-trash "> </ i > Delete</ button >
132
138
< span class ="help-block "> </ span >
@@ -135,22 +141,26 @@ <h3 class="modal-title text-center">Subscription Form</h3>
135
141
136
142
137
143
<!-- /ko -->
144
+
145
+ < div >
146
+ < label class ="p-3 "> </ label >
147
+ < div >
148
+ < button data-bind ="click: function(data, event) { $root.add_condition(data, event, $index()); }, clickBubble: false " data-toggle ="tooltip " title ="Add a new condition " class ="btn btn-success float-right "> < i class ="glyphicon glyphicon-plus "> </ i > Add Condition</ button >
149
+
150
+ </ div >
151
+ </ div >
138
152
139
153
</ div >
140
154
141
- < div class ="form-group ">
142
- < label class ="control-label col-md-3 "> </ label >
143
- < div class ="col-md-9 ">
144
- < button data-bind ="click: function(data, event) { $root.add_condition(data, event, $index()); }, clickBubble: false " data-toggle ="tooltip " title ="Add a new condition " class ="btn btn-success float-right "> < i class ="glyphicon glyphicon-plus "> </ i > Add Condition</ button >
145
- < span class ="help-block "> </ span >
146
- </ div >
147
- </ div >
155
+
148
156
149
157
150
158
151
159
152
160
</ div >
161
+ < label class ="control-label pt-15 col-md-3 "> </ label >
153
162
<!-- /ko -->
163
+
154
164
< div class ="container ">
155
165
< button data-bind ="click: $root.add_requirement, clickBubble: false " data-toggle ="tooltip " title ="Add a new requirement " class ="btn btn-success float-left "> < i class ="glyphicon glyphicon-plus float-right "> </ i > Add Requirement</ button >
156
166
</ div >
0 commit comments