3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
\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
9 http://www.apache.org/licenses/LICENSE-2.0
\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
23 <meta charset="UTF-8">
\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/controller.js"></script>
\r
30 <script type="text/javascript" src="js/bootstrap.min.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 loadControllerData();
\r
37 function operateFormatter(value, row, index) {
\r
38 return ['<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />']
\r
42 window.operateEvents = {
\r
43 'click .siteDeleteImg': function (e, value, row, index) {
\r
44 // TO DO ajex call for delete
\r
45 deleteController(row["sdnControllerId"]);
\r
50 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
\r
51 <div class="container-fluid ms-controller">
\r
53 <div class="uploadBtn">
\r
54 <div id="open_base_tpL_userHeader" class="userHeader">
\r
55 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
\r
57 class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
\r
58 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
\r
59 cls="defaultbutton" click="clickAdd"
\r
60 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
\r
61 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button">
\r
62 <span class="openo-widget-button-image openoButton_buttonLeftImg"
\r
63 style="background-image: url(images/add.png);"></span><span
\r
64 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
\r
65 class="openo-widget-button-image openoButton_buttonImgDefault"></span>
\r
73 <div class="row-fluid" data-name="table_zone">
\r
74 <div id='ict_virtualApplication_table_div'>
\r
77 <table id="controller" data-pagination="true" data-page-size="10"
\r
78 data-pagination-first-text="First" data-pagination-pre-text="Previous"
\r
79 data-pagination-next-text="Next" data-pagination-last-text="Last" data-filter-control="true">
\r
80 <thead id="controller" class="openo-table-thead">
\r
83 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
84 data-field="name" data-sortable="true" data-filter-control="input">
\r
85 <div class="openo-table-th-border"></div>
\r
86 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
87 <span id="ctrler_name_sorticon"
\r
88 class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
\r
93 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
94 data-field="protocol" data-sortable="true" data-filter-control="input">
\r
95 <div class="openo-table-th-border"></div>
\r
96 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
97 <span id="ctrler_protocol_sorticon"
\r
98 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Protocol
\r
103 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
104 data-field="productname" data-sortable="true" data-filter-control="input">
\r
105 <div class="openo-table-th-border"></div>
\r
106 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
107 <span id="ctrler_productname_sorticon"
\r
108 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Product
\r
113 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
114 data-field="type" data-sortable="true" data-filter-control="input">
\r
115 <div class="openo-table-th-border"></div>
\r
116 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
117 <span id="ctrler_type_sorticon"
\r
118 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Type
\r
123 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
124 data-field="vendor" data-sortable="true" data-filter-control="input">
\r
125 <div class="openo-table-th-border"></div>
\r
126 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
127 <span id="ctrler_vendor_sorticon"
\r
128 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Vendor
\r
134 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
135 data-field="version" 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="ctrler_version_sorticon"
\r
139 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Version
\r
144 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
145 data-field="description" data-sortable="true" data-filter-control="input">
\r
146 <div class="openo-table-th-border"></div>
\r
147 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
148 <span id="ctrler_description_sorticon"
\r
149 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Description
\r
154 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
155 data-field="createtime" data-sortable="true" data-filter-control="input">
\r
156 <div class="openo-table-th-border"></div>
\r
157 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
158 <span id="ctrler_createtime_sorticon"
\r
159 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Create
\r
164 class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
165 data-field="operation" data-sortable="true" data-filter-control="input">
\r
166 <div class="openo-table-th-border"></div>
\r
167 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
168 <span id="ctrler_operation_sorticon"
\r
169 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operation
\r
173 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
174 align="center" data-formatter="operateFormatter" data-events="operateEvents">
\r
175 <div class="openo-table-th-border"></div>
\r
176 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
177 <span id="ctrler_nativeID_sorticon"
\r
178 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Actions
\r
191 <!-- <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"> </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"> </a></li></ul></div></div> -->
\r
193 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
\r
194 aria-hidden="false">
\r
195 <div class="modal-dialog">
\r
196 <div class="modal-content">
\r
197 <div class="content">
\r
198 <div class="modal-header">
\r
199 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
\r
200 <h4 class="modal-title" id="myModalLabel">
\r
201 <span>Create</span>
\r
204 <form class="form-horizontal" role="form" id="controllerForm">
\r
206 <div class="modal-body">
\r
207 <ul class="nav nav-pills nav-justified vmapp-margin">
\r
209 <div class="tab-content">
\r
210 <div class="tab-pane active" id="basicTab">
\r
211 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
212 <label class="col-sm-3 control-label"> <span>Name</span> <span
\r
213 class="required">*</span>
\r
215 <div class="col-sm-7">
\r
216 <input type="text" id="name" name="name" class="form-control"/>
\r
219 <div class="form-group">
\r
220 <label class="col-sm-3 control-label"> <span>URL</span> <span
\r
221 class="required">*</span>
\r
223 <div class="col-sm-7">
\r
224 <input type="text" id="url" name="url" class="form-control"/>
\r
227 <div class="form-group">
\r
228 <label class="col-sm-3 control-label"> <span>User Name</span> <span
\r
229 class="required">*</span>
\r
231 <div class="col-sm-7">
\r
232 <input type="text" id="username" name="username"
\r
233 class="form-control"/>
\r
236 <div class="form-group">
\r
237 <label class="col-sm-3 control-label"> <span>Password</span> <span
\r
238 class="required">*</span>
\r
240 <div class="col-sm-7">
\r
241 <input type="password" id="password" name="password"
\r
242 class="form-control"/>
\r
245 <div class="form-group">
\r
246 <label class="col-sm-3 control-label"> <span>Version</span><span
\r
247 class="required">*</span>
\r
249 <div class="col-sm-7">
\r
250 <input type="text" id="version" name="version" class="form-control"/>
\r
253 <div class="form-group">
\r
254 <label class="col-sm-3 control-label"> <span>Vendor</span>
\r
256 <div class="col-sm-7">
\r
257 <input type="text" id="vendor" name="vendor" class="form-control"/>
\r
260 <div class="form-group">
\r
261 <label class="col-sm-3 control-label"> <span>Description</span>
\r
263 <div class="col-sm-7">
\r
264 <input type="text" id="description" name="description"
\r
265 class="form-control"/>
\r
268 <div class="form-group">
\r
269 <label class="col-sm-3 control-label"> <span>Protocol</span>
\r
271 <div class="col-sm-7">
\r
272 <select class="form-control"
\r
273 style="padding-top: 0px; padding-bottom: 0px;" id="protocol"
\r
275 <option value="netconf">netconf</option>
\r
276 <option value="snmp">snmp</option>
\r
280 <div class="form-group">
\r
281 <label class="col-sm-3 control-label"> <span>Product Name</span>
\r
283 <div class="col-sm-7">
\r
284 <input type="text" id="productname" name="productname"
\r
285 class="form-control"/>
\r
288 <div class="form-group">
\r
289 <label class="col-sm-3 control-label"> <span>Type</span><span
\r
290 class="required">*</span>
\r
292 <div class="col-sm-7">
\r
293 <input type="text" id="type" name="type"
\r
294 class="form-control"/>
\r
300 <div class="modal-footer">
\r
301 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
\r
302 id="createController">
\r
303 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
\r
305 <button type="button" class="btn button-previous SDBtn">
\r
306 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
\r
317 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
\r
318 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
\r
319 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0">
\r
320 <label class="openo-ellipsis openo-select-blank-item"
\r
321 style="width: 100%; display: block; height: 20px;"></label>
\r
323 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1">
\r
324 <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label>
\r
326 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2">
\r
327 <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label>
\r
329 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3">
\r
330 <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label>
\r
332 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4">
\r
333 <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label>
\r