Thomas Vachuska | 54dc352 | 2015-09-09 00:11:45 -0700 | [diff] [blame^] | 1 | <!-- DHCP Server partial HTML --> |
| 2 | <div id="ov-dhcp"> |
| 3 | <div class="tabular-header"> |
| 4 | <h2>DHCP Mappings ({{tableData.length}} total)</h2> |
| 5 | <div class="ctrl-btns"> |
| 6 | <div class="refresh" ng-class="{active: autoRefresh}" |
| 7 | icon icon-size="36" icon-id="refresh" |
| 8 | tooltip tt-msg="autoRefreshTip" |
| 9 | ng-click="toggleRefresh()"></div> |
| 10 | </div> |
| 11 | </div> |
| 12 | |
| 13 | <div class="summary-list" onos-table-resize> |
| 14 | <div ng-show="loading" class="loading-wheel" |
| 15 | icon icon-id="loading" icon-size="75"></div> |
| 16 | |
| 17 | <div class="table-header" onos-sortable-header> |
| 18 | <table> |
| 19 | <tr> |
| 20 | <td colId="mac" sortable>MAC Address</td> |
| 21 | <td colId="ip" sortable>IP Address</td> |
| 22 | <td colId="lease" sortable>Lease Expiry</td> |
| 23 | </tr> |
| 24 | </table> |
| 25 | </div> |
| 26 | |
| 27 | <div class="table-body"> |
| 28 | <table onos-flash-changes id-prop="mac"> |
| 29 | <tr ng-if="!tableData.length" class="no-data"> |
| 30 | <td colspan="2"> |
| 31 | No mappings found |
| 32 | </td> |
| 33 | </tr> |
| 34 | |
| 35 | <tr ng-repeat="dhcp in tableData track by $index" |
| 36 | ng-click="selectCallback($event, dhcp)" |
| 37 | ng-repeat-complete row-id="{{dhcp.mac}}"> |
| 38 | <td>{{dhcp.mac}}</td> |
| 39 | <td>{{dhcp.ip}}</td> |
| 40 | <td>{{dhcp.lease}}</td> |
| 41 | </tr> |
| 42 | </table> |
| 43 | </div> |
| 44 | |
| 45 | </div> |
| 46 | |
| 47 | </div> |