Commit 3d60d0df by Carl Bergquist

Merge pull request #3613 from utkarshcmu/recorded

Made Playlist UI user friendly
parents 6fbba13a b68df56b
......@@ -2,6 +2,7 @@
<div class="page-container" ng-form="playlistEditForm">
<div class="page">
<h4>Creating new playlist</h4><br><br>
<div class="row" style="margin-bottom: 10px;">
<div>
<div class="tight-form">
......@@ -34,7 +35,7 @@
<div class="tight-form">
<ul class="tight-form-list">
<li class="tight-form-item">
Search
Search <tip>Search dashboards by their titles to add to the playlist</tip>
</li>
<li>
<input type="text"
......@@ -49,13 +50,11 @@
</div>
</div>
</div>
<div class="span6">
<h5>Playlist dashboards</h5>
</div>
</div>
<div class="row">
<div class="span6">
<div class="span5">
<h5>Search results</h5>
<table class="grafana-options-table">
<tr ng-repeat="dashboard in filteredDashboards">
<td style="white-space: nowrap;">
......@@ -75,12 +74,13 @@
</tr>
<tr ng-if="isSearchQueryEmpty() && isPlaylistEmpty()">
<td colspan="2">
<i class="fa fa-warning"></i> Playlist empty
<i class="fa fa-warning"></i> Search results empty
</td>
</tr>
</table>
</div>
<div class="span6">
<div class="span5">
<h5>Playlist dashboards</h5>
<table class="grafana-options-table">
<tr ng-repeat="dashboard in dashboards">
<td style="white-space: nowrap;">
......
......@@ -13,6 +13,7 @@ function (angular, _) {
$location,
backendSrv
) {
$scope.playlists = playlists;
$scope.playlistUrl = function(playlist) {
......@@ -40,10 +41,13 @@ function (angular, _) {
src: './app/features/playlist/partials/playlist-remove.html',
scope: modalScope
});
};
$scope.createPlaylist = function() {
$location.path('/playlists/create');
};
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment