blob: d43f19d46fa3684208c9f2863892bc2d2cbe1032 [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">
24 {{item.name}}
25 <a ui-sref="edit-dashboards({id: item.id,})"><i class="glyphicon glyphicon-pencil"></i></a>
26 </li>
27 </ul>
28 </div>
29 </div>
30 </div>
31 <div class="col-xs-6">
32 <div class="panel panel-primary">
33 <div class="panel-heading">
34 <h3 class="panel-title">
35 Enabled Dashboards
36 </h3>
37 </div>
38 <div class="panel-body">
39 <ul dnd-list="vm.list.enabled"
40 dnd-drop="vm.addedToList(event, index, item, external, 'enabled')">
41 <li ng-repeat="item in vm.list.enabled | orderBy : 'order'"
42 dnd-moved="vm.removeFromList('enabled', item.id)"
43 dnd-draggable="item">
44 {{item.name}}
45 <a ui-sref="edit-dashboards({id: item.id,})"><i class="glyphicon glyphicon-pencil"></i></a>
46 </li>
47 </ul>
48 </div>
49 </div>
50 </div>
51</div>
52<div class="row" ng-show="vm.disabled.length > 0">
53 <div class="col-xs-12">
54 <h1>Disabled Dashboard</h1>
55 </div>
56 <div class="col-xs-12">
57 <div class="row">
58 <div class="col-sm-2" ng-repeat="item in vm.disabled | orderBy : 'id'">
59 <span class="dashboard-container">
60 {{item.name}}
61 <a ui-sref="edit-dashboards({id: item.id,})"><i class="glyphicon glyphicon-pencil"></i></a>
62 </span>
63 </div>
64 </div>
65 </div>
66</div>