mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
In the permissions view in dashboard settings, this adds a link to the parent folder for inherited permissions. Which allows the user to easily navigate to the folder and change inherited permissions.
124 lines
4.5 KiB
HTML
124 lines
4.5 KiB
HTML
<aside class="dashboard-settings__aside">
|
|
<h2 class="dashboard-settings__aside-header">
|
|
<i class="fa fa-cog"></i>
|
|
Settings
|
|
</h2>
|
|
|
|
<a href="{{::section.url}}" class="dashboard-settings__nav-item" ng-class="{active: ctrl.viewId === section.id}" ng-repeat="section in ctrl.sections">
|
|
<i class="{{::section.icon}}"></i>
|
|
{{::section.title}}
|
|
</a>
|
|
|
|
<div class="dashboard-settings__aside-actions">
|
|
<button class="btn btn-success" ng-click="ctrl.saveDashboard()" ng-show="ctrl.canSave">
|
|
<i class="fa fa-save"></i> Save
|
|
</button>
|
|
<button class="btn btn-inverse" ng-click="ctrl.openSaveAsModal()" ng-show="ctrl.canSaveAs">
|
|
<i class="fa fa-copy"></i>
|
|
Save As...
|
|
</button>
|
|
<button class="btn btn-danger" ng-click="ctrl.deleteDashboard()" ng-show="ctrl.canDelete">
|
|
<i class="fa fa-trash"></i>
|
|
Delete
|
|
</button>
|
|
</div>
|
|
</aside>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'settings'">
|
|
<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($folder)"
|
|
enable-create-new="true"
|
|
is-valid-selection="true"
|
|
label-class="width-7">
|
|
</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>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'annotations'" ng-include="'public/app/features/annotations/partials/editor.html'">
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'templating'" ng-include="'public/app/features/templating/partials/editor.html'">
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'links'" >
|
|
<dash-links-editor dashboard="ctrl.dashboard"></dash-links-editor>
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'versions'" >
|
|
<gf-dashboard-history dashboard="dashboard"></gf-dashboard-history>
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'view_json'" >
|
|
<h3 class="dashboard-settings__header">View JSON</h3>
|
|
|
|
<div class="gf-form">
|
|
<code-editor content="ctrl.json" data-mode="json" data-max-lines=30 ></code-editor>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'permissions'" >
|
|
<dashboard-permissions ng-if="ctrl.dashboard"
|
|
dashboardId="ctrl.dashboard.id"
|
|
backendSrv="ctrl.backendSrv"
|
|
folderTitle="ctrl.dashboard.meta.folderTitle"
|
|
folderSlug="ctrl.dashboard.meta.folderSlug"
|
|
folderId="ctrl.dashboard.meta.folderId"
|
|
/>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'make_editable'">
|
|
<h3 class="dashboard-settings__header">Make Editable</h3>
|
|
|
|
<button class="btn btn-success" ng-click="ctrl.makeEditable()">
|
|
Make Editable
|
|
</button>
|
|
</div>
|
|
|