2 Copyright 2016-2017, Huawei Technologies Co., Ltd.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
21 <meta charset="UTF-8">
23 <link href="css/bootstrap.min.css" rel="stylesheet"/>
24 <link href="css/VMMain.css" rel="stylesheet"/>
25 <link href="css/resmgr.css" rel="stylesheet"/>
26 <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/bootstrap-table.min.js"></script>
31 <script type="text/javascript" src="js/bootbox.min.js"></script>
32 <script type="text/javascript" src="js/jquery.validate.min.js"></script>
33 <script type="text/javascript" src="js/validateset.js"></script>
35 <script type="text/javascript" src="js/gconf.js"></script>
36 <script type="text/javascript" src="js/resmgr.js"></script>
38 <style type="text/css">
40 <script type="text/javascript">
41 $(document).ready(function () {
46 "description": "description",
51 "country": "Americaxx",
52 "location": "addressXXXxx",
53 "description": "xxxxx",
58 $('#location_table').bootstrapTable({
59 //Assigning example data to table
66 function operateFormatter(value, row, index) {
67 return ['<img class="locationEditImg" src="images/edit.png" href="javascript:void(0)" style="cursor: pointer" name="edit" title="Edit" /> <img class="locationDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />']
71 window.operateEvents = {
72 'click .locationDeleteImg': function (e, value, row, index) {
73 deleteLocation(row.id);
74 console.log(value, row, index);
76 'click .locationEditImg': function (e, value, row, index) {
78 console.log(value, row, index);
85 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
86 <div class="container-fluid ms-controller">
88 <div class="uploadBtn">
89 <div id="open_base_tpL_userHeader" class="userHeader">
90 <div id="open_base_tpL_buttonGroup"
91 class="openoButton_buttonGroupClass">
93 class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
94 tabindex="0" id="false" text="res.brApp_ui_res_btn_create"
95 icon-url="./images/add.png" cls="defaultbutton" click="clickAdd"
96 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
98 class="openoButton_buttonInnerClass openo-corner-all openoButton_Image"
100 <span class="openo-widget-button-image openoButton_buttonLeftImg"
101 style="background-image: url(images/add.png);"></span><span
102 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Add Location</span><span
103 class="openo-widget-button-image openoButton_buttonImgDefault"></span>
109 class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass undefined openoButton_button_default"
110 tabindex="0" id="meEdit" text="res.brApp_ui_res_btn_edit"
111 display="false" style="display: none;">
112 <div class="openoButton_buttonInnerClass openo-corner-all"
115 class="openo-widget-button-image openoButton_buttonImgDefault"></span><span
116 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Edit</span><span
117 class="openo-widget-button-image openoButton_buttonImgDefault"></span>
125 <div class="row-fluid" data-name="table_zone">
126 <div id='ict_virtualApplication_table_div'>
129 <table id="location_table" data-pagination="true" data-page-size="5"
130 data-pagination-first-text="First"
131 data-pagination-pre-text="Previous"
132 data-pagination-next-text="Next" data-pagination-last-text="Last">
135 <th data-field="id" data-sortable="true">Id</th>
136 <th data-field="country" data-sortable="true">Country</th>
137 <th data-field="location" data-sortable="true">Location</th>
138 <th data-field="description" data-sortable="true">Description</th>
139 <th data-field="latitude" data-sortable="true">Latitude</th>
140 <th data-field="longitude" data-sortable="true">Longitude</th>
141 <th align="center" data-formatter="operateFormatter"
142 data-events="operateEvents">Action
151 <!-- modal dialog area -->
152 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
153 aria-labelledby="myModalLabel" aria-hidden="false">
154 <div class="modal-dialog">
155 <div class="modal-content">
156 <div class="content">
157 <div class="modal-header">
158 <button type="button" class="close" data-dismiss="modal"
161 <h4 class="modal-title" id="myModalLabel">
162 <span>Add Location</span>
165 <form class="form-horizontal" role="form" id="vmAppForm">
167 <div class="modal-body">
168 <ul class="nav nav-pills nav-justified vmapp-margin">
170 <div class="tab-content">
171 <div class="tab-pane active" id="basicTab">
172 <div class="form-group" style="display:none;">
173 <label class="col-sm-3 control-label"> <span>Id</span>
175 <div class="col-sm-7">
176 <input type="text" id="id" name="id"
177 class="form-control" placeholder="id"/>
180 <div class="form-group">
181 <label class="col-sm-3 control-label"> <span>Country</span>
182 <span class="required">*</span>
184 <div class="col-sm-7">
185 <input type="text" id="country" name="country"
186 class="form-control" placeholder="Country"/>
189 <div class="form-group">
190 <label class="col-sm-3 control-label"> <span>Location</span>
191 <span class="required">*</span>
193 <div class="col-sm-7">
194 <input type="text" id="location" name="location"
195 class="form-control" placeholder="Location"/>
198 <div class="form-group">
199 <label class="col-sm-3 control-label"> <span>Latitude</span>
200 <span class="required">*</span>
202 <div class="col-sm-7">
203 <input type="text" id="latitude" name="latitude"
204 class="form-control" placeholder="Latitude"/>
207 <div class="form-group">
208 <label class="col-sm-3 control-label"> <span>Longitude</span>
209 <span class="required">*</span>
211 <div class="col-sm-7">
212 <input type="text" id="longitude" name="longitude"
213 class="form-control" placeholder="Longitude"/>
216 <div class="form-group">
217 <label class="col-sm-3 control-label"> <span>Description</span>
220 <div class="col-sm-7">
221 <input type="text" id="description" name="description"
222 class="form-control" placeholder="Description"/>
230 <div class="modal-footer">
231 <button type="button" class="btn SDBtn" data-dismiss="modal"
232 aria-hidden="true" id="createLocation">
233 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
235 <button type="button" class="btn button-previous SDBtn">
236 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
249 <div id="filterTpLogicalType_select_popupcontainer"
250 class="openo openo-select-popup-container openo-hide"
251 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
252 <div class="openo-select-item openo-ellipsis "
253 id="filterTpLogicalType_openo-select-id_0">
254 <label class="openo-ellipsis openo-select-blank-item"
255 style="width: 100%; display: block; height: 20px;"></label>
257 <div class="openo-select-item openo-ellipsis "
258 id="filterTpLogicalType_openo-select-id_1">
259 <label class="openo-ellipsis "
260 style="width: 100%; display: block; height: 20px;">ETH</label>
262 <div class="openo-select-item openo-ellipsis "
263 id="filterTpLogicalType_openo-select-id_2">
264 <label class="openo-ellipsis "
265 style="width: 100%; display: block; height: 20px;" title="POS">POS</label>
267 <div class="openo-select-item openo-ellipsis "
268 id="filterTpLogicalType_openo-select-id_3">
269 <label class="openo-ellipsis "
270 style="width: 100%; display: block; height: 20px;">Trunk</label>
272 <div class="openo-select-item openo-ellipsis "
273 id="filterTpLogicalType_openo-select-id_4">
274 <label class="openo-ellipsis "
275 style="width: 100%; display: block; height: 20px;">Loopback</label>