Simon Hunt

Clean up location and formatting of table filtering on flow table view.

Change-Id: I4eda382b53b4f2dd4285f2540de593744f63add5
...@@ -77,9 +77,14 @@ div.summary-list .table-body td { ...@@ -77,9 +77,14 @@ div.summary-list .table-body td {
77 cursor: pointer; 77 cursor: pointer;
78 } 78 }
79 79
80 -/* Tabular view upper right control buttons */ 80 +/* Tabular view controls */
81 81
82 -div.ctrl-btns { 82 +div.tabular-header .search {
83 + margin: 0 0 10px 10px;
84 +}
85 +
86 +
87 +div.tabular-header div.ctrl-btns {
83 display: inline-block; 88 display: inline-block;
84 float: right; 89 float: right;
85 height: 44px; 90 height: 44px;
...@@ -87,12 +92,12 @@ div.ctrl-btns { ...@@ -87,12 +92,12 @@ div.ctrl-btns {
87 margin-right: 20px; 92 margin-right: 20px;
88 } 93 }
89 94
90 -div.ctrl-btns div { 95 +div.tabular-header div.ctrl-btns div {
91 display: inline-block; 96 display: inline-block;
92 cursor: pointer; 97 cursor: pointer;
93 } 98 }
94 99
95 -div.ctrl-btns div.separator { 100 +div.tabular-header div.ctrl-btns div.separator {
96 width: 0; 101 width: 0;
97 height: 40px; 102 height: 40px;
98 padding: 0; 103 padding: 0;
......
...@@ -6,22 +6,6 @@ ...@@ -6,22 +6,6 @@
6 ({{tableData.length}} total) 6 ({{tableData.length}} total)
7 </h2> 7 </h2>
8 8
9 - <div class="search">
10 - <input type="text" ng-model="query" placeholder="Search"/>
11 - <select ng-model="queryBy">
12 - <option value="" disabled>Search By</option>
13 - <option value="$">All</option>
14 - <option value="id">Flow ID</option>
15 - <option value="appId">App ID</option>
16 - <option value="groupId">Group ID</option>
17 - <option value="tableId">Table ID</option>
18 - <option value="priority">Priority</option>
19 - <option value="timeout">Timeout</option>
20 - <option value="permanent">Permanent</option>
21 - <option value="state">State</option>
22 - </select>
23 - </div>
24 -
25 <div class="ctrl-btns"> 9 <div class="ctrl-btns">
26 <div class="refresh" ng-class="{active: autoRefresh}" 10 <div class="refresh" ng-class="{active: autoRefresh}"
27 icon icon-size="42" icon-id="refresh" 11 icon icon-size="42" icon-id="refresh"
...@@ -70,6 +54,21 @@ ...@@ -70,6 +54,21 @@
70 ng-click="nav('meter')"></div> 54 ng-click="nav('meter')"></div>
71 55
72 </div> 56 </div>
57 +
58 + <div class="search">
59 + <input type="text" ng-model="queryTxt" placeholder="Search Text"/>
60 + <select ng-model="queryBy">
61 + <option value="" disabled>Search By</option>
62 + <option value="$">All Fields</option>
63 + <option value="id">Flow ID</option>
64 + <option value="appId">App ID</option>
65 + <option value="groupId">Group ID</option>
66 + <option value="tableId">Table ID</option>
67 + <option value="priority">Priority</option>
68 + <option value="timeout">Timeout</option>
69 + </select>
70 + </div>
71 +
73 </div> 72 </div>
74 73
75 <div class="summary-list" onos-table-resize> 74 <div class="summary-list" onos-table-resize>
......
...@@ -67,13 +67,12 @@ ...@@ -67,13 +67,12 @@
67 67
68 Object.defineProperty($scope, "queryFilter", { 68 Object.defineProperty($scope, "queryFilter", {
69 get: function() { 69 get: function() {
70 - var out = {}; 70 + var out = {};
71 - out[$scope.queryBy || "$"] = $scope.query; 71 + out[$scope.queryBy || "$"] = $scope.queryTxt;
72 - return out; 72 + return out;
73 } 73 }
74 }); 74 });
75 75
76 -
77 $log.log('OvFlowCtrl has been created'); 76 $log.log('OvFlowCtrl has been created');
78 }]); 77 }]);
79 }()); 78 }());
......