import.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <navbar title="Import" title-url="import/dashboard" icon="fa fa-download">
  2. </navbar>
  3. <div class="page-container">
  4. <div class="page">
  5. <h2>
  6. Import file
  7. <em style="font-size: 14px;padding-left: 10px;"> <i class="fa fa-info-circle"></i> Load dashboard from local .json file</em>
  8. </h2>
  9. <div class="editor-row">
  10. <div class="section">
  11. <div class="editor-option">
  12. <form>
  13. <input type="file" id="dashupload" dash-upload/><br>
  14. </form>
  15. </div>
  16. </div>
  17. </div>
  18. <h2>
  19. Migrate dashboards
  20. <em style="font-size: 14px;padding-left: 10px;"><i class="fa fa-info-circle"></i> Import dashboards from Elasticsearch or InfluxDB</em>
  21. </h2>
  22. <div class="tight-form last">
  23. <ul class="tight-form-list">
  24. <li class="tight-form-item" style="width: 150px">
  25. <strong>Dashboard source</strong>
  26. </li>
  27. <li>
  28. <select type="text" ng-model="sourceName" class="input-medium tight-form-input" ng-options="f for f in datasources">
  29. </select>
  30. </li>
  31. <li style="float: right">
  32. <button class="btn btn-success tight-form-btn" ng-click="startImport()">Import</button>
  33. </li>
  34. <div class="clearfix"></div>
  35. </ul>
  36. </div>
  37. <div class="editor-row" ng-if="importing">
  38. <section class="section">
  39. <h5>{{infoText}}</h5>
  40. <div class="editor-row row">
  41. <table class="grafana-options-table span5">
  42. <tr ng-repeat="dash in imported">
  43. <td>{{dash.name}}</td>
  44. <td>
  45. {{dash.info}}
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. </section>
  51. </div>
  52. <div ng-include="'public/app/features/dashboard/partials/graphiteImport.html'"></div>
  53. </div>
  54. </div>