blob: 76cff61d3bc6db1ca1e322c92a405bb9047f16aa (
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
|
<!--
Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
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>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link href="../component/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<link href="../component/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="../component/thirdparty/uniform/css/uniform.default.min.css" rel="stylesheet" />
<link href="../component/css/ZteIctIcons/style.css" rel="stylesheet"/>
<link href="../vendor/icheck/skins/all.css" rel="stylesheet" type="text/css"/>
<link href="../vendor/bootstrap-modal/css/bootstrap-modal-bs3patch.css" rel="stylesheet" />
<link href="../vendor/bootstrap-modal/css/bootstrap-modal.css" rel="stylesheet" />
<link href="../framework/css/ngict-component.css" rel="stylesheet"/>
<link href="../framework/css/plugins.css" rel="stylesheet"/>
<link href="css/virtualApplication.css" rel="stylesheet" />
<style type="text/css">
.ms-controller {
visibility: hidden;
}
</style>
</head>
<body>
<div ms-controller="vmAppController" class="container-fluid ms-controller">
<div class="row">
<div class="col-xs-6 col-md-6 col-sm-6 col-lg-6 titlefont">
<span id="nfv-virtualApplication-iui-title" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</div>
</div>
<div class="separator-line"></div>
<div class="uploadBtn">
<button class="btn white radius_l" ms-click="showCreateApp"><i class="ict-new"></i>
<span id="nfv-virtualApplication-iui-text-createVm" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
</div>
<div class="row-fluid" data-name="table_zone">
<div id='ict_virtualApplication_table_div'></div>
</div>
<div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="false" data-modal-overflow="true">
<!--<div class="modal-dialog">
<div class="modal-content">
<div class="content">-->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×
</button>
<h4 class="modal-title" id="myModalLabel">
<span ms-text="vmAppDialog.title"></span>
</h4>
</div>
<form class="form-horizontal" role="form" id="vmAppForm">
<div id="wizard">
<div class="modal-body">
<ul class="nav nav-pills nav-justified vmapp-margin">
<li><a href="#basicTab" data-toggle="tab">
<span id="nfv-virtualApplication-iui-text-tab-basic" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</a></li>
<li><a href="#flavorTab" data-toggle="tab">
<span id="nfv-virtualApplication-iui-text-tab-flavor" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</a></li>
<li><a href="#inputParamTab" data-toggle="tab">
<span id="nfv-virtualApplication-iui-text-tab-operationParam" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="basicTab">
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-name" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<input type="text" id="instanceName" name="instanceName" ms-duplex="vmAppDialog.name" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-description" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<div class="col-sm-7">
<input type="text" id="instanceDescription" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-template" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<select class="form-control" id="serviceTemplateName"
name="serviceTemplateName" ms-change="vmAppDialog.$templateChange">
<option ms-repeat="vmAppDialog.templateSelectItems"
ms-attr-data-index="$index"
data-repeat-rendered="templateRender">{{el.templatename}}</option>
</select>
</div>
</div>
<div class="form-group" ms-if="false">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-templateDes" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<div class="col-sm-7">{{vmAppDialog.description}}</div>
</div>
<div class="form-group" ms-visible="false">
<label class="col-sm-3 control-label">VIM
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<select class="form-control" id="vimId" name="vimId">
<option ms-repeat="vmAppDialog.vimSelectItems" ms-attr-value="el.oid">{{el.name}}</option>
</select>
</div>
</div>
<!--<div class="form-group" ms-repeat-vnf="vmAppDialog.vnfItems"
data-repeat-rendered="vnfRender">
<label class="col-sm-3 control-label">
<span ms-text="vmAppDialog.$getVnfmText(vnf.name)"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<select class="form-control" ms-attr-id="vnf.templateid"
ms-attr-name="vnf.templateid">
<option ms-repeat="vmAppDialog.vnfmSelectItems" ms-attr-value="el.oid">{{el.name}}</option>
</select>
</div>
</div>-->
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-vnfm" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<select class="form-control" id="vnfmId" name="vnfmId">
<option ms-repeat="vmAppDialog.vnfmSelectItems" ms-attr-value="el.oid">{{el.name}}</option>
</select>
</div>
</div>
</div><!--end basicTab-->
<div class="tab-pane" id="flavorTab">
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-flavor" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<div class="col-sm-7">
<select class="form-control" id="flavor" name="flavor" ms-change="vmAppDialog.$flavorChange">
<option ms-repeat="vmAppDialog.flavors" ms-data-desc="el.desc"
data-repeat-rendered="flavorRender">{{el.name}}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-virtualApplication-iui-text-flavorDesc" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<div class="col-sm-7">
<textarea class="form-control" id="flavorDesc" ms-attr-value="vmAppDialog.flavorDesc"></textarea>
</div>
</div>
<div ms-each-group="vmAppDialog.flavorParams"
data-each-rendered="paramRender">
<div class="vmapp-form-title" ms-text="group.groupName"></div>
<div class="form-group" ms-repeat-param="group.params">
<label class="col-sm-3 control-label">
<span ms-text="vmAppDialog.$getFlavorI18nInfo(param.key)"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<input type="text" ms-attr-id="vmAppDialog.$getGoupParamKey(group.groupName, param.key)" ms-attr-name="vmAppDialog.$getGoupParamKey(group.groupName, param.key)"
class="form-control"/>
</div>
</div>
</div><!-- end each flavorParams -->
</div><!--end flavorTab-->
<div class="tab-pane" id="inputParamTab">
<div>
<div class="vmapp-form-title" ms-visible="vmAppDialog.operationParams.length"
id="nfv-virtualApplication-iui-text-input-planTitle" name_i18n="com_zte_nfv_nsoc_i18n"></div>
<div class="form-group" ms-repeat-param="vmAppDialog.operationParams"
data-repeat-rendered="operationParamRender">
<label ms-if="vmAppDialog.language == 'zh-CN'" class="col-sm-4 control-label"> {{param.paramKey_zh_CN}}
<span ms-if="param.required == 'true'" class="required" aria-required="true">*</span>
</label>
<label ms-if="vmAppDialog.language == 'en-US'" class="col-sm-4 control-label"> {{param.paramKey_en_US}}
<span ms-if="param.required == 'true'" class="required" aria-required="true">*</span>
</label>
<div class="col-sm-7">
<input type="text" class="form-control" ms-attr-id="param.paramKey"
ms-attr-name="param.paramKey"
ms-attr-data-required="param.required"
ms-attr-placeholder="param.defaultValue"/>
</div>
</div><!-- end repeat operationParams -->
<div id="templateInput" ms-each-input="vmAppDialog.templateInputParams">
<div class="vmapp-form-title" ms-text="input.groupName"></div>
<div class="form-group" ms-repeat-param="input.params">
<label class="col-sm-4 control-label">
<span ms-text="param.key"></span>
</label>
<div class="col-sm-7">
<input type="text" ms-attr-id="vmAppDialog.$getGoupParamKey(input.groupName, param.key)"
ms-attr-name="vmAppDialog.$getGoupParamKey(input.groupName, param.key)"
class="form-control"/>
</div>
</div>
</div><!-- end each templateInputParams -->
<div class="text-center" ms-visible="vmAppDialog.inputParamDescVisible">
<span id="nfv-virtualApplication-iui-validate-noinputParam" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</div>
</div>
</div><!--end inputParamTab-->
</div><!--end .tab-content-->
</div><!-- end .modal-body -->
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">
<span id="nfv-virtualApplication-iui-text-cancelBtn" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
<button class="btn button-previous">
<span id="nfv-virtualApplication-iui-text-previousBtn" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
<button class="btn button-next">
<span id="nfv-virtualApplication-iui-text-nextBtn" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
<button id="createBtn" class="btn btn-primary" ms-click="vmAppDialog.$confirmBtnClick">
<span ms-text="vmAppDialog.btnTitle"></span>
</button>
</div>
</div><!-- end wizard -->
</form>
<!--</div>
</div>
</div>-->
</div><!-- end .modal -->
<div ms-include-src="vmAppDialog.vmAppScaleHtml" data-include-rendered="includeRender"></div>
</div><!-- end ms-controller -->
<script type="text/javascript" src="../component/thirdparty/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../component/thirdparty/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../component/thirdparty/bootbox/bootbox.min.js"></script>
<script type="text/javascript" src="../component/thirdparty/data-tables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../component/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
<script type="text/javascript" src="../component/thirdparty/jquery-validation/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="../vendor/cometd/cometd.js"></script>
<script type="text/javascript" src="../vendor/cometd/jquery.cometd.js"></script>
<script type="text/javascript" src="../vendor/bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
<script type="text/javascript" src="../vendor/bootstrap-growl/bootstrap-growl.min.js"></script>
<script type="text/javascript" src="../vendor/bootstrap-modal/js/bootstrap-modalmanager.js"></script>
<script type="text/javascript" src="../vendor/bootstrap-modal/js/bootstrap-modal.js"></script>
<script type="text/javascript" src="../vendor/icheck/icheck.min.js"></script>
<script type="text/javascript" src="../vendor/avalon/avalon.modern.js"></script>
<script type="text/javascript" src="../framework/js/tools.js"></script>
<script type="text/javascript" src="js/component/commonUtil.js"></script>
<script type="text/javascript" src="js/component/serverPageTable.js"></script>
<script type="text/javascript" src="js/component/loadi18n_nsoc.js"></script>
<script type="text/javascript" src="js/virtualApplication/validate.js"></script>
<script type="text/javascript" src="js/virtualApplication/vmAppUtil.js"></script>
<script type="text/javascript" src="js/virtualApplication/vmAppController.js"></script>
</body>
</html>
|