mirror of https://github.com/grafana/grafana
parent
db663c380b
commit
1b6be031e5
@ -1,96 +1,67 @@ |
|||||||
<div class="tabbed-view-header"> |
<h3 class="page-heading">General</h2> |
||||||
<h2 class="tabbed-view-title"> |
|
||||||
Settings |
|
||||||
</h2> |
|
||||||
|
|
||||||
<ul class="gf-tabs"> |
<div class="gf-form-group"> |
||||||
<li class="gf-tabs-item" ng-repeat="tab in ::['General', 'Links', 'Time picker']"> |
<div class="gf-form"> |
||||||
<a class="gf-tabs-link" ng-click="ctrl.editTab = $index" ng-class="{active: ctrl.editTab === $index}"> |
<label class="gf-form-label width-7">Name</label> |
||||||
{{::tab}} |
<input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.title'></input> |
||||||
</a> |
</div> |
||||||
</li> |
<div class="gf-form"> |
||||||
</ul> |
<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> |
||||||
|
|
||||||
<button class="tabbed-view-close-btn" ng-click="dismiss();"> |
<folder-picker ng-if="!ctrl.dashboard.meta.isFolder" |
||||||
<i class="fa fa-remove"></i> |
initial-title="ctrl.dashboard.meta.folderTitle" |
||||||
</button> |
on-change="ctrl.onFolderChange($folder)" |
||||||
|
label-class="width-7"> |
||||||
|
</folder-picker> |
||||||
</div> |
</div> |
||||||
|
|
||||||
<div class="tabbed-view-body"> |
<div class="section"> |
||||||
<div ng-if="ctrl.editTab == 0"> |
<h5 class="section-heading">Options</h5> |
||||||
|
<div class="gf-form-group"> |
||||||
<div class="gf-form-group section"> |
<div class="gf-form"> |
||||||
<h5 class="section-heading">Details</h5> |
<label class="gf-form-label width-11">Timezone</label> |
||||||
<div class="gf-form"> |
<div class="gf-form-select-wrapper"> |
||||||
<label class="gf-form-label width-7">Name</label> |
<select ng-model="ctrl.dashboard.timezone" class='gf-form-input' ng-options="f.value as f.text for f in [{value: '', text: 'Default'}, {value: 'browser', text: 'Local browser time'},{value: 'utc', text: 'UTC'}]" ng-change="timezoneChanged()"></select> |
||||||
<input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.title'></input> |
|
||||||
</div> |
</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 ng-if="!ctrl.dashboard.meta.isFolder" |
|
||||||
initial-title="ctrl.dashboard.meta.folderTitle" |
|
||||||
on-change="ctrl.onFolderChange($folder)" |
|
||||||
label-class="width-7"> |
|
||||||
</folder-picker> |
|
||||||
</div> |
</div> |
||||||
|
<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-11"> |
||||||
<div class="section"> |
</gf-form-switch> |
||||||
<h5 class="section-heading">Options</h5> |
<gf-form-switch class="gf-form" label="Hide Controls" tooltip="Hide row controls. Shortcut: CTRL+H or CMD+H" checked="ctrl.dashboard.hideControls" label-class="width-11"> |
||||||
<div class="gf-form-group"> |
</gf-form-switch> |
||||||
<div class="gf-form"> |
|
||||||
<label class="gf-form-label width-11">Timezone</label> |
|
||||||
<div class="gf-form-select-wrapper"> |
|
||||||
<select ng-model="ctrl.dashboard.timezone" class='gf-form-input' ng-options="f.value as f.text for f in [{value: '', text: 'Default'}, {value: 'browser', text: 'Local browser time'},{value: 'utc', text: 'UTC'}]" ng-change="timezoneChanged()"></select> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<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-11"> |
|
||||||
</gf-form-switch> |
|
||||||
<gf-form-switch class="gf-form" |
|
||||||
label="Hide Controls" |
|
||||||
tooltip="Hide row controls. Shortcut: CTRL+H or CMD+H" |
|
||||||
checked="ctrl.dashboard.hideControls" |
|
||||||
label-class="width-11"> |
|
||||||
</gf-form-switch> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="section"> |
|
||||||
<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> |
|
||||||
|
|
||||||
<div ng-if="editor.index == 1"> |
|
||||||
<dash-links-editor></dash-links-editor> |
|
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
|
|
||||||
<div ng-if="editor.index == 2"> |
<div class="section"> |
||||||
<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> |
</div> |
||||||
|
|
||||||
|
<!-- <div ng-if="editor.index == 1"> --> |
||||||
|
<!-- <dash-links-editor></dash-links-editor> --> |
||||||
|
<!-- </div> --> |
||||||
|
<!-- --> |
||||||
|
<!-- <div ng-if="editor.index == 2"> --> |
||||||
|
<!-- <gf-time-picker-settings dashboard="ctrl.dashboard"></gf-time-picker-settings> --> |
||||||
|
<!-- </div> --> |
||||||
|
<!-- --> |
||||||
|
<!-- </div> --> |
||||||
|
|||||||
@ -0,0 +1,15 @@ |
|||||||
|
.sidenav { |
||||||
|
display: flex; |
||||||
|
flex-direction: row; |
||||||
|
} |
||||||
|
|
||||||
|
.sidenav__content { |
||||||
|
flex-grow: 1; |
||||||
|
min-width: 0; |
||||||
|
} |
||||||
|
|
||||||
|
.sidenav__aside { |
||||||
|
margin-right: $spacer*2; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in new issue