Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | bba1d78 | 2016-07-12 15:56:23 -0700 | [diff] [blame] | 19 | <div class="row"> |
| 20 | <div class="col-xs-10"> |
| 21 | <h1>Manage Your Dashboards</h1> |
| 22 | </div> |
| 23 | <div class="col-xs-2 text-right"> |
| 24 | <a ui-sref="add-dashboards" class="btn btn-success">Add</a> |
| 25 | </div> |
| 26 | </div> |
| 27 | |
| 28 | <div class="row"> |
| 29 | <div class="col-xs-6"> |
| 30 | <div class="panel panel-primary"> |
| 31 | <div class="panel-heading"> |
| 32 | <h3 class="panel-title"> |
| 33 | Available Dashboards |
| 34 | </h3> |
| 35 | </div> |
| 36 | <div class="panel-body"> |
| 37 | <ul dnd-list="vm.list.disabled" |
| 38 | dnd-drop="vm.addedToList(event, index, item, external, 'disabled')"> |
| 39 | <li ng-repeat="item in vm.list.disabled" |
| 40 | dnd-moved="vm.removeFromList('disabled', item.id)" |
| 41 | dnd-draggable="item"> |
Arpit Agarwal | 709912c | 2016-08-10 16:18:49 -0700 | [diff] [blame] | 42 | <a ui-sref="edit-dashboards({id: item.id,})"> |
| 43 | <img src="/static/images/{{item.icon}}"></img> |
| 44 | {{item.name}} |
| 45 | <i class="glyphicon glyphicon-pencil"></i> |
| 46 | </a> |
Matteo Scandolo | bba1d78 | 2016-07-12 15:56:23 -0700 | [diff] [blame] | 47 | </li> |
| 48 | </ul> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | <div class="col-xs-6"> |
| 53 | <div class="panel panel-primary"> |
| 54 | <div class="panel-heading"> |
| 55 | <h3 class="panel-title"> |
| 56 | Enabled Dashboards |
| 57 | </h3> |
| 58 | </div> |
| 59 | <div class="panel-body"> |
| 60 | <ul dnd-list="vm.list.enabled" |
| 61 | dnd-drop="vm.addedToList(event, index, item, external, 'enabled')"> |
| 62 | <li ng-repeat="item in vm.list.enabled | orderBy : 'order'" |
| 63 | dnd-moved="vm.removeFromList('enabled', item.id)" |
| 64 | dnd-draggable="item"> |
Arpit Agarwal | 709912c | 2016-08-10 16:18:49 -0700 | [diff] [blame] | 65 | <a ui-sref="edit-dashboards({id: item.id,})"> |
| 66 | <img src="/static/images/{{item.icon}}"></img> |
| 67 | {{item.name}} |
| 68 | <i class="glyphicon glyphicon-pencil"></i> |
| 69 | </a> |
Matteo Scandolo | bba1d78 | 2016-07-12 15:56:23 -0700 | [diff] [blame] | 70 | </li> |
| 71 | </ul> |
| 72 | </div> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | <div class="row" ng-show="vm.disabled.length > 0"> |
| 77 | <div class="col-xs-12"> |
| 78 | <h1>Disabled Dashboard</h1> |
| 79 | </div> |
| 80 | <div class="col-xs-12"> |
| 81 | <div class="row"> |
| 82 | <div class="col-sm-2" ng-repeat="item in vm.disabled | orderBy : 'id'"> |
| 83 | <span class="dashboard-container"> |
Arpit Agarwal | 709912c | 2016-08-10 16:18:49 -0700 | [diff] [blame] | 84 | <a ui-sref="edit-dashboards({id: item.id,})"> |
| 85 | <img src="/static/images/{{item.icon}}"></img> |
| 86 | {{item.name}} |
| 87 | <i class="glyphicon glyphicon-pencil"></i> |
| 88 | </a> |
Matteo Scandolo | bba1d78 | 2016-07-12 15:56:23 -0700 | [diff] [blame] | 89 | </span> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |