2014-08-25 15:39:40 -05:00
< div class = "dashboard-editor-header" >
< div class = "dashboard-editor-title" >
2015-01-08 04:03:27 -06:00
< i class = "fa fa-cogs" > < / i >
2014-08-25 15:39:40 -05:00
Dashboard settings
< / div >
2013-07-23 12:10:00 -05:00
2014-08-25 15:39:40 -05:00
< div ng-model = "editor.index" bs-tabs style = "text-transform:capitalize;" >
2014-08-27 02:01:50 -05:00
< div ng-repeat = "tab in ['General', 'Rows', 'Features', 'Import']" data-title = "{{tab}}" >
2014-08-25 15:39:40 -05:00
< / div >
< div ng-repeat = "tab in dashboard.nav" data-title = "{{tab.type}}" >
< / div >
< / div >
2013-07-23 12:10:00 -05:00
2014-08-25 15:39:40 -05:00
< / div >
2013-09-06 15:20:12 -05:00
2014-08-25 15:39:40 -05:00
< div class = "dashboard-editor-body" >
2013-10-09 07:24:19 -05:00
2014-08-25 15:39:40 -05:00
< div ng-if = "editor.index == 0" >
< div class = "editor-row" >
< div class = "section" >
< div class = "editor-option" >
< label class = "small" > Title< / label > < input type = "text" class = "input-large" ng-model = 'dashboard.title' > < / input >
< / div >
< div class = "editor-option" >
< label class = "small" > Theme< / label > < select class = "input-small" ng-model = "dashboard.style" ng-options = "f for f in ['dark','light']" ng-change = "styleUpdated()" > < / select >
< / div >
< div class = "editor-option" >
< label class = "small" > Time correction< / label >
< select ng-model = "dashboard.timezone" class = 'input-small' ng-options = "f for f in ['browser','utc']" > < / select >
< / div >
2014-09-26 06:09:47 -05:00
< editor-opt-bool text = "Hide controls (CTRL+H)" model = "dashboard.hideControls" > < / editor-opt-bool >
2014-07-31 07:20:53 -05:00
< / div >
2014-08-25 15:39:40 -05:00
< / div >
< div class = "editor-row" >
< div class = "section" >
< div class = "editor-option" >
< label class = "small" > Tags< / label >
< bootstrap-tagsinput ng-model = "dashboard.tags" tagclass = "label label-tag" placeholder = "add tags" >
< / bootstrap-tagsinput >
< tip > Press enter to a add tag< / tip >
< / div >
< / div >
< / div >
< / div >
< div ng-if = "editor.index == 1" >
< div class = "editor-row" >
2014-08-28 09:44:16 -05:00
< div class = "span6" >
< table class = "grafana-options-table" >
2014-08-25 15:39:40 -05:00
< tr ng-repeat = "row in dashboard.rows" >
2014-08-28 09:44:16 -05:00
< td style = "width: 97%" >
{{row.title}}
< / td >
2015-01-08 04:03:27 -06:00
< td > < i ng-click = "_.move(dashboard.rows,$index,$index-1)" ng-hide = "$first" class = "pointer fa fa-arrow-up" > < / i > < / td >
< td > < i ng-click = "_.move(dashboard.rows,$index,$index+1)" ng-hide = "$last" class = "pointer fa fa-arrow-down" > < / i > < / td >
2014-08-28 09:44:16 -05:00
< td >
2015-01-17 01:27:55 -06:00
< a ng-click = "dashboard.rows = _.without(dashboard.rows,row)" class = "btn btn-danger btn-small" >
2015-01-08 04:03:27 -06:00
< i class = "fa fa-remove" > < / i >
2014-08-28 09:44:16 -05:00
< / a >
< / td >
2014-08-25 15:39:40 -05:00
< / tr >
< / table >
< / div >
2014-07-31 07:20:53 -05:00
< / div >
< / div >
2013-10-08 11:38:08 -05:00
2014-08-25 15:39:40 -05:00
< div ng-if = "editor.index == 2" >
< div class = "editor-row" >
< div class = "section" >
2014-10-02 04:54:06 -05:00
< editor-opt-bool text = "Templating" model = "dashboard.templating.enable" change = "checkFeatureToggles()" > < / editor-opt-bool >
< editor-opt-bool text = "Annotations" model = "dashboard.annotations.enable" change = "checkFeatureToggles()" > < / editor-opt-bool >
2014-09-24 11:55:55 -05:00
< div class = "editor-option text-center" ng-repeat = "pulldown in dashboard.nav" >
< label class = "small" style = "text-transform:capitalize;" > {{pulldown.type}}< / label >
2014-09-30 03:27:56 -05:00
< input class = "cr1" id = "pulldown{{pulldown.type}}" type = "checkbox" ng-model = "pulldown.enable" ng-checked = "pulldown.enable" >
2014-09-24 11:55:55 -05:00
< label for = "pulldown{{pulldown.type}}" class = "cr1" > < / label >
2014-08-25 15:39:40 -05:00
< / div >
2014-10-01 02:08:11 -05:00
< editor-opt-bool text = "Shared Crosshair (CTRL+O)" model = "dashboard.sharedCrosshair" > < / editor-opt-bool >
2014-08-25 15:39:40 -05:00
< / div >
< / div >
< / div >
2014-01-06 13:29:39 -06:00
2014-08-25 15:39:40 -05:00
< div ng-if = "editor.index == 3" >
< ng-include src = "'app/partials/import.html'" > < / ng-include >
< / div >
2013-10-09 07:24:19 -05:00
2014-08-25 15:39:40 -05:00
< div ng-repeat = "pulldown in dashboard.nav" ng-controller = "SubmenuCtrl" ng-show = "editor.index == 4+$index" >
2014-10-14 15:57:33 -05:00
< ng-include ng-show = "pulldown.enable" src = "pulldownEditorPath(pulldown.type)" > < / ng-include >
2014-08-25 15:39:40 -05:00
< button ng-hide = "pulldown.enable" class = "btn" ng-click = "pulldown.enable = true" > Enable the {{pulldown.type}}< / button >
< / div >
< / div >
< div class = "clearfix" > < / div >
2013-02-13 15:24:32 -06:00
< / div >
2013-09-06 15:20:12 -05:00
2014-08-25 15:39:40 -05:00
< div class = "dashboard-editor-footer" >
2014-08-27 02:01:50 -05:00
< div class = "grafana-version-info" ng-show = "editor.index === 0" >
< span class = "editor-option small" >
2015-01-29 05:10:14 -06:00
Grafana version: {{grafana.version}}
2014-08-27 02:01:50 -05:00
< / span >
< span grafana-version-check >
2014-08-25 15:39:40 -05:00
< / span >
< / div >
2014-02-11 02:03:21 -06:00
2014-08-26 02:32:30 -05:00
< button type = "button" class = "btn btn-success pull-right" ng-click = "editor.index=0;dismiss();reset_panel();dashboard.emit_refresh()" > Close< / button >
2014-07-29 02:45:07 -05:00
< / div >