blob: 301cb75ab64cbb34f19aa2347c702c13112dd1e9 [file] [log] [blame]
Seshu-Kumar-M8415db02016-09-15 17:36:27 +08001<!--
2
Seshu-Kumar-M72508a12016-09-16 22:33:16 +08003 Copyright 2016, Huawei Technologies Co., Ltd.
Seshu-Kumar-M8415db02016-09-15 17:36:27 +08004
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-->
Seshu-Kumar-Mbc4ce332016-09-14 18:15:51 +080018
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">
33 $(document).ready(function() {
34 var jsondata = [];
35 jsondata = loadNeData();
36 $('#ne').bootstrapTable({
37 //Assigning data to table
38 data: jsondata
39 });
40
41 });
42 function operateFormatter(value, row, index) {
43 return [
44 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
45 ].join('');
46
47 }
48 window.operateEvents = {
49 'click .siteDeleteImg': function (e, value, row, index) {
50 // TO DO ajex call for delete
51 var result = deleteNe(row.id, row);
52 }
53 };
54
55 </script>
56</head>
57<body id="open_base_site_cotentBody" class="cotentBody ng-scope">
58 <div class="container-fluid ms-controller">
59
60
61 <div class="uploadBtn">
62 <div id="open_base_tpL_userHeader" class="userHeader">
63 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
64 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default" tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png" cls="defaultbutton" click="clickAdd" style="display: inline-block; padding-left: 0px; padding-right: 0px;"><div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span class="openo-widget-button-image openoButton_buttonLeftImg" style="background-image: url(images/add.png);"></span><span class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span class="openo-widget-button-image openoButton_buttonImgDefault"></span></div></div>
65 </div>
66 </div>
67 </div>
68
69 <div class="row-fluid" data-name="table_zone">
70 <div id='ict_virtualApplication_table_div'>
71 <div>
72 <div class="top">
73 <table id="ne" data-row-style="rowStyle" 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">
74 <thead class="openo-table-thead">
75 <tr class="active">
76 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="name" data-sortable="true">
77 <div class="openo-table-th-border"></div>
78 <div class="DataTables_sort_wrapper openo-ellipsis ">
79 <span class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
80 </span>
81 </div>
82 </th>
83 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="version" data-sortable="true">
84 <div class="openo-table-th-border"></div>
85 <div class="DataTables_sort_wrapper openo-ellipsis ">
86 <span id="ne_isVersion_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Version
87 </span>
88 </div>
89 </th>
90 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="productName" data-sortable="true">
91 <div class="openo-table-th-border"></div>
92 <div class="DataTables_sort_wrapper openo-ellipsis ">
93 <span id="neproductName_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Product Name
94 </span>
95 </div>
96 </th>
97 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="ipAddress" data-sortable="true">
98 <div class="openo-table-th-border"></div>
99 <div class="DataTables_sort_wrapper openo-ellipsis ">
100 <span id="ne_ipAddress_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">IP Address
101 </span>
102 </div>
103 </th>
104 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="neRole" data-sortable="true">
105 <div class="openo-table-th-border"></div>
106 <div class="DataTables_sort_wrapper openo-ellipsis ">
107 <span id="ne_neRole_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element0" >NE Role
108 </span>
109 </div>
110 </th>
111 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="adminState" >
112 <div class="openo-table-th-border"></div>
113 <div class="DataTables_sort_wrapper openo-ellipsis ">
114 <span id="ne_adminState_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Admin State
115 </span>
116 </div>
117 </th>
118 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" data-field="operState" data-sortable="true">
119 <div class="openo-table-th-border"></div>
120 <div class="DataTables_sort_wrapper openo-ellipsis ">
121 <span id="ne_operState_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operating State
122 </span>
123 </div>
124 </th>
125 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign" align="center" data-formatter = "operateFormatter" data-events="operateEvents" >
126 <div class="openo-table-th-border"></div>
127 <div class="DataTables_sort_wrapper openo-ellipsis ">
128 <span id="ne_nativeID_sorticon" class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Actions
129 </span>
130 </div>
131 </th>
132 </tr></thead>
133 <!-- <tbody>
134 <tr style="display: none;">
135 <td colspan="7" style="text-align: center;">NULL</td>
136 </tr>
137 <tr class="odd openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
138 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
139 <div class="openo-table-disable-element overflow_elip leftDataAlign">
140 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">NE</a></div>
141 </td>
142 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
143 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">1.1</div>
144 </td>
145 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
146 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">SDN</div>
147 </td>
148 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
149 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">192.168.100.102</div>
150 </td>
151 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
152 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Role</div>
153 </td>
154 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
155 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Admin</div>
156 </td>
157 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
158 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">UP</div>
159 </td>
160 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
161 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
162 <div>
163 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteNe('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
164 </div>
165 </div>
166 </td>
167 </tr>
168 <tr class="even openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
169 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
170 <div class="openo-table-disable-element overflow_elip leftDataAlign">
171 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">NE</a></div>
172 </td>
173 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
174 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">1.1</div>
175 </td>
176 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
177 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">SDN</div>
178 </td>
179 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
180 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">192.168.100.102</div>
181 </td>
182 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
183 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Role</div>
184 </td>
185 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
186 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">Admin</div>
187 </td>
188 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
189 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" id="siteTable_0_siteType_custom_el">UP</div>
190 </td>
191 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
192 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
193 <div>
194 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteNe('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
195 </div>
196 </div>
197 </td>
198 </tr>
199 </tbody> -->
200 </table>
201 </div>
202 </div>
203 </div>
204 </div>
205 <!-- <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> -->
206
207 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
208 aria-labelledby="myModalLabel" aria-hidden="false">
209 <div class="modal-dialog">
210 <div class="modal-content">
211 <div class="content">
212 <div class="modal-header">
213 <button type="button" class="close" data-dismiss="modal"
214 aria-hidden="true">×
215 </button>
216 <h4 class="modal-title" id="myModalLabel">
217 <span>Create</span>
218 </h4>
219 </div>
220 <form class="form-horizontal" role="form" id="neForm">
221 <div id="wizard">
222 <div class="modal-body">
223 <ul class="nav nav-pills nav-justified vmapp-margin">
224
225 </ul>
226 <div class="tab-content">
227 <div class="tab-pane active" id="basicTab">
228 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
229 <label class="col-sm-3 control-label">
230 <span>Name</span>
231 <span class="required">*</span>
232 </label>
233 <div class="col-sm-7">
234 <input type="text" id="name" name="name" class="form-control" placeholder="Name"/>
235 </div>
236 </div>
237 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
238 <label class="col-sm-3 control-label">
239 <span>Version</span>
240 <span class="required">*</span>
241 </label>
242 <div class="col-sm-7">
243 <input type="text" id="version" name="version" class="form-control" placeholder="1.1"/>
244 </div>
245 </div>
246 <div class="form-group">
247 <label class="col-sm-3 control-label">
248 <span>Product Name</span>&nbsp;&nbsp;&nbsp;
249 </label>
250 <div class="col-sm-7">
251 <input type="text" id="productName" name="productName" class="form-control" placeholder="Product Name"/>
252 </div>
253 </div>
254 <div class="form-group">
255 <label class="col-sm-3 control-label">
256 <span>IP Address</span>&nbsp;&nbsp;&nbsp;
257 </label>
258 <div class="col-sm-7">
259 <input type="text" id="ipAddress" name="ipAddress" class="form-control" placeholder="255.255.255.255"/>
260 </div>
261 </div>
262 <!-- TODO : check for valid neRole
263 <div class="form-group">
264 <label class="col-sm-3 control-label">
265 <span>NE Role</span>&nbsp;&nbsp;&nbsp;
266 </label>
267 <div class="col-sm-7">
268 <input type="text" id="neRole" name="neRole" class="form-control" placeholder="Role"/>
269 </div>
270 </div>
271 -->
272 </div>
273 </div>
274 </div>
275 <div class="modal-footer">
276 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true" id="createNe">
277 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
278 </button>
279 <button type="button" class="btn button-previous SDBtn">
280 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
281 </button>
282
283 </div>
284 </div>
285 </form>
286 </div>
287 </div>
288 </div>
289 </div>
290 </div>
291 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide" style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;"><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div><div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div></div>
292
293
294</body>
295</html>