rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / resmgr / src / main / webapp / resmgr-sdn / link.html
1 <!--
2
3     Copyright 2016-2017, Huawei Technologies Co., Ltd.
4
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
8
9             http://www.apache.org/licenses/LICENSE-2.0
10
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.
16
17 -->
18
19 <!DOCTYPE html>
20 <html>
21 <head>
22     <head lang="en">
23         <meta charset="UTF-8">
24         <title></title>
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 () {
35                 loadLinkData();
36             });
37             function operateFormatter(value, row, index) {
38                 return [
39                     '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
40                 ].join('');
41
42             }
43             window.operateEvents = {
44                 'click .siteDeleteImg': function (e, value, row, index) {
45                     // TO DO ajex call for delete
46                     deleteLink(row.id);
47                     console.log(value, row, index);
48                 }
49             };
50         </script>
51         <style>
52             .fixed-table-container tbody td .th-inner,
53             .fixed-table-container thead th .th-inner {
54                 line-height: 4px;
55             }
56             .fixed-table-pagination .pagination-info {
57                 display: none !important;
58             }
59             .table tbody tr:hover td,
60             .table tbody tr.odd:hover td {
61                 background-color: #e6fbe0 !important;
62             }
63             table tr.openoTable_row_selected td {
64                 background: #e8f8fe!important;
65                 border-bottom: 1px solid #e8e8e8!important;
66             }
67             .container-fluid {
68                 padding-left: 30px;
69                 padding-right: 0px;
70             }
71             .modal-footer > .btn {
72                 width: 80px;
73                 padding: 4px;
74             }
75         </style>
76     </head>
77 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
78 <div class="container-fluid ms-controller">
79
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>
92                 </div>
93
94             </div>
95         </div>
96     </div>
97
98     <div class="row-fluid" data-name="table_zone">
99         <div id='ict_virtualApplication_table_div'>
100             <div>
101                 <div class="top">
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;">
106                         <tr class="active">
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
113                                             </span>
114                                 </div>
115                             </th>
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
122                                             </span>
123                                 </div>
124                             </th>
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
131                                             </span>
132                                 </div>
133                             </th>
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
140                                             </span>
141                                 </div>
142                             </th>
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
149                                             </span>
150                                 </div>
151                             </th>
152
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
159                                             </span>
160                                 </div>
161                             </th>
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
168                                             </span>
169                                 </div>
170                             </th>
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
177                                             </span>
178                                 </div>
179                             </th>
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
186                                             </span>
187                                 </div>
188                             </th>
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
196                                             </span>
197                                 </div>
198                             </th>
199                         </tr>
200                         </thead>
201                         <tbody>
202                         <!-- <tr style="display: none;">
203                             <td colspan="7" style="text-align: center;">NULL</td>
204                         </tr>
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>
209                             </td>
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>
212                             </td>
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>
215                             </td>
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>
218                             </td>
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>
221                             </td>
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>
224                             </td>
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>
227                             </td>
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>
230                             </td>
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">
233                                 <div>
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/">
235                                 </div></div>
236                             </td>
237                         </tr> -->
238                         </tbody>
239                     </table>
240                 </div>
241             </div>
242         </div>
243     </div>
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">&nbsp;</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">&nbsp;</a></li></ul></div></div> -->
245
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"
253                                 aria-hidden="true">×
254                         </button>
255                         <h4 class="modal-title" id="myModalLabel">
256                             <span>Create</span>
257                         </h4>
258                     </div>
259                     <form class="form-horizontal" role="form" id="linkForm">
260                         <div id="wizard">
261                             <div class="modal-body">
262                                 <ul class="nav nav-pills nav-justified vmapp-margin">
263                                 </ul>
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">
268                                                 <span>Name</span>
269                                                 <span class="required">*</span>
270                                             </label>
271                                             <div class="col-sm-7">
272                                                 <input type="text" id="name" name="name" class="form-control"/>
273                                             </div>
274                                         </div>
275                                         <div class="form-group">
276                                             <label class="col-sm-3 control-label">
277                                                 <span>Type</span>
278                                             </label>
279                                             <div class="col-sm-7">
280                                                 <select class="form-control"
281                                                         style="padding-top: 0px;padding-bottom: 0px;" id="logicalType"
282                                                         name="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>
287                                                 </select>
288                                             </div>
289                                         </div>
290                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
291                                             <label class="col-sm-3 control-label">
292                                                 <span>Layer Rate</span>
293                                             </label>
294                                             <div class="col-sm-7">
295                                                 <input type="text" id="layerRate" name="layerRate"
296                                                        class="form-control"/>
297                                             </div>
298                                         </div>
299
300
301                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
302                                             <label class="col-sm-3 control-label">
303                                                 <span>Source Port</span>
304                                             </label>
305                                             <div class="col-sm-7">
306                                                 <input type="text" id="aEnd" name="aEnd" class="form-control"/>
307                                             </div>
308                                         </div>
309                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
310                                             <label class="col-sm-3 control-label">
311                                                 <span>Sink Port</span>
312                                             </label>
313                                             <div class="col-sm-7">
314                                                 <input type="text" id="zEnd" name="zEnd" class="form-control"/>
315                                             </div>
316                                         </div>
317                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
318                                             <label class="col-sm-3 control-label">
319                                                 <span>Source NE</span>
320                                             </label>
321                                             <div class="col-sm-7">
322                                                 <input type="text" id="aEndMe" name="aEndME" class="form-control"/>
323                                             </div>
324                                         </div>
325                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
326                                             <label class="col-sm-3 control-label">
327                                                 <span>Sink NE</span>
328                                             </label>
329                                             <div class="col-sm-7">
330                                                 <input type="text" id="zEndMe" name="zEndME" class="form-control"/>
331                                             </div>
332                                         </div>
333                                     </div>
334                                 </div>
335                             </div>
336                             <div class="modal-footer">
337                                 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
338                                         id="createLink">
339                                     <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
340                                 </button>
341                                 <button type="button" class="btn button-previous SDBtn">
342                                     <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
343                                 </button>
344
345                             </div>
346                         </div>
347                     </form>
348                 </div>
349             </div>
350         </div>
351     </div>
352 </div>
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>
357     </div>
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>
366 </div>
367
368
369 </body>
370 </html>