You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.1 KiB
61 lines
2.1 KiB
<div class="gf-form-group"> |
|
<div class="gf-form"> |
|
<label class="gf-form-label">Select Hastic datasource</label> |
|
<select class="gf-form-input width-15" |
|
ng-model="ctrl.panel.hasticDatasource" |
|
ng-options="ds.id as ds.name for ds in ctrl.hasticDatasources" |
|
ng-change="ctrl.onHasticDatasourceChange()" |
|
/> |
|
</div> |
|
</div> |
|
|
|
<div> |
|
<div class="gf-form-button-row" ng-if="ctrl.analyticsController.serverStatus === false"> |
|
<h5>Hastic server at "{{ctrl.hasticDatasource.url}}" is not available</h5> |
|
<button class="btn btn-inverse" ng-click="ctrl.onHasticDatasourceChange()"> |
|
<i class="fa fa-plug"></i> |
|
Reconnect to Hastic server |
|
</button> |
|
</div> |
|
|
|
<div ng-if="ctrl.analyticsController.serverStatus === true && !ctrl.analyticsController.loading"> |
|
<ng-include src="ctrl.getTemplatePath('analytic_units')"> |
|
</ng-include> |
|
|
|
<ng-include |
|
ng-if="ctrl.analyticsController.creatingNew" |
|
src="ctrl.getTemplatePath('new_analytic_unit')" |
|
> |
|
</ng-include> |
|
|
|
<div class="gf-form-button-row"> |
|
<button |
|
class="btn btn-secondary width-12" |
|
ng-click="ctrl.createNew()" |
|
ng-disabled="ctrl.analyticsController.creatingNew" |
|
> |
|
<i class="fa fa-plus"></i> |
|
Add Analytic Unit |
|
</button> |
|
</div> |
|
<div class="gf-form-button-row" ng-if="ctrl.analyticsController.analyticUnits.length > 0"> |
|
<button class="gf-form-label width-12 pointer" ng-click="ctrl.redetectAll()"> |
|
Re-detect all analytic units |
|
</button> |
|
</div> |
|
<div class="gf-form-button-row"> |
|
<button class="gf-form-label width-12 pointer" ng-click="ctrl.showHelp = !ctrl.showHelp"> |
|
Show Help |
|
<i class="fa fa-caret-down" ng-show="ctrl.showHelp"></i> |
|
<i class="fa fa-caret-right" ng-hide="ctrl.showHelp"></i> |
|
</button> |
|
</div> |
|
|
|
<div class="gf-form" ng-show="ctrl.showHelp" ng-bind-html="ctrl.analyticsController.helpSectionText"></div> |
|
</div> |
|
|
|
<div ng-if="ctrl.analyticsController.serverStatus === true && ctrl.analyticsController.loading"> |
|
<i class="fa fa-spinner fa-spin" /> Fetching analytic units... |
|
</div> |
|
</div> |
|
|
|
|