mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
<div class="editor-row">
|
|
|
|
<div class="tight-form-container">
|
|
<metrics-query-editor ng-repeat="target in ctrl.panel.targets" ng-class="{'tight-form-disabled': target.hide}" >
|
|
</metrics-query-editor>
|
|
</div>
|
|
|
|
<div style="margin: 20px 0 0 0">
|
|
<button class="btn btn-inverse" ng-click="ctrl.addDataQuery()" ng-hide="ctrl.datasource.meta.mixed">
|
|
<i class="fa fa-plus"></i>
|
|
Query
|
|
</button>
|
|
|
|
<div class="dropdown" ng-if="ctrl.datasource.meta.mixed">
|
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-plus"></i>
|
|
Query <span class="caret"></span>
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li ng-repeat="datasource in ctrl.datasources" role="menuitem" ng-hide="datasource.meta.builtIn">
|
|
<a ng-click="ctrl.addDataQuery(datasource);">{{datasource.name}}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<metrics-query-options></metrics-query-options>
|
|
</div>
|
|
|
|
<div class="editor-row" style="margin-top: 30px">
|
|
|
|
<div class="pull-right dropdown" style="margin-right: 10px;">
|
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" bs-tooltip="'Datasource'">
|
|
<i class="fa fa-database"></i>
|
|
{{ctrl.datasource.name}} <span class="caret"></span>
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li ng-repeat="datasource in ctrl.datasources" role="menuitem">
|
|
<a ng-click="ctrl.setDatasource(datasource);">{{datasource.name}}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
</div>
|