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" |
Jian Li | 7d73ff9 | 2017-05-06 00:49:17 +0900 | [diff] [blame] | 36 | ng-click="nav('device')"> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <div class="search"> |
| 41 | <input type="text" ng-model="queryTxt" placeholder="Search"/> |
| 42 | <select ng-model="queryBy"> |
| 43 | <option value="" disabled>Search By</option> |
| 44 | <option value="$">All Fields</option> |
| 45 | <option value="id">Mapping ID</option> |
| 46 | <option value="state">State</option> |
| 47 | <option value="type">Store Type</option> |
| 48 | <option value="mappingKey">Mapping Key</option> |
| 49 | </select> |
Jian Li | 4689f81 | 2017-05-04 07:30:35 +0900 | [diff] [blame] | 50 | </div> |
| 51 | </div> |
| 52 | |
| 53 | <div class="summary-list" onos-table-resize> |
| 54 | <div class="table-header" onos-sortable-header> |
| 55 | <table> |
| 56 | <tr> |
| 57 | <td colId="id" col-width="180px" sortable>Mapping ID </td> |
| 58 | <td colId="type" sortable>Type </td> |
| 59 | <td colId="state" sortable>State </td> |
| 60 | <td colId="mappingKey" sortable>Mapping Key </td> |
| 61 | <td colId="mappingAction" sortable>Mapping Action </td> |
| 62 | </tr> |
| 63 | </table> |
| 64 | </div> |
| 65 | |
| 66 | <div class="table-body"> |
| 67 | <table onos-flash-changes id-prop="id"> |
| 68 | <tr ng-if="!tableData.length" class="no-data"> |
| 69 | <td colspan="5"> |
| 70 | {{annots.no_rows_msg}} |
| 71 | </td> |
| 72 | </tr> |
| 73 | |
Jian Li | bdf8ae5 | 2017-05-05 01:31:55 +0900 | [diff] [blame] | 74 | <tr ng-repeat="mapping in tableData | filter:queryFilter track by $index" |
Jian Li | 4689f81 | 2017-05-04 07:30:35 +0900 | [diff] [blame] | 75 | ng-click="selectCallback($event, mapping)" |
| 76 | ng-class="{selected: mapping.id === selId}" |
| 77 | ng-repeat-complete row-id="{{mapping.id}}"> |
| 78 | <td>{{mapping.id}}</td> |
| 79 | <td>{{mapping.type}}</td> |
| 80 | <td>{{mapping.state}}</td> |
| 81 | <td>{{mapping.mappingKey}}</td> |
| 82 | <td>{{mapping.mappingAction}}</td> |
| 83 | </tr> |
Jian Li | 4689f81 | 2017-05-04 07:30:35 +0900 | [diff] [blame] | 84 | </table> |
| 85 | </div> |
| 86 | </div> |
Jian Li | bdf8ae5 | 2017-05-05 01:31:55 +0900 | [diff] [blame] | 87 | <mapping-details-panel></mapping-details-panel> |
Jian Li | a23f46d | 2017-05-02 18:07:31 +0900 | [diff] [blame] | 88 | </div> |