blob: d3ced76e67807a1e2dade7a535af4dc8ce3d7fe4 [file] [log] [blame]
Matteo Scandolobba1d782016-07-12 15:56:23 -07001<div class="row">
2 <div class="col-xs-10">
3 <h1>Manage Your Dashboards</h1>
4 </div>
5 <div class="col-xs-2 text-right">
6 <a ui-sref="add-dashboards" class="btn btn-success">Add</a>
7 </div>
8</div>
9
10<div class="row">
11 <div class="col-xs-6">
12 <div class="panel panel-primary">
13 <div class="panel-heading">
14 <h3 class="panel-title">
15 Available Dashboards
16 </h3>
17 </div>
18 <div class="panel-body">
19 <ul dnd-list="vm.list.disabled"
20 dnd-drop="vm.addedToList(event, index, item, external, 'disabled')">
21 <li ng-repeat="item in vm.list.disabled"
22 dnd-moved="vm.removeFromList('disabled', item.id)"
23 dnd-draggable="item">
Arpit Agarwal709912c2016-08-10 16:18:49 -070024 <a ui-sref="edit-dashboards({id: item.id,})">
25 <img src="/static/images/{{item.icon}}"></img>
26 {{item.name}}
27 <i class="glyphicon glyphicon-pencil"></i>
28 </a>
Matteo Scandolobba1d782016-07-12 15:56:23 -070029 </li>
30 </ul>
31 </div>
32 </div>
33 </div>
34 <div class="col-xs-6">
35 <div class="panel panel-primary">
36 <div class="panel-heading">
37 <h3 class="panel-title">
38 Enabled Dashboards
39 </h3>
40 </div>
41 <div class="panel-body">
42 <ul dnd-list="vm.list.enabled"
43 dnd-drop="vm.addedToList(event, index, item, external, 'enabled')">
44 <li ng-repeat="item in vm.list.enabled | orderBy : 'order'"
45 dnd-moved="vm.removeFromList('enabled', item.id)"
46 dnd-draggable="item">
Arpit Agarwal709912c2016-08-10 16:18:49 -070047 <a ui-sref="edit-dashboards({id: item.id,})">
48 <img src="/static/images/{{item.icon}}"></img>
49 {{item.name}}
50 <i class="glyphicon glyphicon-pencil"></i>
51 </a>
Matteo Scandolobba1d782016-07-12 15:56:23 -070052 </li>
53 </ul>
54 </div>
55 </div>
56 </div>
57</div>
58<div class="row" ng-show="vm.disabled.length > 0">
59 <div class="col-xs-12">
60 <h1>Disabled Dashboard</h1>
61 </div>
62 <div class="col-xs-12">
63 <div class="row">
64 <div class="col-sm-2" ng-repeat="item in vm.disabled | orderBy : 'id'">
65 <span class="dashboard-container">
Arpit Agarwal709912c2016-08-10 16:18:49 -070066 <a ui-sref="edit-dashboards({id: item.id,})">
67 <img src="/static/images/{{item.icon}}"></img>
68 {{item.name}}
69 <i class="glyphicon glyphicon-pencil"></i>
70 </a>
Matteo Scandolobba1d782016-07-12 15:56:23 -070071 </span>
72 </div>
73 </div>
74 </div>
75</div>