Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7c482064
Commit
7c482064
authored
Jan 04, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): improve header
parent
c93a3ce2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
public/app/features/playlist/partials/playlist.html
+17
-13
public/app/features/playlist/playlistEditCtrl.js
+4
-0
No files found.
public/app/features/playlist/partials/playlist.html
View file @
7c482064
...
...
@@ -2,8 +2,12 @@
<div
class=
"page-container"
ng-form=
"playlistEditForm"
>
<div
class=
"page"
>
<h2>
Create new playlist
</h2><br><br>
<div
class=
"row"
style=
"margin-bottom: 10px;"
>
<h2
ng-show=
"isNew()"
>
New playlist
</h2>
<h2
ng-show=
"!isNew()"
>
Edit playlist
</h2>
<h5>
1. Name and interval
</h5>
<div
style=
"margin-bottom: 10px;"
>
<div>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
...
...
@@ -19,7 +23,7 @@
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 100px"
>
<strong>
Timespan
</strong>
<strong>
Interval
</strong>
</li>
<li>
<input
type=
"text"
required
ng-model=
"playlist.timespan"
placeholder=
"5m"
class=
"input-xlarge tight-form-input"
>
...
...
@@ -30,9 +34,10 @@
</div>
<br>
<h5>
2. Add dashboards
</h5>
<div
style=
"display: inline-block"
>
<div
class=
"tight-form"
>
<div
class=
"tight-form
last
"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
>
Search
<tip>
Search dashboards by their titles to add to the playlist
</tip>
...
...
@@ -41,7 +46,7 @@
<input
type=
"text"
class=
"tight-form-input input-xlarge last"
ng-model=
"searchQuery"
placeholder=
"dashboard
title
"
placeholder=
"dashboard
query
"
ng-trim=
"true"
ng-change=
"search()"
>
</li>
...
...
@@ -52,8 +57,8 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"span5"
>
<div>
<div
class=
"span5
pull-left
"
>
<h5>
Search results
</h5>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"dashboard in filteredDashboards"
>
...
...
@@ -79,7 +84,7 @@
</tr>
</table>
</div>
<div
class=
"span5"
>
<div
class=
"span5
pull-left
"
>
<h5>
Playlist dashboards
</h5>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"dashboard in dashboards"
>
...
...
@@ -96,11 +101,10 @@
</div>
</div>
<br>
<br>
<div
class=
"clearfix"
></div>
<div
class=
"pull-left"
>
<
div
class=
"tight-form"
>
<div
class=
"pull-left"
style=
"margin-top: 25px;"
>
<
!-- <div class="tight-form"> --
>
<button
type=
"button"
class=
"btn btn-success"
ng-disabled=
"playlistEditForm.$invalid || isPlaylistEmpty()"
...
...
@@ -112,7 +116,7 @@
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"backToList()"
>
Cancel
</button>
<
/div
>
<
!-- </div> --
>
</div>
<div
class=
"clearfix"
></div>
...
...
public/app/features/playlist/playlistEditCtrl.js
View file @
7c482064
...
...
@@ -79,6 +79,10 @@ function (angular, config, _) {
});
};
$scope
.
isNew
=
function
()
{
return
!
playlist
.
id
;
};
$scope
.
startPlaylist
=
function
(
playlist
,
dashboards
)
{
playlistSrv
.
start
(
dashboards
,
playlist
.
timespan
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment