rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / resmgr / src / main / webapp / resmgr-sdn / port.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                 loadPortData();
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
46                     deletePort(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
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         </div>
94     </div>
95 </div>
96
97 <div class="row-fluid" data-name="table_zone">
98     <div id='ict_virtualApplication_table_div'>
99         <div>
100             <div class="top">
101                 <table id="port" data-pagination="true" data-page-size="5" data-pagination-first-text="First"
102                        data-pagination-pre-text="Previous" data-pagination-next-text="Next"
103                        data-pagination-last-text="Last" data-filter-control="true">
104                     <thead id="portTable_thead" class="openo-table-thead" style="background:#ECECEC;">
105                     <tr class="active">
106                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
107                             data-field="name" data-sortable="true" data-filter-control="input">
108                             <div class="openo-table-th-border"></div>
109                             <div class="DataTables_sort_wrapper openo-ellipsis ">
110                                                                                         <span id="portName_sorticon"
111                                                   class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign  openo-table-disable-element ">Name
112                                              </span>
113                             </div>
114                         </th>
115                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
116                             data-field="meID" data-sortable="true" data-filter-control="input">
117                             <div class="openo-table-th-border"></div>
118                             <div class="DataTables_sort_wrapper openo-ellipsis ">
119                                                                         <span id="portmeID_sorticon"
120                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">ME
121                                             </span>
122                             </div>
123                         </th>
124                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
125                             data-field="logicalType" data-sortable="true" data-filter-control="input">
126                             <div class="openo-table-th-border"></div>
127                             <div class="DataTables_sort_wrapper openo-ellipsis ">
128                                                                         <span id="portLogicalType_sorticon"
129                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Type
130                                             </span>
131                             </div>
132                         </th>
133                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
134                             data-field="layerRate" data-sortable="true" data-filter-control="input">
135                             <div class="openo-table-th-border"></div>
136                             <div class="DataTables_sort_wrapper openo-ellipsis ">
137                                                                         <span id="portLayerRate_sorticon"
138                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Layer Rate
139                                             </span>
140                             </div>
141                         </th>
142                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
143                             data-field="isEdgePoint" data-sortable="true" data-filter-control="input">
144                             <div class="openo-table-th-border"></div>
145                             <div class="DataTables_sort_wrapper openo-ellipsis ">
146                                                                         <span id="portIsEdgePoint_sorticon"
147                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Edge Point
148                                             </span>
149                             </div>
150                         </th>
151                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
152                             data-field="portIndex" data-sortable="true" data-filter-control="input">
153                             <div class="openo-table-th-border"></div>
154                             <div class="DataTables_sort_wrapper openo-ellipsis ">
155                                                                         <span id="portIndex_sorticon"
156                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Port Index
157                                             </span>
158                             </div>
159                         </th>
160                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
161                             data-field="ipAddress" data-sortable="true" data-filter-control="input">
162                             <div class="openo-table-th-border"></div>
163                             <div class="DataTables_sort_wrapper openo-ellipsis ">
164                                                                         <span id="portIpAddress_sorticon"
165                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">IP Address
166                                             </span>
167                             </div>
168                         </th>
169                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
170                                 data-field="nativeID" data-sortable="true" data-filter-control="input">
171                                 <div class="openo-table-th-border"></div>
172                                 <div class="DataTables_sort_wrapper openo-ellipsis ">
173                                             <span id="native_Id"
174                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Native ID
175                                             </span>
176                                 </div>
177                         </th>                                           
178                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
179                             data-field="adminState" data-sortable="true" data-filter-control="input">
180                             <div class="openo-table-th-border"></div>
181                             <div class="DataTables_sort_wrapper openo-ellipsis ">
182                                                                         <span id="portAdminState_sorticon"
183                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Admin State
184                                             </span>
185                             </div>
186                         </th>
187                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
188                             data-field="operState" data-sortable="true" data-filter-control="input">
189                             <div class="openo-table-th-border"></div>
190                             <div class="DataTables_sort_wrapper openo-ellipsis ">
191                                                                         <span id="portOperState_sorticon"
192                                                   class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Operating State
193                                             </span>
194                             </div>
195                         </th>
196                         <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
197                             align="center" data-formatter="operateFormatter" data-events="operateEvents">
198                             <div class="openo-table-th-border"></div>
199                             <div class="DataTables_sort_wrapper openo-ellipsis ">
200                                 <span id="portAction_sorticon"
201                                       class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Action</span>
202                             </div>
203                         </th>
204                     </tr>
205                     </thead>
206                     <!-- <tbody>
207                         <tr style="display: none;">
208                             <td colspan="7" style="text-align: center;">NULL</td>
209                         </tr>
210                         <tr class="odd  openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
211                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteName" data-tableid="siteTable">
212                                 <div class="openo-table-disable-element overflow_elip leftDataAlign">
213                                     <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_portName_link"></a>Port1</div>
214                             </td>
215                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >ME</div>
216                             </td>
217                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Type</div>
218                             </td>
219                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12</div>
220                             </td>
221                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Edge</div>
222                             </td>
223                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12345</div>
224                             </td>
225                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >255.255.255.123</div>
226                             </td>
227                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >UP</div>
228                             </td>
229                             <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><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="deletePort('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
235                                     </div>
236                                 </div>
237                             </td>
238                         </tr>
239                     </tbody> -->
240                 </table>
241             </div>
242         </div>
243     </div>
244 </div>
245 <!-- <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> -->
246
247 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
248      aria-labelledby="myModalLabel" aria-hidden="false">
249     <div class="modal-dialog">
250         <div class="modal-content">
251             <div class="content">
252                 <div class="modal-header">
253                     <button type="button" class="close" data-dismiss="modal"
254                             aria-hidden="true">×
255                     </button>
256                     <h4 class="modal-title" id="myModalLabel">
257                         <span>Create</span>
258                     </h4>
259                 </div>
260                 <form class="form-horizontal" role="form" id="portForm">
261                     <div id="wizard">
262                         <div class="modal-body">
263                             <ul class="nav nav-pills nav-justified vmapp-margin">
264                             </ul>
265                             <div class="tab-content">
266                                 <div class="tab-pane active" id="basicTab">
267                                     <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
268                                         <label class="col-sm-3 control-label">
269                                             <span>Name</span>
270                                             <span class="required">*</span>
271                                         </label>
272                                         <div class="col-sm-7">
273                                             <input type="text" id="name" name="name" class="form-control"
274                                                    placeholder="Name"/>
275                                         </div>
276                                     </div>
277                                     <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
278                                         <label class="col-sm-3 control-label">
279                                             <span>ME</span>
280                                             <span class="required">*</span>
281                                         </label>
282                                         <div class="col-sm-7">
283                                             <input type="text" id="meID" name="meID" class="form-control"
284                                                    placeholder="ME"/>
285                                         </div>
286                                     </div>
287                                     <div class="form-group">
288                                         <label class="col-sm-3 control-label">
289                                             <span>Type</span>
290                                         </label>
291                                         <div class="col-sm-7">
292                                             <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
293                                                     id="logicalType"
294                                                     name="logicalType">
295                                                 <option value="ETH">ETH</option>
296                                                 <option value="POS">POS</option>
297                                                 <option value="Trunk">Trunk</option>
298                                                 <option value="Loopback">Loopback</option>
299                                             </select>
300                                         </div>
301                                     </div>
302                                     <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
303                                         <label class="col-sm-3 control-label">
304                                             <span>Layer Rate</span>
305                                         </label>
306                                         <div class="col-sm-7">
307                                             <input type="text" id="layerRate" name="layerRate" class="form-control"
308                                                    placeholder="Layer Rate"/>
309                                         </div>
310                                     </div>
311                                     <div class="form-group">
312                                         <label class="col-sm-3 control-label">
313                                             <span>Edge Point</span>
314                                         </label>
315                                         <div class="col-sm-7">
316                                             <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
317                                                     id="isEdgePoint"
318                                                     name="isEdgePoint">
319                                                 <option value="true">True</option>
320                                                 <option value="false">False</option>
321                                             </select>
322                                         </div>
323                                     </div>
324                                     <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
325                                         <label class="col-sm-3 control-label">
326                                             <span>Port Index</span>
327                                         </label>
328                                         <div class="col-sm-7">
329                                             <input type="text" id="portIndex" name="portIndex" class="form-control"
330                                                    placeholder="Port Index"/>
331                                         </div>
332                                     </div>
333
334                                     <div class="form-group">
335                                         <label class="col-sm-3 control-label">
336                                             <span>IP Address</span>&nbsp;&nbsp;&nbsp;
337                                         </label>
338                                         <div class="col-sm-7">
339                                             <input type="text" id="ipAddress" name="ipAddress" class="form-control"
340                                                    placeholder="255.255.255.255"/>
341                                         </div>
342                                     </div>
343                                     <div class="form-group">
344                                             <label class="col-sm-3 control-label">
345                                                 <span>Native ID</span>&nbsp;&nbsp;&nbsp;
346                                             </label>
347                                             <div class="col-sm-7">
348                                                 <input type="text" id="nativeID" name="nativeID" class="form-control"
349                                                        placeholder="Native ID"/>
350                                             </div>
351                                     </div>
352                                 </div>
353                             </div>
354                         </div>
355                         <div class="modal-footer">
356                             <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
357                                     id="createPort">
358                                 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
359                             </button>
360                             <button type="button" class="btn button-previous SDBtn">
361                                 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
362                             </button>
363
364                         </div>
365                     </div>
366                 </form>
367             </div>
368         </div>
369     </div>
370 </div>
371 </div>
372 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
373      style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
374     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_0"><label
375             class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
376     </div>
377     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_1"><label
378             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
379     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_2"><label
380             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
381     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_3"><label
382             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
383     <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_4"><label
384             class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>
385 </div>
386
387
388 </body>
389 </html>