Jian Li | a23f46d | 2017-05-02 18:07:31 +0900 | [diff] [blame] | 1 | <!-- partial HTML --> |
| 2 | <div id="ov-mapping"> |
Jian Li | 4689f81 | 2017-05-04 07:30:35 +0900 | [diff] [blame^] | 3 | <div class="tabular-header"> |
| 4 | <h2> |
| 5 | Mappings for Device {{devId || "(No device selected)"}} |
| 6 | ({{tableData.length}} total) |
| 7 | </h2> |
| 8 | |
| 9 | <div class="ctrl-btns"> |
| 10 | <div class="refresh" ng-class="{active: autoRefresh}" |
| 11 | icon icon-size="42" icon-id="refresh" |
| 12 | tooltip tt-msg="autoRefreshTip" |
| 13 | ng-click="toggleRefresh()"></div> |
| 14 | |
| 15 | <div class="separator"></div> |
| 16 | |
| 17 | <span ng-if="brief"> |
| 18 | <div class="active" |
| 19 | icon icon-id="plus" icon-size="42" |
| 20 | tooltip tt-msg="detailTip" |
| 21 | ng-click="briefToggle()"> </div> |
| 22 | </span> |
| 23 | |
| 24 | <span ng-if="!brief"> |
| 25 | <div class="active" |
| 26 | icon icon-id="minus" icon-size="42" |
| 27 | tooltip tt-msg="briefTip" |
| 28 | ng-click="briefToggle()"> </div> |
| 29 | </span> |
| 30 | |
| 31 | <div class="separator"></div> |
| 32 | |
| 33 | <div class="active" |
| 34 | icon icon-id="deviceTable" icon-size="42" |
| 35 | tooltip tt-msg="deviceTip" |
| 36 | ng-click="nav('device')"></div> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <div class="summary-list" onos-table-resize> |
| 41 | <div class="table-header" onos-sortable-header> |
| 42 | <table> |
| 43 | <tr> |
| 44 | <td colId="id" col-width="180px" sortable>Mapping ID </td> |
| 45 | <td colId="type" sortable>Type </td> |
| 46 | <td colId="state" sortable>State </td> |
| 47 | <td colId="mappingKey" sortable>Mapping Key </td> |
| 48 | <td colId="mappingAction" sortable>Mapping Action </td> |
| 49 | </tr> |
| 50 | </table> |
| 51 | </div> |
| 52 | |
| 53 | <div class="table-body"> |
| 54 | <table onos-flash-changes id-prop="id"> |
| 55 | <tr ng-if="!tableData.length" class="no-data"> |
| 56 | <td colspan="5"> |
| 57 | {{annots.no_rows_msg}} |
| 58 | </td> |
| 59 | </tr> |
| 60 | |
| 61 | <tr ng-repeat-start="mapping in tableData | filter:queryFilter track by $index" |
| 62 | ng-click="selectCallback($event, mapping)" |
| 63 | ng-class="{selected: mapping.id === selId}" |
| 64 | ng-repeat-complete row-id="{{mapping.id}}"> |
| 65 | <td>{{mapping.id}}</td> |
| 66 | <td>{{mapping.type}}</td> |
| 67 | <td>{{mapping.state}}</td> |
| 68 | <td>{{mapping.mappingKey}}</td> |
| 69 | <td>{{mapping.mappingAction}}</td> |
| 70 | </tr> |
| 71 | <tr row-id="{{mapping.id}}" ng-repeat-end ng-hide="brief"> |
| 72 | <td class="mappingValue" colspan="5">{{mapping.mappingValue}}</td> |
| 73 | </tr> |
| 74 | </table> |
| 75 | </div> |
| 76 | </div> |
Jian Li | a23f46d | 2017-05-02 18:07:31 +0900 | [diff] [blame] | 77 | </div> |