blob: 6cbb0e18876a793f2c030feb157b01a39d2770f8 [file] [log] [blame]
Simon Huntcc035c52017-02-22 21:12:51 -08001<!-- YANG Model partial HTML -->
Thomas Vachuskaad37e372017-08-03 12:07:01 -07002<div id="ov-yang-model" yangfiledrop on-file-drop="yangDropped()">
Simon Huntcc035c52017-02-22 21:12:51 -08003
4 <div class="tabular-header">
5 <h2>YANG Models ({{tableData.length}} total)</h2>
6 <div class="ctrl-btns">
7 <div class="refresh" ng-class="{active: autoRefresh}"
8 icon icon-id="refresh" icon-size="42"
9 tooltip tt-msg="autoRefreshTip"
10 ng-click="toggleRefresh()"></div>
Thomas Vachuskaad37e372017-08-03 12:07:01 -070011
12 <div class="separator"></div>
13
14 <form id="inputYangFileForm">
15 <input id="uploadYangFile"
16 type="file" size="50" accept=".zip, *.jar, *.yang"
17 yang-file-model="yangFile">
18 </form>
19
20 <div icon icon-size="42" icon-id="nav_yang"
21 class="active" trigger-yang-form
22 tooltip tt-msg="uploadTip">
23 </div>
Simon Huntcc035c52017-02-22 21:12:51 -080024 </div>
25 </div>
26
27 <div class="summary-list" onos-table-resize>
28 <div class="table-header" onos-sortable-header>
29 <table>
30 <tr>
Thomas Vachuska89534452017-07-28 10:20:12 -070031 <td colId="modelId" col-width="450px" sortable>Model ID</td>
32 <td colId="id" col-width="450px" sortable>Module</td>
Thomas Vachuskae0792f12017-03-31 00:15:06 -070033 <td colId="revision" sortable>Revision</td>
Simon Huntcc035c52017-02-22 21:12:51 -080034 <!-- TODO: More columns to be added -->
35 </tr>
36 </table>
37 </div>
38
39 <div class="table-body">
40 <table id-prop="id">
41 <tr ng-if="!tableData.length" class="no-data">
42 <!-- TODO: set colspan to the final number of columns -->
43 <td colspan="2">
44 {{annots.no_rows_msg}}
45 </td>
46 </tr>
47
48 <tr ng-repeat="ymodel in tableData track by $index"
49 ng-click="selectCallback($event, ymodel)"
50 ng-class="{selected: ymodel.id === selId}"
51 ng-repeat-complete row-id="{{ymodel.id}}">
Thomas Vachuska89534452017-07-28 10:20:12 -070052 <td>{{ymodel.modelId}}</td>
Thomas Vachuska770ef842017-03-31 00:15:49 -070053 <td>{{ymodel.id}}</td>
Thomas Vachuskae0792f12017-03-31 00:15:06 -070054 <td>{{ymodel.revision}}</td>
Simon Hunt7d5e9842017-02-23 11:37:02 -080055 <!-- TODO: add more columns here -->
Simon Huntcc035c52017-02-22 21:12:51 -080056 </tr>
57 </table>
58 </div>
59 </div>
60
61 <yang-model-details-panel></yang-model-details-panel>
62
63</div>