Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2018-present Open Networking Foundation |
| 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 | |
| 17 | <!-- YANG Model partial HTML --> |
| 18 | <div id="ov-yang-model"> |
| 19 | <!-- yangfiledrop on-file-drop="yangDropped()">--> |
| 20 | <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading> |
| 21 | <div class="tabular-header"> |
| 22 | <h2>YANG Models ({{tableData.length}} total)</h2> |
| 23 | <div class="ctrl-btns"> |
| 24 | <div class="refresh" (click)="toggleRefresh()"> |
| 25 | <onos-icon [classes]="autoRefresh?'active refresh':'refresh'" |
| 26 | [iconId]="'refresh'" [iconSize]="36" |
| 27 | [toolTip]="autoRefreshTip"></onos-icon> |
| 28 | </div> |
| 29 | <div class="separator"></div> |
| 30 | |
| 31 | <!-- <form id="inputYangFileForm">--> |
| 32 | <!-- <input id="uploadYangFile"--> |
| 33 | <!-- type="file" size="50" accept=".zip, *.jar, *.yang"--> |
| 34 | <!-- yang-file-model="yangFile">--> |
| 35 | <!-- </form>--> |
| 36 | <div class="active" (click)="triggerForm()"> |
| 37 | <onos-icon classes="{{ 'active-rect upload' }}" [iconSize]="36" |
| 38 | [iconId]="'nav_yang'" [toolTip]="'Upload a YANG file (.yang)'"></onos-icon> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | |
| 43 | <div class="summary-list" onosTableResize> |
| 44 | <div class="table-header"> |
| 45 | <table> |
| 46 | <tr> |
| 47 | <td colId="modelId">Model ID</td> |
| 48 | <td colId="id">Module</td> |
| 49 | <td colId="revision">Revision</td> |
| 50 | </tr> |
| 51 | </table> |
| 52 | </div> |
| 53 | |
| 54 | <div class="table-body"> |
| 55 | <table> |
| 56 | <tr class="table-body" *ngIf="tableData.length === 0" class="no-data"> |
| 57 | <td colspan="9">{{ annots.noRowsMsg }}</td> |
| 58 | </tr> |
| 59 | <tr *ngFor="let ymodel of tableData | filter: tableDataFilter" |
| 60 | (click)="selectCallback($event, ymodel)" |
| 61 | [ngClass]="{selected: ymodel.id === selId, 'data-change': isChanged(ymodel.id)}"> |
| 62 | <td>{{ymodel.modelId}}</td> |
| 63 | <td>{{ymodel.id}}</td> |
| 64 | <td>{{ymodel.revision}}</td> |
| 65 | </tr> |
| 66 | </table> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | <onos-yangdetails class="floatpanels" [id]="selId" [modelId]="selectedModel?.modelId" [revision]="selectedModel?.revision" |
| 71 | (closeEvent)="deselectRow($event)"></onos-yangdetails> |
| 72 | |
| 73 | </div> |
| 74 | |