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/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" src="js/bootstrap-table-filter-control.min.js"></script>
34 <style type="text/css">
36 <script type="text/javascript">
37 $(document).ready(function () {
41 function operateFormatter(value, row, index) {
43 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
47 window.operateEvents = {
48 'click .siteDeleteImg': function (e, value, row, index) {
49 // TO DO ajex call for delete
51 console.log(value, row, index);
56 .fixed-table-container tbody td .th-inner,
57 .fixed-table-container thead th .th-inner {
60 .fixed-table-pagination .pagination-info {
61 display: none !important;
63 .table tbody tr:hover td,
64 .table tbody tr.odd:hover td {
65 background-color: #e6fbe0 !important;
67 table tr.openoTable_row_selected td {
68 background: #e8f8fe!important;
69 border-bottom: 1px solid #e8e8e8!important;
75 .modal-footer > .btn {
81 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
82 <div class="container-fluid ms-controller">
84 <div class="uploadBtn">
85 <div id="open_base_tpL_userHeader" class="userHeader">
86 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
87 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
88 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
89 cls="defaultbutton" click="clickAdd"
90 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
91 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span
92 class="openo-widget-button-image openoButton_buttonLeftImg"
93 style="background-image: url(images/add.png);"></span><span
94 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
95 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
99 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass undefined openoButton_button_default"
100 tabindex="0" id="meEdit" text="res.brApp_ui_res_btn_edit" display="false" style="display: none;">
101 <div class="openoButton_buttonInnerClass openo-corner-all" id="meEdit_button"><span
102 class="openo-widget-button-image openoButton_buttonImgDefault"></span><span
103 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Edit</span><span
104 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
111 <div class="row-fluid" data-name="table_zone">
112 <div id='ict_virtualApplication_table_div'>
116 data-pagination="true" data-page-size="5" data-pagination-first-text="First"
117 data-pagination-pre-text="Previous" data-pagination-next-text="Next"
118 data-pagination-last-text="Last" data-filter-control="true">
119 <thead style="background:#ECECEC;">
121 <th data-field="name" data-sortable="true" data-filter-control="input">Name</th>
122 <th data-field="type" data-sortable="true" data-filter-control="input">Type</th>
123 <th data-field="tenantID" data-sortable="true" data-filter-control="input">Tenant Name</th>
124 <th data-field="tenantSiteIDs" data-sortable="true" data-filter-control="input">Tenant Site</th>
125 <th data-field="location" data-sortable="true" data-filter-control="input">Location</th>
127 <th align="center" data-formatter="operateFormatter" data-events="operateEvents">Action</th>
135 <!-- <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> -->
137 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
138 aria-labelledby="myModalLabel" aria-hidden="false">
139 <div class="modal-dialog">
140 <div class="modal-content">
141 <div class="content">
142 <div class="modal-header">
143 <button type="button" class="close" data-dismiss="modal"
146 <h4 class="modal-title" id="myModalLabel">
150 <form class="form-horizontal" role="form" id="vmAppForm">
152 <div class="modal-body">
153 <ul class="nav nav-pills nav-justified vmapp-margin">
155 <div class="tab-content">
156 <div class="tab-pane active" id="basicTab">
157 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
158 <label class="col-sm-3 control-label">
160 <span class="required">*</span>
162 <div class="col-sm-7">
163 <input type="text" id="name" name="name" class="form-control"
167 <div class="form-group">
168 <label class="col-sm-3 control-label">
169 <span>Type</span>
172 <div class="col-sm-7">
173 <select class="form-control"
174 style="padding-top: 0px;padding-bottom: 0px;" id="type"
176 <option value="network_site">Network</option>
177 <option value="tenant_site">Tenant</option>
181 <!-- TODO: these field are ignored as of now
182 <div class="form-group">
183 <label class="col-sm-3 control-label">
184 <span>Tenant Name</span>
186 <div class="col-sm-7">
187 <input type="text" id="tenantName" name="tenantName" class="form-control" placeholder="Banglore"/>
190 <div class="form-group">
191 <label class="col-sm-3 control-label">
192 <span>Tenant Site</span>
194 <div class="col-sm-7">
195 <input type="text" id="tenantSite" name="tenantSite" class="form-control" placeholder="Banglore"/>
199 <div class="form-group">
200 <label class="col-sm-3 control-label">
201 <span>Location</span>
203 <div class="col-sm-7">
204 <input type="text" id="location" name="location" class="form-control"
205 placeholder="Banglore"/>
213 <div class="modal-footer">
214 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
216 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
218 <button type="button" class="btn button-previous SDBtn">
219 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
230 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
231 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
232 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label
233 class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
235 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label
236 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
237 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label
238 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
239 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label
240 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
241 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label
242 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>