blob: 759c03c0de88614935346ccdec92bc0241c9e9a4 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolobba1d782016-07-12 15:56:23 -070019<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 Agarwal709912c2016-08-10 16:18:49 -070042 <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 Scandolobba1d782016-07-12 15:56:23 -070047 </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 Agarwal709912c2016-08-10 16:18:49 -070065 <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 Scandolobba1d782016-07-12 15:56:23 -070070 </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 Agarwal709912c2016-08-10 16:18:49 -070084 <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 Scandolobba1d782016-07-12 15:56:23 -070089 </span>
90 </div>
91 </div>
92 </div>
93</div>