CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-resmgr / src / main / webapp / resmgr-sdn / link.html
1 <!--\r
2 \r
3     Copyright 2016-2017, Huawei Technologies Co., Ltd.\r
4 \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
8 \r
9             http://www.apache.org/licenses/LICENSE-2.0\r
10 \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
16 \r
17 -->\r
18 \r
19 <!DOCTYPE html>\r
20 <html>\r
21 <head>\r
22     <head lang="en">\r
23         <meta charset="UTF-8">\r
24         <title></title>\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
34             $(document).ready(function () {\r
35                 loadLinkData();\r
36             });\r
37             function operateFormatter(value, row, index) {\r
38                 return [\r
39                     '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'\r
40                 ].join('');\r
41 \r
42             }\r
43             window.operateEvents = {\r
44                 'click .siteDeleteImg': function (e, value, row, index) {\r
45                     // TO DO ajex call for delete\r
46                     deleteLink(row.id);\r
47                     console.log(value, row, index);\r
48                 }\r
49             };\r
50         </script>\r
51         <style>\r
52             .fixed-table-container tbody td .th-inner,\r
53             .fixed-table-container thead th .th-inner {\r
54                 line-height: 4px;\r
55             }\r
56             .fixed-table-pagination .pagination-info {\r
57                 display: none !important;\r
58             }\r
59             .table tbody tr:hover td,\r
60             .table tbody tr.odd:hover td {\r
61                 background-color: #e6fbe0 !important;\r
62             }\r
63             table tr.openoTable_row_selected td {\r
64                 background: #e8f8fe!important;\r
65                 border-bottom: 1px solid #e8e8e8!important;\r
66             }\r
67             .container-fluid {\r
68                 padding-left: 30px;\r
69                 padding-right: 0px;\r
70             }\r
71             .modal-footer > .btn {\r
72                 width: 80px;\r
73                 padding: 4px;\r
74             }\r
75         </style>\r
76     </head>\r
77 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">\r
78 <div class="container-fluid ms-controller">\r
79 \r
80     <div class="uploadBtn">\r
81         <div id="open_base_tpL_userHeader" class="userHeader">\r
82             <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">\r
83                 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"\r
84                      tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"\r
85                      cls="defaultbutton" click="clickAdd"\r
86                      style="display: inline-block; padding-left: 0px; padding-right: 0px;">\r
87                     <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span\r
88                             class="openo-widget-button-image openoButton_buttonLeftImg"\r
89                             style="background-image: url(images/add.png);"></span><span\r
90                             class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span\r
91                             class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>\r
92                 </div>\r
93 \r
94             </div>\r
95         </div>\r
96     </div>\r
97 \r
98     <div class="row-fluid" data-name="table_zone">\r
99         <div id='ict_virtualApplication_table_div'>\r
100             <div>\r
101                 <div class="top">\r
102                     <table id="link" data-pagination="true" data-page-size="5" data-pagination-first-text="First"\r
103                            data-pagination-pre-text="Previous" data-pagination-next-text="Next"\r
104                            data-pagination-last-text="Last" data-filter-control="true">\r
105                         <thead id="link" class="openo-table-thead" style="background:#ECECEC;">\r
106                         <tr class="active">\r
107                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
108                                 data-field="name" data-sortable="true" data-filter-control="input">\r
109                                 <div class="openo-table-th-border"></div>\r
110                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
111                                                                                         <span id="linkName_sorticon"\r
112                                                   class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign  openo-table-disable-element ">Name\r
113                                             </span>\r
114                                 </div>\r
115                             </th>\r
116                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
117                                 data-field="logicalType" data-sortable="true" data-filter-control="input">\r
118                                 <div class="openo-table-th-border"></div>\r
119                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
120                                                                         <span id="link_aEnd_sorticon"\r
121                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Type\r
122                                             </span>\r
123                                 </div>\r
124                             </th>\r
125                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
126                                 data-field="layerRate" data-sortable="true" data-filter-control="input">\r
127                                 <div class="openo-table-th-border"></div>\r
128                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
129                                                                         <span id="link_layerRate_sorticon"\r
130                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Layer Rate\r
131                                             </span>\r
132                                 </div>\r
133                             </th>\r
134                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
135                                 data-field="aEnd" data-sortable="true" data-filter-control="input">\r
136                                 <div class="openo-table-th-border"></div>\r
137                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
138                                                                         <span id="link_aEnd_sorticon"\r
139                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Source Port\r
140                                             </span>\r
141                                 </div>\r
142                             </th>\r
143                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
144                                 data-field="zEnd" data-sortable="true" data-filter-control="input">\r
145                                 <div class="openo-table-th-border"></div>\r
146                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
147                                                                         <span id="link_zEnd_sorticon"\r
148                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Sink Port\r
149                                             </span>\r
150                                 </div>\r
151                             </th>\r
152 \r
153                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
154                                 data-field="aEndME" 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="link_source_sorticon"\r
158                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Source NE\r
159                                             </span>\r
160                                 </div>\r
161                             </th>\r
162                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
163                                 data-field="zEndME" 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="link_source_sorticon"\r
167                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Sink NE\r
168                                             </span>\r
169                                 </div>\r
170                             </th>\r
171                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
172                                 data-field="adminState" data-sortable="true" 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="link_adminState_sorticon"\r
176                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Admin State\r
177                                             </span>\r
178                                 </div>\r
179                             </th>\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="link_operState_sorticon"\r
185                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Operating State\r
186                                             </span>\r
187                                 </div>\r
188                             </th>\r
189                             <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"\r
190                                 data-field="siteType" align="center" data-formatter="operateFormatter"\r
191                                 data-events="operateEvents">\r
192                                 <div class="openo-table-th-border"></div>\r
193                                 <div class="DataTables_sort_wrapper openo-ellipsis ">\r
194                                                                         <span id="link_latency_sorticon"\r
195                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Actions\r
196                                             </span>\r
197                                 </div>\r
198                             </th>\r
199                         </tr>\r
200                         </thead>\r
201                         <tbody>\r
202                         <!-- <tr style="display: none;">\r
203                             <td colspan="7" style="text-align: center;">NULL</td>\r
204                         </tr>\r
205                         <tr class="odd  openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">\r
206                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor    " data-colid="siteName" data-tableid="siteTable">\r
207                                 <div class="openo-table-disable-element overflow_elip leftDataAlign">\r
208                                     <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">Link1</a></div>\r
209                             </td>\r
210                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
211                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">Type</div>\r
212                             </td>\r
213                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
214                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">15</div>\r
215                             </td>\r
216                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
217                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">8080</div>\r
218                             </td>\r
219                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
220                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">1234</div>\r
221                             </td>\r
222                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
223                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">NE</div>\r
224                             </td>\r
225                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
226                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>\r
227                             </td>\r
228                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">\r
229                                 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>\r
230                             </td>\r
231                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">\r
232                                 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">\r
233                                 <div>\r
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/">\r
235                                 </div></div>\r
236                             </td>\r
237                         </tr> -->\r
238                         </tbody>\r
239                     </table>\r
240                 </div>\r
241             </div>\r
242         </div>\r
243     </div>\r
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> -->\r
245 \r
246     <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"\r
247          aria-labelledby="myModalLabel" aria-hidden="false">\r
248         <div class="modal-dialog">\r
249             <div class="modal-content">\r
250                 <div class="content">\r
251                     <div class="modal-header">\r
252                         <button type="button" class="close" data-dismiss="modal"\r
253                                 aria-hidden="true">×\r
254                         </button>\r
255                         <h4 class="modal-title" id="myModalLabel">\r
256                             <span>Create</span>\r
257                         </h4>\r
258                     </div>\r
259                     <form class="form-horizontal" role="form" id="linkForm">\r
260                         <div id="wizard">\r
261                             <div class="modal-body">\r
262                                 <ul class="nav nav-pills nav-justified vmapp-margin">\r
263                                 </ul>\r
264                                 <div class="tab-content">\r
265                                     <div class="tab-pane active" id="basicTab">\r
266                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
267                                             <label class="col-sm-3 control-label">\r
268                                                 <span>Name</span>\r
269                                                 <span class="required">*</span>\r
270                                             </label>\r
271                                             <div class="col-sm-7">\r
272                                                 <input type="text" id="name" name="name" class="form-control"/>\r
273                                             </div>\r
274                                         </div>\r
275                                         <div class="form-group">\r
276                                             <label class="col-sm-3 control-label">\r
277                                                 <span>Type</span>\r
278                                             </label>\r
279                                             <div class="col-sm-7">\r
280                                                 <select class="form-control"\r
281                                                         style="padding-top: 0px;padding-bottom: 0px;" id="logicalType"\r
282                                                         name="logicalType">\r
283                                                     <option value="fiberLink">Fiber Link</option>\r
284                                                     <option value="l2Link">L2 Link</option>\r
285                                                     <option value="ipLink">IP Link</option>\r
286                                                     <option value="electricalLink">Electrical Link</option>\r
287                                                 </select>\r
288                                             </div>\r
289                                         </div>\r
290                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
291                                             <label class="col-sm-3 control-label">\r
292                                                 <span>Layer Rate</span>\r
293                                             </label>\r
294                                             <div class="col-sm-7">\r
295                                                 <input type="text" id="layerRate" name="layerRate"\r
296                                                        class="form-control"/>\r
297                                             </div>\r
298                                         </div>\r
299 \r
300 \r
301                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
302                                             <label class="col-sm-3 control-label">\r
303                                                 <span>Source Port</span>\r
304                                             </label>\r
305                                             <div class="col-sm-7">\r
306                                                 <input type="text" id="aEnd" name="aEnd" class="form-control"/>\r
307                                             </div>\r
308                                         </div>\r
309                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
310                                             <label class="col-sm-3 control-label">\r
311                                                 <span>Sink Port</span>\r
312                                             </label>\r
313                                             <div class="col-sm-7">\r
314                                                 <input type="text" id="zEnd" name="zEnd" class="form-control"/>\r
315                                             </div>\r
316                                         </div>\r
317                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
318                                             <label class="col-sm-3 control-label">\r
319                                                 <span>Source NE</span>\r
320                                             </label>\r
321                                             <div class="col-sm-7">\r
322                                                 <input type="text" id="aEndMe" name="aEndME" class="form-control"/>\r
323                                             </div>\r
324                                         </div>\r
325                                         <div class="form-group" ms-class="has-error:vmAppDialog.name==''">\r
326                                             <label class="col-sm-3 control-label">\r
327                                                 <span>Sink NE</span>\r
328                                             </label>\r
329                                             <div class="col-sm-7">\r
330                                                 <input type="text" id="zEndMe" name="zEndME" class="form-control"/>\r
331                                             </div>\r
332                                         </div>\r
333                                     </div>\r
334                                 </div>\r
335                             </div>\r
336                             <div class="modal-footer">\r
337                                 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"\r
338                                         id="createLink">\r
339                                     <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>\r
340                                 </button>\r
341                                 <button type="button" class="btn button-previous SDBtn">\r
342                                     <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>\r
343                                 </button>\r
344 \r
345                             </div>\r
346                         </div>\r
347                     </form>\r
348                 </div>\r
349             </div>\r
350         </div>\r
351     </div>\r
352 </div>\r
353 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"\r
354      style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">\r
355     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_0"><label\r
356             class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>\r
357     </div>\r
358     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_1"><label\r
359             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>\r
360     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_2"><label\r
361             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>\r
362     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_3"><label\r
363             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>\r
364     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_4"><label\r
365             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>\r
366 </div>\r
367 \r
368 \r
369 </body>\r
370 </html>