2014-01-06 20:29:39 +01:00
|
|
|
<div ng-controller="GraphiteImportCtrl" ng-init="init()">
|
2014-01-23 10:35:56 -08:00
|
|
|
<h5>Import dashboards from graphite web</h5>
|
2014-01-06 20:29:39 +01:00
|
|
|
|
|
|
|
|
<div class="editor-row">
|
|
|
|
|
<div class="section">
|
|
|
|
|
<button ng-click="listAll()" class="btn btn-primary">List all dashboards</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-row" style="margin-top: 10px;">
|
|
|
|
|
<table class="table table-condensed table-striped">
|
|
|
|
|
<tr ng-repeat="dash in dashboards">
|
|
|
|
|
<td style="padding-right: 20px;"><button class="btn btn-success" ng-click="import(dash.name)">Import</button>
|
|
|
|
|
<td style="width: 100%; vertical-align: middle;">{{dash.name}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-show="error" style="margin-top: 20px" class="alert alert-error">
|
|
|
|
|
{{error}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|