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