2015-08-15 21:49:30 +02:00
|
|
|
<div class="editor-row">
|
2014-03-02 10:41:16 +01:00
|
|
|
|
2015-08-15 23:11:37 +02:00
|
|
|
<div class="tight-form-container">
|
|
|
|
|
<query-editor-loader ng-repeat="target in panel.targets">
|
|
|
|
|
</query-editor-loader>
|
|
|
|
|
</div>
|
2015-08-15 21:49:30 +02:00
|
|
|
|
2015-08-15 23:11:37 +02:00
|
|
|
<div style="margin: 20px 0 0 0">
|
2015-08-16 01:34:09 +02:00
|
|
|
<button class="btn btn-inverse" ng-click="addDataQuery(panel.target)" ng-if="datasource.meta.type !== 'mixed'">
|
2015-08-15 23:11:37 +02:00
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
Query
|
|
|
|
|
</button>
|
|
|
|
|
|
2015-08-16 01:34:09 +02:00
|
|
|
<span class="dropdown" ng-if="datasource.meta.type === 'mixed'">
|
2015-08-15 23:11:37 +02:00
|
|
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
Query
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li ng-repeat="datasource in datasources" role="menuitem">
|
2015-08-16 20:52:30 +02:00
|
|
|
<a ng-click="addDataQuery(datasource.name);">{{datasource.name}}</a>
|
2015-08-15 23:11:37 +02:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-08-16 20:52:30 +02:00
|
|
|
<datasource-editor-view datasource="panel.datasource" name="metric-query-options"></datasource-editor-view>
|
2015-08-15 21:49:30 +02:00
|
|
|
</div>
|
2014-03-02 10:41:16 +01:00
|
|
|
|
2014-07-02 15:50:57 +02:00
|
|
|
<div class="editor-row" style="margin-top: 30px">
|
2014-03-02 10:41:16 +01:00
|
|
|
|
2015-08-15 23:11:37 +02:00
|
|
|
<div class="pull-right dropdown" style="margin-right: 10px;">
|
2015-02-28 08:25:13 +01:00
|
|
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" bs-tooltip="'Datasource'">
|
|
|
|
|
<i class="fa fa-database"></i>
|
|
|
|
|
{{datasource.name}} <span class="caret"></span>
|
|
|
|
|
</button>
|
2014-03-02 10:41:16 +01:00
|
|
|
|
2015-08-15 23:11:37 +02:00
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li ng-repeat="datasource in datasources" role="menuitem">
|
|
|
|
|
<a ng-click="setDatasource(datasource.value);">{{datasource.name}}</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2014-03-02 10:41:16 +01:00
|
|
|
|
2014-10-03 07:31:27 +02:00
|
|
|
<div class="clearfix"></div>
|
2014-03-02 10:41:16 +01:00
|
|
|
</div>
|