export_modal.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!-- <p> -->
  2. <!-- Exporting will export a cleaned sharable dashboard that can be imported -->
  3. <!-- into another Grafana instance. -->
  4. <!-- </p> -->
  5. <div class="share-modal-header">
  6. <div class="share-modal-big-icon">
  7. <i class="fa fa-cloud-upload"></i>
  8. </div>
  9. <div>
  10. <p class="share-modal-info-text">
  11. Export the dashboard to a JSON file. The exporter will templatize the
  12. dashboard's data sources to make it easy for others to import and reuse.
  13. You can share dashboards on <a class="external-link" href="https://grafana.com">Grafana.com</a>
  14. </p>
  15. <gf-form-switch
  16. class="gf-form"
  17. label="Export for sharing externally"
  18. label-class="width-16"
  19. checked="ctrl.shareExternally"
  20. tooltip="Useful for sharing dashboard publicly on grafana.com. Will templatize data source names. Can then only be used with the specific dashboard import API.">
  21. </gf-form-switch>
  22. <div class="gf-form-button-row">
  23. <button type="button" class="btn gf-form-btn width-10 btn-success" ng-click="ctrl.saveDashboardAsFile()">
  24. <i class="fa fa-save"></i> Save to file
  25. </button>
  26. <button type="button" class="btn gf-form-btn width-10 btn-secondary" ng-click="ctrl.viewJson()">
  27. <i class="fa fa-file-text-o"></i> View JSON
  28. </button>
  29. <a class="btn btn-link" ng-click="ctrl.dismiss()">Cancel</a>
  30. </div>
  31. </div>
  32. </div>