rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / extsys / src / main / webapp / extsys / sdncontroller / controller.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/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 () {
35                 loadControllerData();
36             });
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" />']
39                         .join('');
40
41             }
42             window.operateEvents = {
43                 'click .siteDeleteImg': function (e, value, row, index) {
44                     // TO DO ajex call for delete
45                     deleteController(row["sdnControllerId"]);
46                 }
47             };
48         </script>
49     </head>
50 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
51 <div class="container-fluid ms-controller">
52
53     <div class="uploadBtn">
54         <div id="open_base_tpL_userHeader" class="userHeader">
55             <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
56                 <div
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>
66                     </div>
67                 </div>
68
69             </div>
70         </div>
71     </div>
72
73     <div class="row-fluid" data-name="table_zone">
74         <div id='ict_virtualApplication_table_div'>
75             <div>
76                 <div class="top">
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">
81                         <tr class="active">
82                             <th
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
89                                             </span>
90                                 </div>
91                             </th>
92                             <th
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
99                                             </span>
100                                 </div>
101                             </th>
102                             <th
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
109                                                 Name</span>
110                                 </div>
111                             </th>
112                             <th
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
119                                             </span>
120                                 </div>
121                             </th>
122                             <th
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
129                                             </span>
130                                 </div>
131                             </th>
132
133                             <th
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
140                                             </span>
141                                 </div>
142                             </th>
143                             <th
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
150                                             </span>
151                                 </div>
152                             </th>
153                             <th
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
160                                                 Time </span>
161                                 </div>
162                             </th>
163                             <th
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
170                                             </span>
171                                 </div>
172                             </th>
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
179                                             </span>
180                                 </div>
181                             </th>
182                         </tr>
183                         </thead>
184                         <tbody>
185                         </tbody>
186                     </table>
187                 </div>
188             </div>
189         </div>
190     </div>
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">&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> -->
192
193     <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
194          aria-hidden="false">
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">
201                             <span>Create</span>
202                         </h4>
203                     </div>
204                     <form class="form-horizontal" role="form" id="controllerForm">
205                         <div id="wizard">
206                             <div class="modal-body">
207                                 <ul class="nav nav-pills nav-justified vmapp-margin">
208                                 </ul>
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>
214                                             </label>
215                                             <div class="col-sm-7">
216                                                 <input type="text" id="name" name="name" class="form-control"/>
217                                             </div>
218                                         </div>
219                                         <div class="form-group">
220                                             <label class="col-sm-3 control-label"> <span>URL</span> <span
221                                                     class="required">*</span>
222                                             </label>
223                                             <div class="col-sm-7">
224                                                 <input type="text" id="url" name="url" class="form-control"/>
225                                             </div>
226                                         </div>
227                                         <div class="form-group">
228                                             <label class="col-sm-3 control-label"> <span>User Name</span> <span
229                                                     class="required">*</span>
230                                             </label>
231                                             <div class="col-sm-7">
232                                                 <input type="text" id="username" name="username"
233                                                        class="form-control"/>
234                                             </div>
235                                         </div>
236                                         <div class="form-group">
237                                             <label class="col-sm-3 control-label"> <span>Password</span> <span
238                                                     class="required">*</span>
239                                             </label>
240                                             <div class="col-sm-7">
241                                                 <input type="password" id="password" name="password"
242                                                        class="form-control"/>
243                                             </div>
244                                         </div>
245                                         <div class="form-group">
246                                             <label class="col-sm-3 control-label"> <span>Version</span><span
247                                                     class="required">*</span>
248                                             </label>
249                                             <div class="col-sm-7">
250                                                 <input type="text" id="version" name="version" class="form-control"/>
251                                             </div>
252                                         </div>
253                                         <div class="form-group">
254                                             <label class="col-sm-3 control-label"> <span>Vendor</span>
255                                             </label>
256                                             <div class="col-sm-7">
257                                                 <input type="text" id="vendor" name="vendor" class="form-control"/>
258                                             </div>
259                                         </div>
260                                         <div class="form-group">
261                                             <label class="col-sm-3 control-label"> <span>Description</span>
262                                             </label>
263                                             <div class="col-sm-7">
264                                                 <input type="text" id="description" name="description"
265                                                        class="form-control"/>
266                                             </div>
267                                         </div>
268                                         <div class="form-group">
269                                             <label class="col-sm-3 control-label"> <span>Protocol</span>
270                                             </label>
271                                             <div class="col-sm-7">
272                                                 <select class="form-control"
273                                                         style="padding-top: 0px; padding-bottom: 0px;" id="protocol"
274                                                         name="protocol">
275                                                     <option value="netconf">netconf</option>
276                                                     <option value="snmp">snmp</option>
277                                                 </select>
278                                             </div>
279                                         </div>
280                                         <div class="form-group">
281                                             <label class="col-sm-3 control-label"> <span>Product Name</span>
282                                             </label>
283                                             <div class="col-sm-7">
284                                                 <input type="text" id="productname" name="productname"
285                                                        class="form-control"/>
286                                             </div>
287                                         </div>
288                                         <div class="form-group">
289                                             <label class="col-sm-3 control-label"> <span>Type</span><span
290                                                     class="required">*</span>
291                                             </label>
292                                             <div class="col-sm-7">
293                                                 <input type="text" id="type" name="type"
294                                                        class="form-control"/>
295                                             </div>
296                                         </div>
297                                     </div>
298                                 </div>
299                             </div>
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>
304                                 </button>
305                                 <button type="button" class="btn button-previous SDBtn">
306                                     <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
307                                 </button>
308
309                             </div>
310                         </div>
311                     </form>
312                 </div>
313             </div>
314         </div>
315     </div>
316 </div>
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>
322     </div>
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>
325     </div>
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>
328     </div>
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>
331     </div>
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>
334     </div>
335 </div>
336
337
338 </body>
339 </html>