summaryrefslogtreecommitdiffstats
path: root/portal/src/main/webapp/extsys/ems/emsView.html
blob: 368f64310cec1fa6ef77e00d7613d58b20064a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!--

    Copyright 2016-2017 ZTE Corporation.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="../../thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="../../thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="../../thirdparty/uniform/css/uniform.default.min.css" rel="stylesheet"/>
    <link href="../../thirdparty/css/ngict-component.css" rel="stylesheet"/>
    <link href="css/animate.min.css" rel="stylesheet"/>
    <link href="css/ems.css" rel="stylesheet"/>
    <style> .ms-controller {  visibility: hidden } </style>
</head>
<body>
<div ms-controller="emsController" class="container-fluid ms-controller">
    <div id="addEmsDlg" class="modal fade" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content Changepasswd">
                <div class="content">
                    <div class="modal-header">
                        <h4 id="myModalLabel">{{modalTitle}}</h4>
                    </div>
                    <div class="modal-body">
                        <div class="px-ui-steps">
                            <ul class="px-ui-horizon-ul-horizon" role="tablist">
                                <li class="px-ui-steps-li step-active" id="step-resourceAddr">
                                    <div  class="px-ui-menuitem-div-passive">
                                        <span class="px-ui-steps-number-passive">1</span>
                                        <span class="px-ui-steps-title-passive">Resource</span>
                                    </div>
                                    <div class="px-ui-underline-passive"></div>
                                </li>
                                <li class="px-ui-steps-li" id="step-performanceAddr">
                                    <div class="px-ui-menuitem-div-passive">
                                        <span class="px-ui-steps-number-passive">2</span>
                                        <span class="px-ui-steps-title-passive">Performance</span>
                                    </div>
                                    <div class="px-ui-underline-passive"></div>
                                </li>
                                <li class="px-ui-steps-li" id="step-alarmAddr">
                                    <div class="px-ui-menuitem-div-passive">
                                        <span class="px-ui-steps-number-passive">3</span>
                                        <span class="px-ui-steps-title-passive">Alarm</span>
                                    </div>
                                    <div class="px-ui-underline-passive"></div>
                                </li>
                            </ul>
                        </div>
                        <div class="step-content">
                            <form class="form-horizontal" id="form_resourceAddr" role="form">
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Name</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.name" name="name" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Ftp Type</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <select ms-duplex="currentElement.resourceAddr.ftptype" name="ftptype" class="form-control">
                                            <option value="ftp">ftp</option>
                                            <option value="sftp">sftp</option>
                                        </select>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>IP</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.resourceAddr.ip" name="ip" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Port</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.resourceAddr.port" name="port" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>User</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.resourceAddr.user" name="user" class="form-control" ms-attr-placeholder="urlTip"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Password</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <input type="password" class="form-control" rows="3" ms-duplex="currentElement.resourceAddr.password"  name="password"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Remote Path</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <input class="form-control" rows="3" ms-duplex="currentElement.resourceAddr.remotepath" name="remotepath"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Passive</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <select class="form-control" rows="3" ms-duplex="currentElement.resourceAddr.passive" name="passive">
                                        <option value="true">true</option>
                                        <option value="false">false</option>
                                    </select>
                                     <span class="help-block"></span>
                                    </div>
                                </div>
                            </form>
                            <form class="form-horizontal" id="form_performanceAddr" role="form" hidden>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Ftp Type</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <select ms-duplex="currentElement.performanceAddr.ftptype" name="type" class="form-control">
                                            <option value="ftp">ftp</option>
                                            <option value="sftp">sftp</option>
                                        </select>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>IP</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.performanceAddr.ip" name="ip" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Port</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.performanceAddr.port" name="port" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>User</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.performanceAddr.user" name="user" class="form-control" ms-attr-placeholder="urlTip"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Password</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <input type="password" class="form-control" rows="3" ms-duplex="currentElement.performanceAddr.password"  name="password"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Remote Path</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <input class="form-control" rows="3" ms-duplex="currentElement.performanceAddr.remotepath" name="remotepath"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Passive</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <select class="form-control" rows="3" ms-duplex="currentElement.performanceAddr.passive" name="passive">
                                        <option value="true">true</option>
                                        <option value="false">false</option>
                                    </select>
                                     <span class="help-block"></span>
                                    </div>
                                </div>
                            </form>
                            <form class="form-horizontal" id="form_alarmAddr" role="form" hidden>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>IP</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.alarmAddr.ip" name="ip" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Port</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.alarmAddr.port" name="port" class="form-control"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>User</span>
                                        <span class="required" aria-required="true">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" ms-duplex="currentElement.alarmAddr.user" name="user" class="form-control" ms-attr-placeholder="urlTip"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-3">
                                        <span>Password</span>
                                    </label>
                                    <div class="col-sm-7">
                                    <input type="password" class="form-control" rows="3" ms-duplex="currentElement.alarmAddr.password"  name="password"/>
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button class="btn" id="btnPreStep" ms-click="$preStep">Back</button>
                        <button class="btn btn-primary" id="btnNextStep" ms-click="$nextStep">Next</button>
                        <button class="btn btn-primary" id="btnSave" ms-click="$saveEMS" id_i18n="nfv-ems-iui-text-saveBtn" name_i18n="com_zte_nfv_nsoc_i18n"></button>
                        <button class="btn" id="btnCancel" ms-click="dismiss" aria-hidden="true" id_i18n="nfv-ems-iui-text-cancelBtn" name_i18n="com_zte_nfv_nsoc_i18n"></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid" data-name="cond_zone">
        <div class="col-md-12">
            <button class="btn white radius_l" id="app-new-btn" ms-click="$registerEMS">
                <i class="ict-new"></i> <span id_i18n="nfv-ems-iui-text-registerBtn"  name_i18n="com_zte_nfv_nsoc_i18n"></span>
            </button>
        </div>
    </div>

    <div class="col-sm-12 vnfm-padding" ms-each-el="emsInfo">
        <div class="col-sm-3 animated-panel zoomIn">
            <div class="hpanel stats">
                <div class="panel-body h-200" ms-hover="hpanel_show">
                    <div class="pull-left">
                        <span class="label label-success" ms-if="el.status == status.success" id_i18n="nfv-ems-iui-text-status-normal" name_i18n="com_zte_nfv_nsoc_i18n"></span>
                        <span class="label label-danger" ms-if="el.status == status.failed" ms-attr-title="el.errorInfo" data-toggle="tooltip" id_i18n="nfv-ems-iui-text-status-fail" name_i18n="com_zte_nfv_nsoc_i18n"></span>
                    </div>
                    <div class="stats-icon pull-right">
                        <i class="fa fa-server  fa-5x color_cloud"></i>
                    </div>
                    <div class="m-t-xl">
                        <h3 class="md-text-overflow" ms-attr-title="'name:' + el.name" ms-text="'name:' + el.name"></h3>
                        <!--<div class="card-name"><span ms-text="el.name"></span></div>-->
                    </div>
                </div>
                <div class="panel-footer">
                    <div class="pull-right">
                        <a class="btn btn-default btn-sm" ms-click="updateEMS($index)"><i
                                class="fa fa-pencil-square-o fa-lg"></i></a>
                        <a class="btn btn-default btn-sm" ms-click="delEMS(el.emsId, $index)"><i class="fa fa-trash-o fa-lg"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-12">
        <div class="pull-left text-muted">
            <small><span id_i18n="nfv-ems-iui-text-total" name_i18n="com_zte_nfv_nsoc_i18n"></span> <span class="blue-font" ms-text="emsInfo.size()"></span>
                <span id_i18n="nfv-ems-iui-text-total-ems" name_i18n="com_zte_nfv_nsoc_i18n"></span></small>
        </div>
    </div>
</div>
<script type="text/javascript" src="../../thirdparty/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../../thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
<script type="text/javascript" src="../../thirdparty/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../thirdparty/bootbox/bootbox.min.js"></script>
<script type="text/javascript" src="../../thirdparty/jquery-validation/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="../../thirdparty/jquery-validation/js/additional-methods.min.js"></script>

<script type="text/javascript" src="../../thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
<!--<script type="text/javascript" src="../../thirdparty/cometd/cometd.js"></script>-->
<!--<script type="text/javascript" src="../../thirdparty/cometd/jquery.cometd.js"></script>-->
<script type="text/javascript" src="../../thirdparty/avalon/avalon.js"></script>

<script type="text/javascript" src="../../thirdparty/js/tools.js"></script>

<script type="text/javascript" src="js/commonUtil.js"></script>
<script type="text/javascript" src="js/loadi18n_nsoc.js"></script>

<script type="text/javascript" src="js/ems-validate.js"></script>
<script type="text/javascript" src="js/emsController.js"></script>
</body>
</html>