rebuild GUI structure(only changed modules' name)
[vnfsdk/refrepo.git] / lifecyclemgr / src / main / webapp / lifecyclemgr / lcm_detail_nfvo_topology.html
1 <!--
2
3     Copyright 2016-2017 ZTE Corporation.
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 <html>
19 <head>
20     <head lang="en">
21         <meta charset="UTF-8">
22         <title></title>
23         <link href="../common/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
24         <link href="../common/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
25         <link href="../common/thirdparty/uniform/css/uniform.default.min.css" rel="stylesheet"/>
26         <link href="../common/css/style.css" rel="stylesheet"/>
27         <link href="../common/css/ngict-component.css" rel="stylesheet"/>
28         <link href="../common/css/plugins.css" rel="stylesheet"/>
29         <link href="../catalog/css/platform/animate.min.css" rel="stylesheet"/>
30         <link href="../catalog/css/datatable-sort.css" rel="stylesheet"/>
31         <link href="../catalog/css/templateDetail.css" rel="stylesheet"/>
32         <link href="../catalog/css/topology.css" rel="stylesheet"/>
33         <style type="text/css">
34             .ms-controller {
35                 visibility: hidden;
36             }
37
38             .ms-nodedetail {
39                 display: none;
40             }
41         </style>
42     </head>
43 <body>
44 <div ms-controller="tmTopoController" class="container-fluid ms-controller">
45     <div class="row">
46         <div class="col-xs-6 col-md-6 col-sm-6 col-lg-6 titlefont">
47             <span id="nfv-template-topo-iui-title" name_i18n="com_zte_nfv_nsoc_i18n"></span>
48         </div>
49     </div>
50     <div class="separator-line"></div>
51     <div class="container-fluid">
52         <div id="networks" style="float:left;display:inline-block">
53             <div class="networksContainer">
54                 <div class="network" ms-repeat-network="topologyTab.networkTopoDatas">
55                     <div class="name" tooltip="" ms-attr-title="network.name" ms-if="network.name"
56                          ms-click="topologyTab.$showTopo(network.id, network.name)">
57                         <div ms-if="topologyTab.isShowNum" ms-text="network.num" class="badge">0</div>
58                         <span>{{network.name}}</span>
59                     </div>
60                     <div class="subnet" ms-repeat-subnet="network.subnets">
61                         <div class="line">
62                             <div class="vlan" ms-attr-id="subnet.id"
63                                  ms-css-background-color="topologyTab.$getColor($index+$outer.$index)"
64                                  ms-attr-title="subnet.name" ms-click="topologyTab.$showTopo(subnet.id, subnet.name)">
65                                 <div ms-if="topologyTab.isShowNum" ms-text="subnet.num" class="badge">0</div>
66                                 <p>{{subnet.name}}</p>
67                                 <p class="cidr" ms-text="topologyTab.$getCidr(subnet.properties)"></p>
68                             </div>
69                         </div>
70                     </div><!--end repeat network.subnets-->
71                 </div><!--end repeat topologyTab.networkTopoDatas-->
72             </div>
73         </div>
74         <div id="topo" style="float:left;display:inline-block">
75             <div class="row-fluid" data-name="topo_zone">
76                 <div class="bpContainer" ms-each-host="topologyTab.boxTopoDatas">
77                     <div>
78                         <div class="box" ms-attr-id="host.id">
79                             <div class="piProgress" size="55">
80                                 <div class="circle">
81                                     <i class="gs-node-icon fa fa-desktop"></i>
82                                     <div ms-if="topologyTab.isShowNum" ms-text="host.num" class="badge">1</div>
83                                 </div>
84                                 <div class="smallCircle" ms-repeat-cp="host.cp" ms-attr-id="cp.id" ms-title="cp.name"
85                                      ms-click="topologyTab.$showTopo(cp.id,cp.name)"
86                                      ms-css-top="topologyTab.$getCpTop($index,host.id)">
87                                     <i class="gs-cp-icon fa fa-credit-card"></i>
88                                 </div>
89                             </div>
90                             <div class="head" ms-hover="boxHover" tooltip ms-attr-title="host.name" ms-text="host.name"
91                                  ms-click="topologyTab.$showTopo(host.id, host.name)">
92                             </div>
93                             <div class="holder">
94                                 <div class="nest" ms-if="host.vnfdid" ms-click="topologyTab.$showVnfTopo(host.vnfdid)"
95                                      ms-attr-title="topologyTab.vnfTip"><!-- only display nested ns template  -->
96                                     <div class="plus">
97                                         <i class="fa fa-plus" style="color: #3aaeda;"></i>
98                                     </div>
99                                 </div>
100                                 <div ms-each-box="host.children"><!-- ngRepeat: node in map track by node.name -->
101                                     <div>
102                                         <div class="box" ms-attr-id="box.id">
103                                             <div class="piProgress" size="55">
104                                                 <div class="circle">
105                                                     <i class="gs-node-icon fa fa-cogs"></i>
106                                                     <div ms-if="topologyTab.isShowNum" ms-text="box.num" class="badge">
107                                                         1
108                                                     </div>
109                                                 </div>
110                                                 <div class="smallCircle" ms-repeat-cp="box.cp" ms-attr-id="cp.id"
111                                                      ms-title="cp.name" ms-click="topologyTab.$showTopo(cp.id,cp.name)"
112                                                      ms-css-top="topologyTab.$getCpTop($index,box.id)">
113                                                     <i class="gs-cp-icon fa fa-credit-card"></i>
114                                                 </div>
115                                             </div>
116                                             <div class="head" ms-hover="boxHover"
117                                                  tooltip="" ms-click="topologyTab.$showTopo(box.id, box.name)"
118                                                  ms-attr-title="box.name" ms-text="box.name"></div>
119                                             <div class="holder">
120                                                 <div ms-each-app="box.children">
121                                                     <!-- ngRepeat: node in map track by node.name -->
122                                                     <div>
123                                                         <div class="app" ms-attr-id="app.id"
124                                                              ms-click="topologyTab.$showTopo(app.id, app.name)"
125                                                              ms-hover="appHover">
126                                                             <div class="piProgress" size="55">
127                                                                 <div class="circle">
128                                                                     <i class="gs-node-icon fa fa-cog"></i>
129                                                                     <div ms-if="topologyTab.isShowNum" ms-text="app.num"
130                                                                          class="badge">1
131                                                                     </div>
132                                                                 </div>
133                                                             </div>
134                                                             <p tooltip="" ms-attr-id="app.id" ms-attr-title="app.name"
135                                                                ms-text="app.name"></p>
136                                                         </div>
137                                                     </div>
138                                                     <!-- end ngRepeat: node in map track by node.name -->
139                                                 </div>
140                                             </div><!-- end ngIf: node.isApp == false -->
141                                         </div><!-- end ngRepeat: node in map track by node.name -->
142                                     </div>
143                                 </div>
144                             </div>
145                         </div>
146                     </div>
147                 </div>
148             </div>
149         </div>
150         <div>
151             <div class="coordinates">
152                 <svg id="svg_vl" width="100%" height="100%" fill="silver">
153                     <g transform="translate(0, 0)">
154                     </g>
155                 </svg>
156             </div>
157             <div class="coordinates" style="z-index:3;">
158                 <svg id="svg_vdu" width="100%" height="100%" fill="silver">
159                     <g transform="translate(0, 0)">
160                     </g>
161                     <defs>
162                         <marker id="arrowhead" viewBox="0 0 20 20" refX="16" refY="10" markerUnits="userSpaceOnUse"
163                                 markerWidth="16" markerHeight="12" orient="auto" fill="#7A7A7A">
164                             <path d="M 0 0 L 20 10 L 0 20 z"></path>
165                         </marker>
166                     </defs>
167                 </svg>
168             </div>
169         </div>
170     </div>
171
172     <div id="right-menu" class="ms-nodedetail" ms-css-display="nodesDetail.isShow">
173         <div>
174             <div class="title"><h4>{{nodesDetail.detailTitle}}</h4>
175                 <div class="rigth right-button-pointer" ms-click="nodesDetail.$showDetails('none')">
176                     <button type="button" class="btn btn-default">
177                         <span id="nfv-templateDetail-nodesTab-iui-btn-close" name_i18n="com_zte_nfv_nsoc_i18n"></span>
178                     </button>
179                 </div>
180             </div>
181             <div>
182                 <div class="btn-group">
183                     <button type="button" class="btn btn-default" ms-repeat="nodesDetail.detailData"
184                             ms-click="nodesDetail.detailCondChange($index)" ms-attr-id="el.id"
185                             ms-class="active: el.isActive">{{el.name}}
186                     </button>
187                 </div>
188                 <div ms-if="nodesDetail.detailIndex === 0">
189                     <div class="row-fluid" data-name="table_zone">
190                         <div id='ict_table_general_div' class="nodesDetail"></div>
191                     </div>
192                 </div>
193                 <div ms-if="nodesDetail.detailIndex === 1">
194                     <div class="row-fluid" data-name="table_zone">
195                         <div id='ict_table_properties_div' class="nodesDetail"></div>
196                     </div>
197                 </div>
198                 <div ms-if="nodesDetail.detailIndex === 2">
199                     <div class="row-fluid" data-name="table_zone">
200                         <div id='ict_table_relationShips_div' class="nodesDetail"></div>
201                     </div>
202                 </div>
203             </div>
204         </div>
205     </div>
206
207     <script type="text/javascript" src="../common/thirdparty/jquery/jquery-1.10.2.min.js"></script>
208     <script type="text/javascript" src="../common/thirdparty/bootstrap/js/bootstrap.min.js"></script>
209     <script type="text/javascript" src="../common/thirdparty/data-tables/jquery.dataTables.js"></script>
210     <script type="text/javascript" src="../common/thirdparty/data-tables/jquery.dataTables.min.js"></script>
211     <script type="text/javascript" src="../common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
212
213     <script type="text/javascript" src="../common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
214     <script type="text/javascript" src="../common/thirdparty/avalon/avalon.modern.js"></script>
215
216     <script type="text/javascript" src="../common/js/tools.js"></script>
217
218     <script type="text/javascript" src="../catalog/js/component/commonUtil.js"></script>
219     <script type="text/javascript" src="../catalog/js/component/serverPageTable.js"></script>
220     <script type="text/javascript" src="../catalog/js/component/loadi18n_nsoc.js"></script>
221
222     <script type="text/javascript" src="../js/template/tmDetailUtil.js"></script>
223     <script type="text/javascript" src="../js/template/tmUtil.js"></script>
224     <script type="text/javascript" src="js/tmTopoController.js"></script>
225     <script type="text/javascript" src="../js/template/topoUtil.js"></script>
226 </div>
227 </body>
228 </html>