blob: 759c03c0de88614935346ccdec92bc0241c9e9a4 [file] [log] [blame]
<!--
Copyright 2017-present Open Networking Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="row">
<div class="col-xs-10">
<h1>Manage Your Dashboards</h1>
</div>
<div class="col-xs-2 text-right">
<a ui-sref="add-dashboards" class="btn btn-success">Add</a>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">
Available Dashboards
</h3>
</div>
<div class="panel-body">
<ul dnd-list="vm.list.disabled"
dnd-drop="vm.addedToList(event, index, item, external, 'disabled')">
<li ng-repeat="item in vm.list.disabled"
dnd-moved="vm.removeFromList('disabled', item.id)"
dnd-draggable="item">
<a ui-sref="edit-dashboards({id: item.id,})">
<img src="/static/images/{{item.icon}}"></img>
{{item.name}}
<i class="glyphicon glyphicon-pencil"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">
Enabled Dashboards
</h3>
</div>
<div class="panel-body">
<ul dnd-list="vm.list.enabled"
dnd-drop="vm.addedToList(event, index, item, external, 'enabled')">
<li ng-repeat="item in vm.list.enabled | orderBy : 'order'"
dnd-moved="vm.removeFromList('enabled', item.id)"
dnd-draggable="item">
<a ui-sref="edit-dashboards({id: item.id,})">
<img src="/static/images/{{item.icon}}"></img>
{{item.name}}
<i class="glyphicon glyphicon-pencil"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="row" ng-show="vm.disabled.length > 0">
<div class="col-xs-12">
<h1>Disabled Dashboard</h1>
</div>
<div class="col-xs-12">
<div class="row">
<div class="col-sm-2" ng-repeat="item in vm.disabled | orderBy : 'id'">
<span class="dashboard-container">
<a ui-sref="edit-dashboards({id: item.id,})">
<img src="/static/images/{{item.icon}}"></img>
{{item.name}}
<i class="glyphicon glyphicon-pencil"></i>
</a>
</span>
</div>
</div>
</div>
</div>