Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 1 | <!-- partial HTML --> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 2 | <div id="ov-roadm-port" class="less-gap" ng-init="queryShowItems()"> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 3 | |
| 4 | <div class="tabular-header"> |
| 5 | <h2>Ports for Optical Device {{devId}} ({{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> |
| 11 | <div class="separator"></div> |
| 12 | |
| 13 | <div class="active" |
| 14 | icon icon-id="deviceTable" icon-size="42" |
| 15 | tooltip tt-msg="deviceTip" |
| 16 | ng-click="nav('roadmDevice')"></div> |
| 17 | |
| 18 | <div class="active" |
| 19 | icon icon-id="flowTable" icon-size="42" |
| 20 | tooltip tt-msg="flowTip" |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 21 | ng-click="nav('roadmFlow')" ng-show="showFlowIcon"></div> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 22 | |
| 23 | <div class="current-view" |
| 24 | icon icon-id="portTable" icon-size="42" |
| 25 | tooltip tt-msg="portTip"></div> |
| 26 | </div> |
| 27 | </div> |
| 28 | |
| 29 | <div class="summary-list" onos-table-resize> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 30 | <div class="table-header" onos-sortable-header> |
| 31 | <table> |
| 32 | <tr> |
| 33 | <td colId="id" sortable>Port Number </td> |
| 34 | <td colId="name" sortable>Name </td> |
| 35 | <td colId="type" sortable>Type </td> |
| 36 | <td colId="enabled" sortable>Enabled </td> |
| 37 | <td colId="minFreq" sortable>Min Freq <span class="units">(THz)</span> </td> |
| 38 | <td colId="maxFreq" sortable>Max Freq <span class="units">(THz)</span> </td> |
| 39 | <td colId="grid" sortable>Grid <span class="units">(GHz)</span> </td> |
MaoLu | 2f7eadb | 2017-05-02 15:38:43 -0700 | [diff] [blame] | 40 | <td colId="powerRange" sortable>Power Range </td> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 41 | <td colId="currentPower">Current Power <span class="units">(0.01dBm)</span> </td> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 42 | <td colId="serviceState" ng-show="showServiceState">Protection Status </td> |
| 43 | <td colId="targetPower" col-width="200px" ng-show="showTargetPower">Target Power <span class="units">(0.01dBm)</span> </td> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 44 | </tr> |
| 45 | </table> |
| 46 | </div> |
| 47 | |
| 48 | <div class="table-body"> |
| 49 | <table> |
| 50 | <tr ng-if="!tableData.length" class="no-data"> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 51 | <td colspan="11"> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 52 | {{annots.no_rows_msg}} |
| 53 | </td> |
| 54 | </tr> |
| 55 | |
| 56 | <tr ng-repeat="item in tableData track by $index" |
| 57 | ng-class="{selected: item.id === selId}"> |
| 58 | <td>{{item.id}}</td> |
| 59 | <td>{{item.name}}</td> |
| 60 | <td>{{item.type}}</td> |
| 61 | <td>{{item.enabled}}</td> |
| 62 | <td>{{item.minFreq}}</td> |
| 63 | <td>{{item.maxFreq}}</td> |
| 64 | <td>{{item.grid}}</td> |
MaoLu | 2f7eadb | 2017-05-02 15:38:43 -0700 | [diff] [blame] | 65 | <td>{{item.powerRange}}</td> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 66 | <td>{{item.currentPower}}</td> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 67 | <td ng-show="showServiceState">{{item.serviceState}}</td> |
| 68 | <td ng-show="showTargetPower" class="editable" roadm-power="item" roadm-set-power="setPortPower(port, targetVal, cb)"></td> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 69 | </tr> |
| 70 | </table> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 71 | <div class="mode-select" ng-show="showServiceState"> |
| 72 | <hr/> |
MaoLu | 2846b11 | 2017-05-15 17:18:55 -0700 | [diff] [blame] | 73 | <label class="mode-title">Protection Switch:</label> |
| 74 | <select ng-model="opsModeType" ng-options="mode.name for mode in opsModeTypes"></select> |
MaoLu | 937cf42 | 2017-03-03 23:31:46 -0800 | [diff] [blame] | 75 | <button ng-click="changeOpsMode()" title="Click to apply selected protection mode">Apply</button> |
| 76 | <label class="mode-fail" ng-if="changeModeFail">{{changeModeFailMsg}}</label> |
| 77 | </div> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 78 | </div> |
Jimmy Yan | da878fc | 2016-09-02 16:32:01 -0700 | [diff] [blame] | 79 | </div> |
| 80 | </div> |