mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(): general ux polish
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
<topnav icon="fa fa-fw fa-list" title="Playlists"></topnav>
|
||||
<topnav icon="fa fa-fw fa-list" title="Playlists" title-url="playlists" subnav="true">
|
||||
<ul class="nav">
|
||||
<li ng-class="{active: isNew()}" ng-show="isNew()"><a href="datasources/create">New</a></li>
|
||||
<li class="active" ng-show="!isNew()"><a href="playlists/edit/{{playlist.id}}">{{playlist.title}}</a></li>
|
||||
</ul>
|
||||
</topnav>
|
||||
|
||||
<div class="page-container" ng-form="playlistEditForm">
|
||||
<div class="page">
|
||||
<h2 ng-show="isNew()">New playlist</h2>
|
||||
<h2 ng-show="!isNew()">Edit playlist</h2>
|
||||
|
||||
<h5>1. Name and interval</h5>
|
||||
<h4>Name and interval</h4>
|
||||
|
||||
<div style="margin-bottom: 10px;">
|
||||
<div>
|
||||
<div class="tight-form">
|
||||
<ul class="tight-form-list">
|
||||
<li class="tight-form-item" style="width: 100px">
|
||||
<strong>Title</strong>
|
||||
Name
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" required ng-model="playlist.title" class="input-xlarge tight-form-input">
|
||||
@@ -23,7 +28,7 @@
|
||||
<div class="tight-form last">
|
||||
<ul class="tight-form-list">
|
||||
<li class="tight-form-item" style="width: 100px">
|
||||
<strong>Interval</strong>
|
||||
Interval
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" required ng-model="playlist.interval" placeholder="5m" class="input-xlarge tight-form-input">
|
||||
@@ -34,11 +39,14 @@
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<h5>2. Add dashboards</h5>
|
||||
<h4>Add dashboards</h4>
|
||||
|
||||
<div style="display: inline-block">
|
||||
<div class="tight-form last">
|
||||
<ul class="tight-form-list">
|
||||
<li class="tight-form-item">
|
||||
Search
|
||||
</li>
|
||||
<li>
|
||||
<input type="text"
|
||||
class="tight-form-input input-xlarge last"
|
||||
@@ -47,9 +55,6 @@
|
||||
ng-trim="true"
|
||||
ng-change="search()">
|
||||
</li>
|
||||
<li class="tight-form-item last" style="padding: 5px 4px">
|
||||
<button ng-click="search()" class="btn btn-mini btn-inverse">Search</button>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -57,9 +62,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="span5 pull-left">
|
||||
<h5>Search results ({{filteredPlaylistItems.length}})</h5>
|
||||
<h5>Search results ({{filteredPlaylistItems.length}})</h5>
|
||||
<table class="grafana-options-table">
|
||||
<tr ng-repeat="playlistItem in filteredPlaylistItems">
|
||||
<td style="white-space: nowrap;">
|
||||
@@ -72,7 +77,7 @@
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-if="isSearchResultsEmpty() || isSearchQueryEmpty()">
|
||||
<tr ng-if="isSearchResultsEmpty()">
|
||||
<td colspan="2">
|
||||
<i class="fa fa-warning"></i> Search results empty
|
||||
</td>
|
||||
@@ -80,7 +85,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="span5 pull-left">
|
||||
<h5>Playlist dashboards</h5>
|
||||
<h5>Added dashboards</h5>
|
||||
<table class="grafana-options-table">
|
||||
<tr ng-repeat="playlistItem in playlistItems">
|
||||
<td style="white-space: nowrap;">
|
||||
@@ -111,7 +116,7 @@
|
||||
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
|
||||
ng-click="savePlaylist(playlist, playlistItems)">Save</button>
|
||||
<button type="button"
|
||||
class="btn btn-default"
|
||||
class="btn btn-inverse"
|
||||
ng-click="backToList()">Cancel</button>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
|
||||
@@ -2,24 +2,26 @@
|
||||
|
||||
<div class="page-container" style="background: transparent; border: 0;">
|
||||
<div class="page-wide">
|
||||
|
||||
<button type="submit" class="btn btn-inverse pull-right" ng-click="createPlaylist()">
|
||||
<i class="fa fa-plus"></i>
|
||||
New playlist
|
||||
</button>
|
||||
|
||||
<h2>Saved playlists</h2>
|
||||
|
||||
<button type="submit" class="btn btn-success pull-right" ng-click="createPlaylist()">
|
||||
<i class="fa fa-plus"></i> New playlist</button>
|
||||
<br />
|
||||
|
||||
<table class="filter-table" style="margin-top: 20px">
|
||||
<table class="filter-table" style="margin-top: 20px">
|
||||
<thead>
|
||||
<th><strong>Title</strong></th>
|
||||
<th><strong>Url</strong></th>
|
||||
<th><strong>Name</strong></th>
|
||||
<th><strong>Start url</strong></th>
|
||||
<th style="width: 61px"></th>
|
||||
<th style="width: 61px"></th>
|
||||
<th style="width: 25px"></th>
|
||||
|
||||
</thead>
|
||||
<tr ng-repeat="playlist in playlists">
|
||||
<td >
|
||||
{{playlist.title}}
|
||||
<td>
|
||||
<a href="playlists/edit/{{playlist.id}}">{{playlist.title}}</a>
|
||||
</td>
|
||||
<td >
|
||||
<a href="playlists/play/{{playlist.id}}">playlists/play/{{playlist.id}}</a>
|
||||
|
||||
Reference in New Issue
Block a user