2014-08-25 22:39:40 +02:00
< div class = "dashboard-editor-header" >
< div class = "dashboard-editor-title" >
< i class = "icon icon-cogs" > < / i >
Dashboard settings
< / div >
2013-07-23 10:10:00 -07:00
2014-08-25 22:39:40 +02:00
< div ng-model = "editor.index" bs-tabs style = "text-transform:capitalize;" >
2014-08-27 09:01:50 +02:00
< div ng-repeat = "tab in ['General', 'Rows', 'Features', 'Import']" data-title = "{{tab}}" >
2014-08-25 22:39:40 +02:00
< / div >
< div ng-repeat = "tab in dashboard.nav" data-title = "{{tab.type}}" >
< / div >
< / div >
2013-07-23 10:10:00 -07:00
2014-08-25 22:39:40 +02:00
< / div >
2013-09-06 13:20:12 -07:00
2014-08-25 22:39:40 +02:00
< div class = "dashboard-editor-body" >
2013-10-09 14:24:19 +02:00
2014-08-25 22:39:40 +02: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 >
< div class = "editor-option" >
< label class = "small" > Hide controls (CTRL+H)< / label >
< input type = "checkbox" ng-model = "dashboard.hideControls" ng-checked = "dashboard.hideControls" >
< / div >
2014-07-31 14:20:53 +02:00
< / div >
2014-08-25 22:39:40 +02: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 >
2014-08-27 09:01:50 +02:00
2014-08-25 22:39:40 +02:00
< / div >
< / div >
< / div >
< div ng-if = "editor.index == 1" >
< div class = "editor-row" >
2014-08-28 16:44:16 +02:00
< div class = "span6" >
< table class = "grafana-options-table" >
2014-08-25 22:39:40 +02:00
< tr ng-repeat = "row in dashboard.rows" >
2014-08-28 16:44:16 +02:00
< td style = "width: 97%" >
{{row.title}}
< / td >
2014-08-25 22:39:40 +02:00
< td > < i ng-click = "_.move(dashboard.rows,$index,$index-1)" ng-hide = "$first" class = "pointer icon-arrow-up" > < / i > < / td >
< td > < i ng-click = "_.move(dashboard.rows,$index,$index+1)" ng-hide = "$last" class = "pointer icon-arrow-down" > < / i > < / td >
2014-08-28 16:44:16 +02:00
< td >
< a ng-click = "dashboard.rows = _.without(dashboard.rows,row)" class = "btn btn-danger btn-mini" >
< i class = "icon-remove" > < / i >
< / a >
< / td >
2014-08-25 22:39:40 +02:00
< / tr >
< / table >
< / div >
2014-07-31 14:20:53 +02:00
< / div >
< / div >
2013-10-08 18:38:08 +02:00
2014-08-25 22:39:40 +02:00
< div ng-if = "editor.index == 2" >
< div class = "editor-row" >
< div class = "section" >
2014-08-28 16:44:16 +02:00
< div class = "editor-option" >
< label class = "small" > Templating< / label >
< input type = "checkbox" ng-model = "dashboard.templating.enable" ng-checked = "dashboard.templating.enable" ng-change = "checkFeatureToggles()" x >
< / div >
< div class = "editor-option" >
< label class = "small" > Annotations< / label >
< input type = "checkbox" ng-model = "dashboard.annotations.enable" ng-checked = "dashboard.annotations.enable" ng-change = "checkFeatureToggles()" >
2014-08-25 22:39:40 +02:00
< / div >
< div class = "editor-option" ng-repeat = "pulldown in dashboard.nav" >
< label class = "small" style = "text-transform:capitalize;" > {{pulldown.type}}< / label > < input type = "checkbox" ng-model = "pulldown.enable" ng-checked = "pulldown.enable" >
< / div >
< / div >
< / div >
< / div >
2014-01-06 20:29:39 +01:00
2014-08-25 22:39:40 +02:00
< div ng-if = "editor.index == 3" >
< ng-include src = "'app/partials/import.html'" > < / ng-include >
< / div >
2013-10-09 14:24:19 +02:00
2014-08-25 22:39:40 +02:00
< div ng-repeat = "pulldown in dashboard.nav" ng-controller = "SubmenuCtrl" ng-show = "editor.index == 4+$index" >
< ng-include ng-show = "pulldown.enable" src = "edit_path(pulldown.type)" > < / ng-include >
< 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 14:24:32 -07:00
< / div >
2013-09-06 13:20:12 -07:00
2014-08-25 22:39:40 +02:00
< div class = "dashboard-editor-footer" >
2014-08-27 09:01:50 +02:00
< div class = "grafana-version-info" ng-show = "editor.index === 0" >
< span class = "editor-option small" >
Grafana version: {{grafanaVersion}}
< / span >
< span grafana-version-check >
2014-08-25 22:39:40 +02:00
< / span >
< / div >
2014-02-11 09:03:21 +01:00
2014-08-26 09:32:30 +02: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 09:45:07 +02:00
< / div >