Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 1 | <!-- |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 2 | ~ Copyright 2019-present Open Networking Foundation |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 3 | ~ |
| 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 Condon | d88f366 | 2019-04-03 16:35:30 +0100 | [diff] [blame] | 17 | [@detailsPanelState]="on && selectedNodes.length > 0"> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 18 | <!-- Template explanation - Create a HTML header which has an SVG icon along |
| 19 | side title text. --> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 20 | <div class="header"> |
| 21 | <div class="icon clickable"> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 22 | <onos-icon |
| 23 | [iconSize]="26" |
| 24 | [iconId]="showDetails?.glyphId"> |
| 25 | </onos-icon> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 26 | </div> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 27 | <h2 class="clickable">{{ showDetails?.title }}</h2> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 28 | </div> |
| 29 | <div class="body"> |
| 30 | <table> |
| 31 | <tbody> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 32 | <!-- 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] !== '-'" |
Sean Condon | 8a8bc4b | 2020-05-21 16:14:54 +0100 | [diff] [blame] | 38 | class="label">{{showDetails?.propLabels[p]}}</td> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 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 Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 45 | </tbody> |
| 46 | </table> |
| 47 | </div> |
| 48 | <div class="footer"> |
| 49 | <hr> |
| 50 | <div class="actionBtns"> |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 51 | <!-- 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 Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 56 | <onos-icon id="topo2-p-detail-core-{{ btn }}" |
Sean Condon | d88f366 | 2019-04-03 16:35:30 +0100 | [diff] [blame] | 57 | (click)="navto(buttonAttribs(btn).path)" |
Sean Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 58 | [iconSize]="25" |
| 59 | [iconId]="buttonAttribs(btn).gid" |
Sean Condon | 4de9b92 | 2020-06-01 09:32:59 +0100 | [diff] [blame] | 60 | [toolTip]="lionFnFlow(buttonAttribs(btn).tt)" |
Sean Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 61 | classes="button icon selected"> |
| 62 | </onos-icon> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 63 | </div> |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 64 | <div *ngIf="showDetails?.buttons?.includes('showDeviceView')" class="actionBtn"> |
| 65 | <onos-icon id="topo2-p-detail-core-alarms" |
| 66 | (click)="navto('alarmTable')" |
| 67 | [iconSize]="25" |
| 68 | [iconId]="'clock'" |
Sean Condon | 4de9b92 | 2020-06-01 09:32:59 +0100 | [diff] [blame] | 69 | [toolTip]="'Show Alarms for this device'" |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 70 | classes="button icon selected"> |
| 71 | </onos-icon> |
Sean Condon | afe47c2 | 2019-12-19 14:28:06 +0000 | [diff] [blame] | 72 | <onos-icon id="topo2-p-detail-core-pipeconf" |
| 73 | (click)="navto('pipeconf')" |
| 74 | [iconSize]="25" |
| 75 | [iconId]="'pipeconfTable'" |
Sean Condon | 4de9b92 | 2020-06-01 09:32:59 +0100 | [diff] [blame] | 76 | [toolTip]="'Show Pipeconf table for this device'" |
Sean Condon | afe47c2 | 2019-12-19 14:28:06 +0000 | [diff] [blame] | 77 | classes="button icon selected"> |
| 78 | </onos-icon> |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 79 | </div> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 80 | </div> |
| 81 | </div> |
Sean Condon | d88f366 | 2019-04-03 16:35:30 +0100 | [diff] [blame] | 82 | </div> |