blob: ca23ca141ee31371800ea45ccc71a1cfe010b8eb [file] [log] [blame]
Sean Condonf4f54a12018-10-10 23:25:46 +01001<!--
Sean Condon91481822019-01-01 13:56:14 +00002~ Copyright 2019-present Open Networking Foundation
Sean Condonf4f54a12018-10-10 23:25:46 +01003~
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
7~
8~ http://www.apache.org/licenses/LICENSE-2.0
9~
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.
15-->
16<div id="topo2-p-detail" class="floatpanel topo2-p"
Sean Condonb2c483c2019-01-16 20:28:55 +000017 [@detailsPanelState]="on && selectedNode !== undefined">
Sean Condon91481822019-01-01 13:56:14 +000018 <!-- Template explanation - Create a HTML header which has an SVG icon along
19 side title text. -->
Sean Condonf4f54a12018-10-10 23:25:46 +010020 <div class="header">
21 <div class="icon clickable">
Sean Condon91481822019-01-01 13:56:14 +000022 <onos-icon
23 [iconSize]="26"
24 [iconId]="showDetails?.glyphId">
25 </onos-icon>
Sean Condonf4f54a12018-10-10 23:25:46 +010026 </div>
Sean Condon91481822019-01-01 13:56:14 +000027 <h2 class="clickable">{{ showDetails?.title }}</h2>
Sean Condonf4f54a12018-10-10 23:25:46 +010028 </div>
29 <div class="body">
30 <table>
31 <tbody>
Sean Condon91481822019-01-01 13:56:14 +000032 <!-- Template explanation - Inside a HTML table, create a row per
33 item in the propOrder array returned through the WSS showDetails.
34 If the row name contains only '-' then draw a horiz rule otherwise
35 create a cell for the name and another for the value -->
36 <tr *ngFor="let p of showDetails?.propOrder">
37 <td *ngIf="showDetails?.propLabels[p] !== '-'"
38 class="label">{{showDetails?.propLabels[p]}} :</td>
39 <td *ngIf="showDetails?.propLabels[p] !== '-'"
40 class="value">{{ showDetails?.propValues[p]}}</td>
41 <!-- If the label is '-' then insert a horiz line -->
42 <td *ngIf="showDetails?.propLabels[p] === '-'"
43 colspan="2"><hr></td>
44 </tr>
Sean Condonf4f54a12018-10-10 23:25:46 +010045 </tbody>
46 </table>
47 </div>
48 <div class="footer">
49 <hr>
50 <div class="actionBtns">
Sean Condon91481822019-01-01 13:56:14 +000051 <!-- Template explanation - Inside the panel footer, create an SVG icon
52 per entry in the buttons array returned from the WSS showDetails
53 The icons used here are loaded in the ForceSvgComponent
54 -->
55 <div *ngFor="let btn of showDetails?.buttons" class="actionBtn">
Sean Condonb2c483c2019-01-16 20:28:55 +000056 <onos-icon id="topo2-p-detail-core-{{ btn }}"
57 (click)="navto(buttonAttribs(btn).path, showDetails.navPath, showDetails.id)"
58 [iconSize]="25"
59 [iconId]="buttonAttribs(btn).gid"
60 [toolTip]="lionFn(buttonAttribs(btn).tt)"
61 classes="button icon selected">
62 </onos-icon>
Sean Condonf4f54a12018-10-10 23:25:46 +010063 </div>
64 </div>
65 </div>
66</div>