mirror of https://github.com/grafana/grafana
commit
f57dae2a5b
File diff suppressed because one or more lines are too long
@ -1,18 +1,22 @@ |
||||
<div class="modal-header"> |
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
||||
<h3>{{panel.title}} Editor</h3> |
||||
</div> |
||||
<div class="modal-body"> |
||||
|
||||
<h4>General <small> panel settings</small></h4> |
||||
<div ng-include src="'partials/panelgeneral.html'"></div> |
||||
<div class="modal-body" > |
||||
<div class="pull-right editor-title">{{panel.type}} settings</div> |
||||
|
||||
<div ng-model="editor.index" bs-tabs> |
||||
<div ng-repeat="tab in ['General','Panel']" data-title="{{tab}}"> |
||||
</div> |
||||
</div> |
||||
<div ng-show="editor.index == 0"> |
||||
<h4>{{panel.title}} General <small> panel settings</small></h4> |
||||
<div ng-include src="'partials/panelgeneral.html'"></div> |
||||
</div> |
||||
|
||||
<div ng-show="editor.index == 1"> |
||||
<h4 style="text-transform: capitalize;">{{panel.type}} <small> panel settings. <strong ng-show="!_.isUndefined(panel.status)">({{panel.status}})</strong></small></h4> |
||||
<div ng-include src="edit_path(panel.type)">No additional settings are available for this type of panel.</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
<div class="modal-footer"> |
||||
<!-- close_edit() is provided here to allow for a scope to perform action on dismiss --> |
||||
<button type="button" class="btn btn-success" ng-click="close_edit();dismiss()">Close</button> |
||||
<button type="button" class="btn btn-success" ng-click="editor.index=0;close_edit();dismiss()">Close</button> |
||||
</div> |
@ -0,0 +1,14 @@ |
||||
<style> |
||||
.querySelect .query { |
||||
margin-right: 5px; |
||||
} |
||||
</style> |
||||
<h4>Queries</h4> |
||||
<div class="span2" style="margin-left:0px"> |
||||
<select class="input-small" ng-change="set_refresh(true);" ng-model="panel.queries.mode" ng-options="f for f in ['all','pinned','selected']"></select> |
||||
</div> |
||||
<div class="span9 querySelect" ng-show="panel.queries.mode == 'selected'"> |
||||
<span ng-repeat="id in querySrv.ids" class="query badge"> |
||||
<i ng-click="panel.queries.ids = _.toggleInOut(panel.queries.ids,id);set_refresh(true);" ng-class="{'icon-check': _.contains(panel.queries.ids,id),'icon-check-empty': !_.contains(panel.queries.ids,id)}"></i> <i class="icon-circle" ng-style="{color: querySrv.list[id].color}"></i><span> {{querySrv.list[id].alias || querySrv.list[id].query}}</span> |
||||
</span> |
||||
</div> |
Loading…
Reference in new issue