rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / lifecyclemgr / src / main / webapp / lifecyclemgr / UnderLay_TP.html
1
2 <!-- /* Copyright 2016-2017, Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *       http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16  -->
17
18 <!DOCTYPE html>
19
20 <html>
21
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/underlay.js"></script>
32     <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
33     <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
34     <style>
35         .fixed-table-container tbody td .th-inner,
36         .fixed-table-container thead th .th-inner {
37             line-height: 4px;
38         }
39         .fixed-table-pagination .pagination-info {
40             display: none !important;
41         }
42         .table tbody tr:hover td,
43         .table tbody tr.odd:hover td {
44             background-color: #e6fbe0 !important;
45         }
46         .delete-btn {
47             background: url(delete.png) no-repeat !important;
48             width: 16px;
49             height: 16px;
50             border: none;
51         }
52         table tr.openoTable_row_selected td {
53             background: #e8f8fe!important;
54             border-bottom: 1px solid #e8e8e8!important;
55         }
56         .container-fluid {
57             padding-left: 10px;
58             padding-right: 0px;
59         }
60     </style>
61     <script type="text/javascript">
62     $(document).ready(function() {
63         var jsondata = loadUnderlayData();
64         $('#tbl_overlay').bootstrapTable({
65             //Assigning data to table
66             data: jsondata
67         });
68         $('#underlayTpDataTable').bootstrapTable({
69             //Assigning data to table
70             data: {}
71         });
72         $('.table tbody tr').click(function() {
73                  
74                 $(this).addClass('openoTable_row_selected').siblings().removeClass('openoTable_row_selected');
75           });
76
77             $('#sai').on('sort.bs.table', function () {
78    
79
80             }).on('click-row.bs.table', function () {
81        
82          
83          $('.table tbody tr').click(function() {
84                     
85                 $(this).addClass('openoTable_row_selected').siblings().removeClass('openoTable_row_selected');
86           });
87         
88          });
89     });
90
91     function operateFormatter(value, row, index) {
92         return [
93             '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
94         ].join('');
95     }
96     window.operateEvents = {
97         'click .siteDeleteImg': function(e, value, row, index) {
98             // TO DO ajex call for delete
99             console.log(value, row, index);
100         }
101     };
102     /* function nameFormatter(value, row) {
103                 jsonForTP = row.json.data;
104                 var name=JSON.stringify(row.json.data);
105                 var temp = "<a class='underlayNameLink' onclick='getMethod(this)' name='"+ name + "' data-events='operateEventsU'>" + value + "</a>";
106         return temp;
107     }*/
108     function getMethod(obj) {
109         //Update the lower table here
110         $('#underlayTpDataTable').bootstrapTable(
111             //Assigning data to table
112             "append", JSON.parse(obj.name)
113         );
114     }
115     </script>
116
117 </head>
118
119 <body id="open_base_vpn_cotentBody" class="cotentBody ng-scope">
120     <div class="container-fluid ms-controller">
121         <h3>TP Details</h3>
122  <!--        <div class="row-fluid" data-name="table_zone">
123             <div id=''>
124                 <div>
125                     <div class="top">
126                         <table class="table table-striped" id="tbl_overlay" data-pagination="true" data-page-size="5" data-pagination-first-text="First" data-pagination-pre-text="Previous" data-pagination-next-text="Next" data-pagination-last-text="Last">
127                             <thead id="sunderlayTable_thead" class="openo-table-thead" style="background:#ECECEC">
128                                 <tr class="active">
129
130                                   <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="underlayType" data-sortable="true">
131                                         <div class="openo-table-th-border"></div>
132                                         <div class="DataTables_sort_wrapper openo-ellipsis ">
133                                             <span id="underlayType_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">TP Name
134                     </span>
135                                         </div>
136                                     </th>
137                                     <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="underlayTenantName" data-sortable="true">
138                                         <div class="openo-table-th-border"></div>
139                                         <div class="DataTables_sort_wrapper openo-ellipsis ">
140                                             <span id="underlayTenantName_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">PE Name
141                             </span>
142                                         </div>
143                                     </th>
144                                     <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="underlayType" data-sortable="true">
145                                         <div class="openo-table-th-border"></div>
146                                         <div class="DataTables_sort_wrapper openo-ellipsis ">
147                                             <span id="underlayType_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">VLAN ID
148                     </span>
149                                         </div>
150                                     </th>
151                                    <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="underlayType" data-sortable="true">
152                                         <div class="openo-table-th-border"></div>
153                                         <div class="DataTables_sort_wrapper openo-ellipsis ">
154                                             <span id="underlayType_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Site CIDR
155                     </span>
156                                         </div>
157                                     </th>
158                                   <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="underlayType" data-sortable="true">
159                                         <div class="openo-table-th-border"></div>
160                                         <div class="DataTables_sort_wrapper openo-ellipsis ">
161                                             <span id="underlayType_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">IP
162                     </span>
163                                         </div>
164                                     </th>
165
166                                 </tr>
167                             </thead>
168                             <tbody>
169
170                                 <tr>
171                                     <td>a_data </td>
172                                     <td>data </td>
173                                     <td>Sample1 </td>
174                                   <td>Sample </td>
175                                     <td>Sample1 </td>
176                                 </tr>
177
178                               <tr>
179                                     <td>b_data </td>
180                                     <td>new sample </td>
181                                     <td>modified </td>
182                                   <td>Sample </td>
183                                     <td>Sample1 </td>
184                                 </tr>
185
186                                <tr>
187                                   <td>alarm </td>
188                                     <td>deleted </td>
189                                     <td>Sample </td>
190                                   <td>Sample </td>
191                                     <td>Sample1 </td>
192                                 </tr>
193
194                                <tr>
195                                     <td>datanew </td>
196                                     <td>Sample </td>
197                                     <td>Sample1 </td>
198                                   <td>Sample </td>
199                                     <td>Sample1 </td>
200                                 </tr>
201                             </tbody>
202
203                         </table>
204                     </div>
205                 </div>
206             </div>
207         </div> -->
208
209     <div class="row-fluid" data-name="table_zone">
210         <div id='ict_virtualApplication_table_div'>
211             <div>
212                 <div class="top">
213                     <table class="table-striped table " id="sai" data-pagination="true" data-pagination-first-text="First"
214                            data-pagination-pre-text="Previous" data-pagination-next-text="Next" data-pagination-last-text="Last"
215                            data-filter-control="true">
216                         <thead style="background:#ECECEC">
217                         <tr>
218                             <th data-field="tname" data-sortable="true" data-filter-control="input">TP Name</th>
219                             <th data-field="pname" data-sortable="true" data-filter-control="input">PE Name</th>
220                             <th data-field="vlan" data-sortable="true" data-filter-control="input">VLAN ID</th>
221                             <th data-field="site" data-sortable="true" data-filter-control="input">Site CIDR</th>
222                             <th data-field="ip" data-sortable="true" data-filter-control="input">IP</th>
223                         </tr>
224                         </thead>
225                     </table>
226                 </div>
227             </div>
228         </div>
229     </div>
230
231        
232
233     </div>
234
235 </body>
236
237 </html>