3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
23 <meta charset="UTF-8">
25 <link href="css/bootstrap.min.css" rel="stylesheet"/>
26 <link href="css/VMMain.css" rel="stylesheet"/>
27 <link href="css/bootstrap-table.min.css" rel="stylesheet"/>
28 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
29 <script type="text/javascript" src="js/bootstrap.min.js"></script>
30 <script type="text/javascript" src="js/brs.js"></script>
31 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
32 <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
33 <script type="text/javascript">
34 $(document).ready(function () {
37 function operateFormatter(value, row, index) {
39 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
43 window.operateEvents = {
44 'click .siteDeleteImg': function (e, value, row, index) {
45 // TO DO ajex call for delete
47 console.log(value, row, index);
52 .fixed-table-container tbody td .th-inner,
53 .fixed-table-container thead th .th-inner {
56 .fixed-table-pagination .pagination-info {
57 display: none !important;
59 .table tbody tr:hover td,
60 .table tbody tr.odd:hover td {
61 background-color: #e6fbe0 !important;
63 table tr.openoTable_row_selected td {
64 background: #e8f8fe!important;
65 border-bottom: 1px solid #e8e8e8!important;
71 .modal-footer > .btn {
77 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
78 <div class="container-fluid ms-controller">
80 <div class="uploadBtn">
81 <div id="open_base_tpL_userHeader" class="userHeader">
82 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
83 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
84 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
85 cls="defaultbutton" click="clickAdd"
86 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
87 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span
88 class="openo-widget-button-image openoButton_buttonLeftImg"
89 style="background-image: url(images/add.png);"></span><span
90 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
91 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
98 <div class="row-fluid" data-name="table_zone">
99 <div id='ict_virtualApplication_table_div'>
102 <table id="link" data-pagination="true" data-page-size="5" data-pagination-first-text="First"
103 data-pagination-pre-text="Previous" data-pagination-next-text="Next"
104 data-pagination-last-text="Last" data-filter-control="true">
105 <thead id="link" class="openo-table-thead" style="background:#ECECEC;">
107 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
108 data-field="name" data-sortable="true" data-filter-control="input">
109 <div class="openo-table-th-border"></div>
110 <div class="DataTables_sort_wrapper openo-ellipsis ">
111 <span id="linkName_sorticon"
112 class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
116 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
117 data-field="logicalType" data-sortable="true" data-filter-control="input">
118 <div class="openo-table-th-border"></div>
119 <div class="DataTables_sort_wrapper openo-ellipsis ">
120 <span id="link_aEnd_sorticon"
121 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Type
125 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
126 data-field="layerRate" data-sortable="true" data-filter-control="input">
127 <div class="openo-table-th-border"></div>
128 <div class="DataTables_sort_wrapper openo-ellipsis ">
129 <span id="link_layerRate_sorticon"
130 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Layer Rate
134 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
135 data-field="aEnd" data-sortable="true" data-filter-control="input">
136 <div class="openo-table-th-border"></div>
137 <div class="DataTables_sort_wrapper openo-ellipsis ">
138 <span id="link_aEnd_sorticon"
139 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Source Port
143 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
144 data-field="zEnd" data-sortable="true" data-filter-control="input">
145 <div class="openo-table-th-border"></div>
146 <div class="DataTables_sort_wrapper openo-ellipsis ">
147 <span id="link_zEnd_sorticon"
148 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Sink Port
153 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
154 data-field="aEndME" data-sortable="true" data-filter-control="input">
155 <div class="openo-table-th-border"></div>
156 <div class="DataTables_sort_wrapper openo-ellipsis ">
157 <span id="link_source_sorticon"
158 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Source NE
162 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
163 data-field="zEndME" data-sortable="true" data-filter-control="input">
164 <div class="openo-table-th-border"></div>
165 <div class="DataTables_sort_wrapper openo-ellipsis ">
166 <span id="link_source_sorticon"
167 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Sink NE
171 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
172 data-field="adminState" data-sortable="true" data-filter-control="input">
173 <div class="openo-table-th-border"></div>
174 <div class="DataTables_sort_wrapper openo-ellipsis ">
175 <span id="link_adminState_sorticon"
176 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Admin State
180 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
181 data-field="operState" data-sortable="true" data-filter-control="input">
182 <div class="openo-table-th-border"></div>
183 <div class="DataTables_sort_wrapper openo-ellipsis ">
184 <span id="link_operState_sorticon"
185 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operating State
189 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
190 data-field="siteType" align="center" data-formatter="operateFormatter"
191 data-events="operateEvents">
192 <div class="openo-table-th-border"></div>
193 <div class="DataTables_sort_wrapper openo-ellipsis ">
194 <span id="link_latency_sorticon"
195 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Actions
202 <!-- <tr style="display: none;">
203 <td colspan="7" style="text-align: center;">NULL</td>
205 <tr class="odd openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
206 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
207 <div class="openo-table-disable-element overflow_elip leftDataAlign">
208 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">Link1</a></div>
210 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
211 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">Type</div>
213 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
214 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">15</div>
216 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
217 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">8080</div>
219 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
220 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">1234</div>
222 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
223 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">NE</div>
225 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
226 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>
228 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
229 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>
231 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
232 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
234 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteLink('this')" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
244 <!-- <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> -->
246 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
247 aria-labelledby="myModalLabel" aria-hidden="false">
248 <div class="modal-dialog">
249 <div class="modal-content">
250 <div class="content">
251 <div class="modal-header">
252 <button type="button" class="close" data-dismiss="modal"
255 <h4 class="modal-title" id="myModalLabel">
259 <form class="form-horizontal" role="form" id="linkForm">
261 <div class="modal-body">
262 <ul class="nav nav-pills nav-justified vmapp-margin">
264 <div class="tab-content">
265 <div class="tab-pane active" id="basicTab">
266 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
267 <label class="col-sm-3 control-label">
269 <span class="required">*</span>
271 <div class="col-sm-7">
272 <input type="text" id="name" name="name" class="form-control"/>
275 <div class="form-group">
276 <label class="col-sm-3 control-label">
279 <div class="col-sm-7">
280 <select class="form-control"
281 style="padding-top: 0px;padding-bottom: 0px;" id="logicalType"
283 <option value="fiberLink">Fiber Link</option>
284 <option value="l2Link">L2 Link</option>
285 <option value="ipLink">IP Link</option>
286 <option value="electricalLink">Electrical Link</option>
290 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
291 <label class="col-sm-3 control-label">
292 <span>Layer Rate</span>
294 <div class="col-sm-7">
295 <input type="text" id="layerRate" name="layerRate"
296 class="form-control"/>
301 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
302 <label class="col-sm-3 control-label">
303 <span>Source Port</span>
305 <div class="col-sm-7">
306 <input type="text" id="aEnd" name="aEnd" class="form-control"/>
309 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
310 <label class="col-sm-3 control-label">
311 <span>Sink Port</span>
313 <div class="col-sm-7">
314 <input type="text" id="zEnd" name="zEnd" class="form-control"/>
317 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
318 <label class="col-sm-3 control-label">
319 <span>Source NE</span>
321 <div class="col-sm-7">
322 <input type="text" id="aEndMe" name="aEndME" class="form-control"/>
325 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
326 <label class="col-sm-3 control-label">
329 <div class="col-sm-7">
330 <input type="text" id="zEndMe" name="zEndME" class="form-control"/>
336 <div class="modal-footer">
337 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
339 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
341 <button type="button" class="btn button-previous SDBtn">
342 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
353 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
354 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
355 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label
356 class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
358 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label
359 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
360 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label
361 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
362 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label
363 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
364 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label
365 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>