blob: 29503035c6914b366987ab7fcb91a6e2b37dfcf7 (
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
|
<!--
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="../framework/css/ngict-component.css" rel="stylesheet"/>
<link href="../framework/css/plugins.css" rel="stylesheet"/>
<link href="../vendor/jQuery-File-Upload/css/jquery.fileupload.css" rel="stylesheet" />
<link href="css/hostMirror.css" rel="stylesheet" />
<style type="text/css">
.ms-controller {
visibility: hidden;
}
</style>
</head>
<body>
<div ms-controller="hmController" 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-host-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="uploadHostImage.$showUploadImage"><i class="ict-new"></i> <span id="nfv-host-iui-text-uploadImage" name_i18n="com_zte_nfv_nsoc_i18n"></span></button>
</div>
<div class="row-fluid" data-name="table_zone">
<div id='ict_host_table_div'></div>
</div>
<div id="uploadImage" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">
<span id="nfv-host-iui-text-title" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form" id="hostForm">
<div class="btn-center">
<div class="btn-group" data-toggle="buttons">
<label class="btn white" ms-class="blueactive: uploadHostImage.localVisible"
ms-click="uploadHostImage.$showLocalOrUrl('local')">
<input type="radio" name="options" id="option1"><span id="nfv-host-iui-text-local" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<label class="btn white" ms-class="blueactive: !uploadHostImage.localVisible"
ms-click="uploadHostImage.$showLocalOrUrl('url')">
<input type="radio" name="options" id="option2"><span id="nfv-host-iui-text-url" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" ms-visible="uploadHostImage.localVisible">
<span id="nfv-host-iui-text-image" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-8" ms-visible="uploadHostImage.localVisible">
<!--<input id="hostfile" type="file" name="file" class="file"/>-->
<div class="input-group fileupload-input">
<div id="fileName" class="form-control file-input"
style="height: 34px !important;overflow-x: auto;"></div>
<span class="input-group-btn">
<span class="btn blue1 fileinput-button">
<span id="nfv-software-iui-text-image-select" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<input type="file" name="file" multiple>
</span>
</span>
</div><!-- input-group -->
</div>
<label class="col-sm-3 control-label" ms-visible="!uploadHostImage.localVisible">
<span id="nfv-host-iui-text-imageurl" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-8" ms-visible="!uploadHostImage.localVisible">
<input id="hosturl" name="hosturl" class="form-control" type="text" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-host-iui-text-name" name_i18n="com_zte_nfv_nsoc_i18n"></span>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-sm-8">
<input class="form-control" type="text" id="hostName" name="hostName" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">VIM<span class="required" aria-required="true">*</span></label>
<div class="col-sm-8">
<select class="form-control" id="vim" name="vim" ms-change="uploadHostImage.$changeEvent">
<option ms-repeat="uploadHostImage.vimSelectItems" ms-attr-value="$index"
data-repeat-rendered="initTenant">{{el.name}}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
<span id="nfv-host-iui-text-tenant" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</label>
<div class="col-sm-8">
<input class="form-control" type="text" disabled="true" id="tenant" name="tenant" />
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn" data-dismiss="modal">
<span id="nfv-host-iui-btn-cancel" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
<button type="button" class="btn btn-primary" id="uploadBtn">
<span id="nfv-host-iui-btn-upload" name_i18n="com_zte_nfv_nsoc_i18n"></span>
</button>
</div>
</div>
</div>
</div>
<!--
<div ms-visible="uploadHostImage.progressVisible" class="process-modal">
<div class="process-content">
<img src='../framework/img/loading-spinner-grey.gif'/>
<div><span ms-text="uploadHostImage.progress"></span></div>
</div>
</div>
-->
</div>
<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/jQuery-File-Upload/js/vendor/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../vendor/jQuery-File-Upload/js/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="../vendor/jQuery-File-Upload/js/jquery.fileupload.js"></script>
<script type="text/javascript" src="../vendor/bootstrap-growl/bootstrap-growl.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/hostMirror/host-validate.js"></script>
<script type="text/javascript" src="js/hostMirror/hmUtil.js"></script>
<script type="text/javascript" src="js/hostMirror/hmController.js"></script>
</body>
</html>
|