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
b63af822
Commit
b63af822
authored
Sep 11, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up timepicker layout
parent
ea62d4ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
panels/timepicker/module.html
+18
-13
No files found.
panels/timepicker/module.html
View file @
b63af822
<kibana-panel
ng-controller=
'timepicker'
ng-init=
"init()"
>
<kibana-panel
ng-controller=
'timepicker'
ng-init=
"init()"
>
<div
class=
"row-fluid"
ng-switch=
"panel.mode"
ng-show=
"filterSrv.idsByType('time').length > 0"
>
<style>
<div
ng-switch-when=
"absolute"
>
.timepicker-block
{
<div
class=
"span5"
>
display
:
inline-block
;
}
</style>
<div
class=
"row-fluid form-horizontal"
ng-switch=
"panel.mode"
ng-show=
"filterSrv.idsByType('time').length > 0"
>
<div
ng-switch-when=
"absolute"
>
<div
class=
"timepicker-block"
>
<form
class=
"nomargin"
>
<form
class=
"nomargin"
>
<label><small>
From
</small></label>
<label><small>
From
</small></label>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.from.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.from.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.from.time"
bs-timepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.from.time"
bs-timepicker
>
</form>
</form>
</div>
</div>
<div
class=
"
span5
"
style=
"margin-left:10px"
>
<div
class=
"
timepicker-block
"
style=
"margin-left:10px"
>
<form
class=
"nomargin"
>
<form
class=
"nomargin"
>
<label
style=
"margin-left:5px"
><small>
To (
<a
ng-click=
"to_now()"
>
now
</a>
)
</small></label>
<label
style=
"margin-left:5px"
><small>
To (
<a
ng-click=
"to_now()"
>
now
</a>
)
</small></label>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.to.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.to.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.to.time"
bs-timepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.to.time"
bs-timepicker
>
</form>
</form>
</div>
</div>
<div
class=
"
span1
"
>
<div
class=
"
timepicker-block
"
>
<form
class=
"nomargin"
>
<form
class=
"nomargin"
>
<label><small><br></small></label>
<button
class=
"btn"
ng-click=
"time_apply()"
><i
class=
"icon-ok"
></i></button>
<button
class=
"btn"
ng-click=
"time_apply()"
><i
class=
"icon-ok"
></i></button>
</form>
</form>
</div>
</div>
</div>
</div>
<div
ng-switch-when=
"since"
>
<div
ng-switch-when=
"since"
>
<div
class=
"
span5
"
>
<div
class=
"
timepicker-block
"
>
<form
class=
"nomargin"
>
<form
class=
"nomargin"
>
<label><small>
Since
</small></label>
<label><small>
Since
</small></label>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.from.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-smaller"
ng-change=
"time_check()"
ng-model=
"timepicker.from.date"
data-date-format=
"mm/dd/yyyy"
bs-datepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.from.time"
bs-timepicker
>
<input
type=
"text"
class=
"input-mini"
ng-change=
"time_check()"
data-show-meridian=
"false"
data-show-seconds=
"true"
ng-model=
"timepicker.from.time"
bs-timepicker
>
</form>
</form>
</div>
</div>
<div
class=
"
span1
"
style=
"margin-left:10px"
>
<div
class=
"
timepicker-block
"
style=
"margin-left:10px"
>
<form
class=
"nomargin"
>
<form
class=
"nomargin"
>
<label><small><br></small></label>
<label><small><br></small></label>
<button
class=
"btn"
ng-click=
"time_apply()"
><i
class=
"icon-ok"
></i></button>
<button
class=
"btn"
ng-click=
"time_apply()"
><i
class=
"icon-ok"
></i></button>
...
@@ -38,7 +43,7 @@
...
@@ -38,7 +43,7 @@
</div>
</div>
</div>
</div>
<div
ng-switch-when=
"relative"
>
<div
ng-switch-when=
"relative"
>
<div
class=
"
span11
"
>
<div
class=
"
timepicker-block
"
>
<form
class=
"nomargin input-append"
>
<form
class=
"nomargin input-append"
>
<label><small>
The last
</small></label>
<label><small>
The last
</small></label>
<button
class=
"btn btn"
ng-repeat=
'timespan in panel.time_options'
ng-class=
"{'btn-success': (panel.timespan == timespan)}"
ng-click=
"set_timespan(timespan)"
>
{{timespan}}
</button>
<button
class=
"btn btn"
ng-repeat=
'timespan in panel.time_options'
ng-class=
"{'btn-success': (panel.timespan == timespan)}"
ng-click=
"set_timespan(timespan)"
>
{{timespan}}
</button>
...
@@ -56,9 +61,9 @@
...
@@ -56,9 +61,9 @@
</div>
</div>
<div
class=
"row-fluid nomargin"
>
<div
class=
"row-fluid nomargin"
>
<div
class=
"span12 small"
ng-show=
"filterSrv.idsByType('time').length > 0"
>
<div
class=
"span12 small"
ng-show=
"filterSrv.idsByType('time').length > 0"
>
<a
ng-click=
"set_mode('relative')"
ng-class=
"{'strong': (panel.mode == 'relative')}"
>
Relative
</a>
|
<a
class=
"link"
ng-click=
"set_mode('relative')"
ng-class=
"{'strong': (panel.mode == 'relative')}"
>
Relative
</a>
|
<a
ng-click=
"set_mode('absolute')"
ng-class=
"{'strong': (panel.mode == 'absolute')}"
>
Absolute
</a>
|
<a
class=
"link"
ng-click=
"set_mode('absolute')"
ng-class=
"{'strong': (panel.mode == 'absolute')}"
>
Absolute
</a>
|
<a
ng-click=
"set_mode('since')"
ng-class=
"{'strong': (panel.mode == 'since')}"
>
Since
</a>
<a
class=
"link"
ng-click=
"set_mode('since')"
ng-class=
"{'strong': (panel.mode == 'since')}"
>
Since
</a>
<span
ng-hide=
"panel.mode == 'absolute' || panel.mode == 'none'"
>
|
<span
ng-hide=
"panel.mode == 'absolute' || panel.mode == 'none'"
>
|
<input
type=
"checkbox"
ng-model=
"panel.refresh.enable"
ng-change=
'refresh();'
>
Auto-refresh
<input
type=
"checkbox"
ng-model=
"panel.refresh.enable"
ng-change=
'refresh();'
>
Auto-refresh
<span
ng-class=
"{'ng-cloak': !panel.refresh.enable}"
>
<span
ng-class=
"{'ng-cloak': !panel.refresh.enable}"
>
...
...
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