Simon Hunt | cc035c5 | 2017-02-22 21:12:51 -0800 | [diff] [blame] | 1 | <!-- YANG Model partial HTML --> |
Thomas Vachuska | ad37e37 | 2017-08-03 12:07:01 -0700 | [diff] [blame] | 2 | <div id="ov-yang-model" yangfiledrop on-file-drop="yangDropped()"> |
Simon Hunt | cc035c5 | 2017-02-22 21:12:51 -0800 | [diff] [blame] | 3 | |
| 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 Vachuska | ad37e37 | 2017-08-03 12:07:01 -0700 | [diff] [blame] | 11 | |
| 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 Hunt | cc035c5 | 2017-02-22 21:12:51 -0800 | [diff] [blame] | 24 | </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 Vachuska | 8953445 | 2017-07-28 10:20:12 -0700 | [diff] [blame] | 31 | <td colId="modelId" col-width="450px" sortable>Model ID</td> |
| 32 | <td colId="id" col-width="450px" sortable>Module</td> |
Thomas Vachuska | e0792f1 | 2017-03-31 00:15:06 -0700 | [diff] [blame] | 33 | <td colId="revision" sortable>Revision</td> |
Simon Hunt | cc035c5 | 2017-02-22 21:12:51 -0800 | [diff] [blame] | 34 | <!-- 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 Vachuska | 8953445 | 2017-07-28 10:20:12 -0700 | [diff] [blame] | 52 | <td>{{ymodel.modelId}}</td> |
Thomas Vachuska | 770ef84 | 2017-03-31 00:15:49 -0700 | [diff] [blame] | 53 | <td>{{ymodel.id}}</td> |
Thomas Vachuska | e0792f1 | 2017-03-31 00:15:06 -0700 | [diff] [blame] | 54 | <td>{{ymodel.revision}}</td> |
Simon Hunt | 7d5e984 | 2017-02-23 11:37:02 -0800 | [diff] [blame] | 55 | <!-- TODO: add more columns here --> |
Simon Hunt | cc035c5 | 2017-02-22 21:12:51 -0800 | [diff] [blame] | 56 | </tr> |
| 57 | </table> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | <yang-model-details-panel></yang-model-details-panel> |
| 62 | |
| 63 | </div> |