3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
\r
5 Licensed under the Apache License, Version 2.0 (the "License");
\r
6 you may not use this file except in compliance with the License.
\r
7 You may obtain a copy of the License at
\r
9 http://www.apache.org/licenses/LICENSE-2.0
\r
11 Unless required by applicable law or agreed to in writing, software
\r
12 distributed under the License is distributed on an "AS IS" BASIS,
\r
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 See the License for the specific language governing permissions and
\r
15 limitations under the License.
\r
23 <meta charset="UTF-8">
\r
25 <link href="css/bootstrap.min.css" rel="stylesheet"/>
\r
26 <link href="css/VMMain.css" rel="stylesheet"/>
\r
27 <link href="css/bootstrap-table.min.css" rel="stylesheet"/>
\r
28 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
\r
29 <script type="text/javascript" src="js/bootstrap.min.js"></script>
\r
30 <script type="text/javascript" src="js/brs.js"></script>
\r
31 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
\r
32 <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
\r
33 <script type="text/javascript">
\r
35 $(document).ready(function () {
\r
39 function operateFormatter(value, row, index) {
\r
41 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
\r
45 window.operateEvents = {
\r
46 'click .siteDeleteImg': function (e, value, row, index) {
\r
47 // TO DO ajex call for delete
\r
48 var result = deleteNe(row.id, row);
\r
54 .fixed-table-container tbody td .th-inner,
\r
55 .fixed-table-container thead th .th-inner {
\r
58 .fixed-table-pagination .pagination-info {
\r
59 display: none !important;
\r
61 .table tbody tr:hover td,
\r
62 .table tbody tr.odd:hover td {
\r
63 background-color: #e6fbe0 !important;
\r
65 table tr.openoTable_row_selected td {
\r
66 background: #e8f8fe!important;
\r
67 border-bottom: 1px solid #e8e8e8!important;
\r
73 .modal-footer > .btn {
\r
79 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
\r
80 <div class="container-fluid ms-controller">
\r
83 <div class="uploadBtn">
\r
84 <div id="open_base_tpL_userHeader" class="userHeader">
\r
85 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
\r
86 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
\r
87 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
\r
88 cls="defaultbutton" click="clickAdd"
\r
89 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
\r
90 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span
\r
91 class="openo-widget-button-image openoButton_buttonLeftImg"
\r
92 style="background-image: url(images/add.png);"></span><span
\r
93 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
\r
94 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
\r
100 <div class="row-fluid" data-name="table_zone">
\r
101 <div id='ict_virtualApplication_table_div'>
\r
104 <table id="ne" data-row-style="rowStyle" data-pagination="true" data-page-size="5"
\r
105 data-pagination-first-text="First" data-pagination-pre-text="Previous"
\r
106 data-pagination-next-text="Next" data-pagination-last-text="Last" data-filter-control="true">
\r
107 <thead class="openo-table-thead" style="background:#ECECEC;">
\r
108 <tr class="active">
\r
109 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
110 data-field="name" data-sortable="true" data-filter-control="input">
\r
111 <div class="openo-table-th-border"></div>
\r
112 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
113 <span class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
\r
117 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
118 data-field="version" data-sortable="true" data-filter-control="input">
\r
119 <div class="openo-table-th-border"></div>
\r
120 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
121 <span id="ne_isVersion_sorticon"
\r
122 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Version
\r
126 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
127 data-field="productName" data-sortable="true" data-filter-control="input">
\r
128 <div class="openo-table-th-border"></div>
\r
129 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
130 <span id="neproductName_sorticon"
\r
131 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Product Name
\r
135 <!-- <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
136 data-field="controller" data-sortable="true" data-filter-control="input">
\r
137 <div class="openo-table-th-border"></div>
\r
138 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
139 <span id="ne_controller_sorticon"
\r
140 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Controller
\r
144 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
145 data-field="nativeID" data-sortable="true" data-filter-control="input">
\r
146 <div class="openo-table-th-border"></div>
\r
147 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
148 <span id="native_Id"
\r
149 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Native Id
\r
153 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
154 data-field="ipAddress" data-sortable="true" data-filter-control="input">
\r
155 <div class="openo-table-th-border"></div>
\r
156 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
157 <span id="ne_ipAddress_sorticon"
\r
158 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">IP Address
\r
162 <!-- <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
163 data-field="neRole" data-sortable="true" data-filter-control="input">
\r
164 <div class="openo-table-th-border"></div>
\r
165 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
166 <span id="ne_neRole_sorticon"
\r
167 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element0">NE Role
\r
171 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
172 data-field="adminState" data-filter-control="input">
\r
173 <div class="openo-table-th-border"></div>
\r
174 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
175 <span id="ne_adminState_sorticon"
\r
176 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Admin State
\r
180 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
181 data-field="operState" data-sortable="true" data-filter-control="input">
\r
182 <div class="openo-table-th-border"></div>
\r
183 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
184 <span id="ne_operState_sorticon"
\r
185 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operating State
\r
189 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
190 align="center" data-formatter="operateFormatter" data-events="operateEvents">
\r
191 <div class="openo-table-th-border"></div>
\r
192 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
193 <span id="ne_nativeID_sorticon"
\r
194 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Actions
\r
201 <tr style="display: none;">
\r
202 <td colspan="7" style="text-align: center;">NULL</td>
\r
204 <tr class="odd openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
\r
205 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
\r
206 <div class="openo-table-disable-element overflow_elip leftDataAlign">
\r
207 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">NE</a></div>
\r
209 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
210 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">1.1</div>
\r
212 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
213 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">SDN</div>
\r
215 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
216 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">192.168.100.102</div>
\r
218 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
219 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Role</div>
\r
221 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
222 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Admin</div>
\r
224 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
225 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">UP</div>
\r
227 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
\r
228 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
\r
230 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteNe('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
\r
235 <tr class="even openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
\r
236 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
\r
237 <div class="openo-table-disable-element overflow_elip leftDataAlign">
\r
238 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">NE</a></div>
\r
240 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
241 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">1.1</div>
\r
243 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
244 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">SDN</div>
\r
246 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
247 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">192.168.100.102</div>
\r
249 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
250 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Role</div>
\r
252 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
253 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Admin</div>
\r
255 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
256 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">UP</div>
\r
258 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
\r
259 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
\r
261 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteNe('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
\r
272 <!-- <div id="tpListopenotable_pagination_wrapper" class="openo-table-pagination-wrapper" style="display: block;"><div class="pagination-container openo-pagination-theme openo-pagination"><div class="openoPagination_openoPaginationLengthOptions" id="tpListopenotable_wrapper_div"><input readonly="true" class="openo-pagination-select openopaginationselect" value="" id="tpListopenotable_wrapper_input" actualval="20" style="width: 32px;"><span class="openo-pagination-selectspan openopaginationselectspan" id="tpListopenotable_wrapper_trigger"></span></div><label style="display: block;float:left;">Total records: 23</label><li class="active"><span class="current prev openo-disabled" id="tpListopenotable_wrapper_prev"> </span></li><ul><li class="active"><span class="current" id="tpListopenotable_wrapper_page_link_1">1</span></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_2">2</a></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_3">3</a></li><li><a class="page-link next" id="tpListopenotable_wrapper_next"> </a></li></ul></div></div> -->
\r
274 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
\r
275 aria-labelledby="myModalLabel" aria-hidden="false">
\r
276 <div class="modal-dialog">
\r
277 <div class="modal-content">
\r
278 <div class="content">
\r
279 <div class="modal-header">
\r
280 <button type="button" class="close" data-dismiss="modal"
\r
281 aria-hidden="true">×
\r
283 <h4 class="modal-title" id="myModalLabel">
\r
284 <span>Create</span>
\r
287 <form class="form-horizontal" role="form" id="neForm">
\r
289 <div class="modal-body">
\r
290 <ul class="nav nav-pills nav-justified vmapp-margin">
\r
293 <div class="tab-content">
\r
294 <div class="tab-pane active" id="basicTab">
\r
295 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
296 <label class="col-sm-3 control-label">
\r
298 <span class="required">*</span>
\r
300 <div class="col-sm-7">
\r
301 <input type="text" id="name" name="name" class="form-control"
\r
302 placeholder="Name"/>
\r
305 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
306 <label class="col-sm-3 control-label">
\r
307 <span>Version</span>
\r
308 <span class="required">*</span>
\r
310 <div class="col-sm-7">
\r
311 <input type="text" id="version" name="version" class="form-control"
\r
312 placeholder="1.1"/>
\r
315 <div class="form-group">
\r
316 <label class="col-sm-3 control-label">
\r
317 <span>Product Name</span>
\r
319 <div class="col-sm-7">
\r
320 <input type="text" id="productName" name="productName"
\r
321 class="form-control" placeholder="Product Name"/>
\r
324 <div class="form-group">
\r
325 <label class="col-sm-3 control-label">
\r
326 <span>Controller</span>
\r
328 <div class="col-sm-7">
\r
329 <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
\r
332 <option value="Type1">No controller</option>
\r
336 <div class="form-group">
\r
337 <label class="col-sm-3 control-label">
\r
338 <span>Native ID</span>
\r
340 <div class="col-sm-7">
\r
341 <input type="text" id="nativeID" name="nativeID" class="form-control"
\r
342 placeholder="Native ID"/>
\r
345 <div class="form-group">
\r
346 <label class="col-sm-3 control-label">
\r
347 <span>IP Address</span>
\r
349 <div class="col-sm-7">
\r
350 <input type="text" id="ipAddress" name="ipAddress" class="form-control"
\r
351 placeholder="255.255.255.255"/>
\r
354 <!-- TODO : check for valid neRole
\r
355 <div class="form-group">
\r
356 <label class="col-sm-3 control-label">
\r
357 <span>NE Role</span>
\r
359 <div class="col-sm-7">
\r
360 <input type="text" id="neRole" name="neRole" class="form-control" placeholder="Role"/>
\r
367 <div class="modal-footer">
\r
368 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
\r
370 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
\r
372 <button type="button" class="btn button-previous SDBtn">
\r
373 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
\r
384 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
\r
385 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
\r
386 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label
\r
387 class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
\r
389 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label
\r
390 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
\r
391 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label
\r
392 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
\r
393 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label
\r
394 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
\r
395 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label
\r
396 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>
\r