rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / resmgr / src / main / webapp / resmgr-sdn / site.html
1 <!--
2
3     Copyright 2016-2017, Huawei Technologies Co., Ltd.
4
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 -->
18
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" src="js/bootstrap-table-filter-control.min.js"></script>
33
34         <style type="text/css">
35         </style>
36         <script type="text/javascript">
37             $(document).ready(function () {
38                 loadSiteData();
39             });
40
41             function operateFormatter(value, row, index) {
42                 return [
43                     '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
44                 ].join('');
45
46             }
47             window.operateEvents = {
48                 'click .siteDeleteImg': function (e, value, row, index) {
49                     // TO DO ajex call for delete
50                     deleteSite(row.id);
51                     console.log(value, row, index);
52                 }
53             };
54         </script>
55         <style>
56             .fixed-table-container tbody td .th-inner,
57             .fixed-table-container thead th .th-inner {
58                 line-height: 4px;
59             }
60             .fixed-table-pagination .pagination-info {
61                 display: none !important;
62             }
63             .table tbody tr:hover td,
64             .table tbody tr.odd:hover td {
65                 background-color: #e6fbe0 !important;
66             }
67             table tr.openoTable_row_selected td {
68                 background: #e8f8fe!important;
69                 border-bottom: 1px solid #e8e8e8!important;
70             }
71             .container-fluid {
72                 padding-left: 30px;
73                 padding-right: 0px;
74             }
75             .modal-footer > .btn {
76                 width: 80px;
77                 padding: 4px;
78             }
79         </style>
80     </head>
81 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
82 <div class="container-fluid ms-controller">
83
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>
96                 </div>
97
98
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>
105                 </div>
106
107             </div>
108         </div>
109     </div>
110
111     <div class="row-fluid" data-name="table_zone">
112         <div id='ict_virtualApplication_table_div'>
113             <div>
114                 <div class="top">
115                     <table id="site"
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;">
120                         <tr class="active">
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>
126
127                             <th align="center" data-formatter="operateFormatter" data-events="operateEvents">Action</th>
128                         </tr>
129                         </thead>
130                     </table>
131                 </div>
132             </div>
133         </div>
134     </div>
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">&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> -->
136
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"
144                                 aria-hidden="true">×
145                         </button>
146                         <h4 class="modal-title" id="myModalLabel">
147                             <span>Create</span>
148                         </h4>
149                     </div>
150                     <form class="form-horizontal" role="form" id="vmAppForm">
151                         <div id="wizard">
152                             <div class="modal-body">
153                                 <ul class="nav nav-pills nav-justified vmapp-margin">
154                                 </ul>
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">
159                                                 <span>Name</span>
160                                                 <span class="required">*</span>
161                                             </label>
162                                             <div class="col-sm-7">
163                                                 <input type="text" id="name" name="name" class="form-control"
164                                                        placeholder="Name"/>
165                                             </div>
166                                         </div>
167                                         <div class="form-group">
168                                             <label class="col-sm-3 control-label">
169                                                 <span>Type</span>&nbsp;&nbsp;&nbsp;
170                                             </label>
171
172                                             <div class="col-sm-7">
173                                                 <select class="form-control"
174                                                         style="padding-top: 0px;padding-bottom: 0px;" id="type"
175                                                         name="type">
176                                                     <option value="network_site">Network</option>
177                                                     <option value="tenant_site">Tenant</option>
178                                                 </select>
179                                             </div>
180                                         </div>
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>&nbsp;&nbsp;&nbsp;
185                                             </label>
186                                              <div class="col-sm-7">
187                                                 <input type="text" id="tenantName" name="tenantName" class="form-control" placeholder="Banglore"/>
188                                             </div>
189                                         </div>
190                                         <div class="form-group">
191                                             <label class="col-sm-3 control-label">
192                                                 <span>Tenant Site</span>&nbsp;&nbsp;&nbsp;
193                                             </label>
194                                              <div class="col-sm-7">
195                                                 <input type="text" id="tenantSite" name="tenantSite" class="form-control" placeholder="Banglore"/>
196                                             </div>
197                                         </div>
198                                         -->
199                                         <div class="form-group">
200                                             <label class="col-sm-3 control-label">
201                                                 <span>Location</span>&nbsp;&nbsp;&nbsp;
202                                             </label>
203                                             <div class="col-sm-7">
204                                                 <input type="text" id="location" name="location" class="form-control"
205                                                        placeholder="Banglore"/>
206                                             </div>
207                                         </div>
208                                     </div>
209
210
211                                 </div>
212                             </div>
213                             <div class="modal-footer">
214                                 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
215                                         id="createSite">
216                                     <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
217                                 </button>
218                                 <button type="button" class="btn button-previous SDBtn">
219                                     <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
220                                 </button>
221
222                             </div>
223                         </div>
224                     </form>
225                 </div>
226             </div>
227         </div>
228     </div>
229 </div>
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>
234     </div>
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>
243 </div>
244
245
246 </body>
247 </html>