2017-12-09 01:15:24 +08:00
< aside class = "dashboard-settings__aside" >
2020-02-13 20:14:55 +08:00
< a href = "{{::section.url}}"
class="dashboard-settings__nav-item"
ng-class="{active: ctrl.viewId === section.id}"
ng-repeat="section in ctrl.sections"
aria-label="{{ctrl.selectors.sectionItems(section.title)}}">
2020-04-13 04:20:02 +08:00
< icon name = "'{{::section.icon}}'" style = "margin-right: 4px;" > < / icon >
2020-02-13 18:13:03 +08:00
{{::section.title}}
< / a >
< div class = "dashboard-settings__aside-actions" >
2020-03-03 15:22:26 +08:00
< div ng-show = "ctrl.canSave" >
< save-dashboard-button getDashboard = "ctrl.getDashboard" aria-label = "Dashboard settings aside actions Save button" / >
< / div >
< div ng-show = "ctrl.canSaveAs" >
2020-03-26 18:50:27 +08:00
< save-dashboard-as-button getDashboard = "ctrl.getDashboard" aria-label = "Dashboard settings aside actions Save as button" variant = "'secondary'" / >
2020-03-03 15:22:26 +08:00
< / div >
2020-02-13 18:13:03 +08:00
< / div >
2017-12-09 01:15:24 +08:00
< / aside >
2017-12-02 04:04:48 +08:00
2017-12-10 19:41:11 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'settings'" >
2020-02-13 18:13:03 +08:00
< h3 class = "dashboard-settings__header" >
General
< / h3 >
< div class = "gf-form-group" >
< div class = "gf-form" >
< label class = "gf-form-label width-7" > Name< / label >
< input type = "text" class = "gf-form-input width-30" ng-model = 'ctrl.dashboard.title' > < / input >
< / div >
< div class = "gf-form" >
< label class = "gf-form-label width-7" > Description< / label >
< input type = "text" class = "gf-form-input width-30" ng-model = 'ctrl.dashboard.description' > < / input >
< / div >
< div class = "gf-form" >
< label class = "gf-form-label width-7" >
Tags
< info-popover mode = "right-normal" > Press enter to add a tag< / info-popover >
< / label >
< bootstrap-tagsinput ng-model = "ctrl.dashboard.tags" tagclass = "label label-tag" placeholder = "add tags" >
< / bootstrap-tagsinput >
< / div >
< folder-picker initial-title = "ctrl.dashboard.meta.folderTitle" initial-folder-id = "ctrl.dashboard.meta.folderId"
on-change="ctrl.onFolderChange" enable-create-new="true" is-valid-selection="true" label-class="width-7"
dashboard-id="ctrl.dashboard.id">
< / folder-picker >
< gf-form-switch class = "gf-form" label = "Editable"
tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable"
label-class="width-7">
< / gf-form-switch >
< / div >
< gf-time-picker-settings dashboard = "ctrl.dashboard" > < / gf-time-picker-settings >
< h5 class = "section-heading" > Panel Options< / h5 >
< div class = "gf-form" >
< label class = "gf-form-label width-11" >
Graph Tooltip
< info-popover mode = "right-normal" >
Cycle between options using Shortcut: CTRL+O or CMD+O
< / info-popover >
< / label >
< div class = "gf-form-select-wrapper" >
< select ng-model = "ctrl.dashboard.graphTooltip" class = 'gf-form-input'
ng-options="f.value as f.text for f in [{value: 0, text: 'Default'}, {value: 1, text: 'Shared crosshair'},{value: 2, text: 'Shared Tooltip'}]">< / select >
< / div >
< / div >
< div class = "gf-form-button-row" >
< button class = "btn btn-danger" ng-click = "ctrl.deleteDashboard()" ng-show = "ctrl.canDelete"
aria-label="Dashboard settings page delete dashboard button">
Delete Dashboard
< / button >
2019-03-13 17:24:26 +08:00
< / div >
2017-12-08 21:32:15 +08:00
< / div >
2017-12-02 04:04:48 +08:00
2020-02-13 18:13:03 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'annotations'"
ng-include="'public/app/features/annotations/partials/editor.html'">
2017-12-09 01:15:24 +08:00
< / div >
2017-12-02 04:04:48 +08:00
2020-03-10 15:53:41 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'templating' && ctrl.useAngularTemplating"
2020-02-13 18:13:03 +08:00
ng-include="'public/app/features/templating/partials/editor.html'">
2017-12-09 01:15:24 +08:00
< / div >
2017-12-11 20:47:04 +08:00
2020-03-10 15:53:41 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'templating' && !ctrl.useAngularTemplating" >
< variable-editor-container / >
< / div >
2020-02-13 18:13:03 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'links'" >
< dash-links-editor dashboard = "ctrl.dashboard" > < / dash-links-editor >
2017-12-11 20:47:04 +08:00
< / div >
2017-12-11 22:04:48 +08:00
2020-02-13 18:13:03 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'versions'" >
< gf-dashboard-history dashboard = "dashboard" > < / gf-dashboard-history >
2017-12-11 22:04:48 +08:00
< / div >
2020-02-13 18:13:03 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'dashboard_json'" >
< h3 class = "dashboard-settings__header" > JSON Model< / h3 >
2018-05-08 17:24:20 +08:00
< div class = "dashboard-settings__subheader" >
The JSON Model below is data structure that defines the dashboard. Including settings, panel settings & layout,
queries etc.
< / div >
2017-12-11 23:28:57 +08:00
2020-02-13 18:13:03 +08:00
< div class = "gf-form" >
< code-editor content = "ctrl.json" data-mode = "json" data-max-lines = 30 > < / code-editor >
< / div >
2018-04-12 04:59:29 +08:00
2018-05-08 17:24:20 +08:00
< div class = "gf-form-button-row" >
2019-02-05 19:05:02 +08:00
< button class = "btn btn-primary" ng-click = "ctrl.saveDashboardJson()" ng-show = "ctrl.canSave" >
2019-02-13 00:08:40 +08:00
Save Changes
2018-05-08 17:24:20 +08:00
< / button >
< / div >
2017-12-12 00:19:17 +08:00
< / div >
2020-02-13 18:13:03 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'permissions'" >
< dashboard-permissions ng-if = "ctrl.dashboard && !ctrl.hasUnsavedFolderChange" dashboardId = "ctrl.dashboard.id"
backendSrv="ctrl.backendSrv" folder="ctrl.getFolder()" />
2018-02-05 21:28:24 +08:00
< div ng-if = "ctrl.hasUnsavedFolderChange" >
< h5 > You have changed folder, please save to view permissions.< / h5 >
< / div >
2017-12-20 20:12:23 +08:00
< / div >
2017-12-12 00:19:17 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === '404'" >
< h3 class = "dashboard-settings__header" > Settings view not found< / h3 >
< div >
< h5 > The settings page could not be found or you do not have permission to access it< / h5 >
2017-12-11 23:28:57 +08:00
< / div >
2017-12-12 00:19:17 +08:00
< / div >
2017-12-11 23:28:57 +08:00
2017-12-12 00:19:17 +08:00
< div class = "dashboard-settings__content" ng-if = "ctrl.viewId === 'make_editable'" >
< h3 class = "dashboard-settings__header" > Make Editable< / h3 >
2019-02-05 19:05:02 +08:00
< button class = "btn btn-primary" ng-click = "ctrl.makeEditable()" >
2017-12-12 00:19:17 +08:00
Make Editable
< / button >
2017-12-11 23:28:57 +08:00
< / div >