settings.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <aside class="dashboard-settings__aside">
  2. <h2 class="dashboard-settings__aside-header">
  3. <i class="fa fa-cog"></i>
  4. Settings
  5. </h2>
  6. <a href="{{::section.url}}" class="dashboard-settings__nav-item" ng-class="{active: ctrl.viewId === section.id}" ng-repeat="section in ctrl.sections">
  7. <i class="{{::section.icon}}"></i>
  8. {{::section.title}}
  9. </a>
  10. <div class="dashboard-settings__aside-actions">
  11. <button class="btn btn-inverse" ng-click="ctrl.openSaveAsModal()" ng-show="ctrl.canSaveAs">
  12. <i class="fa fa-copy"></i>
  13. Save As...
  14. </button>
  15. <button class="btn btn-danger" ng-click="ctrl.deleteDashboard()" ng-show="ctrl.canDelete">
  16. <i class="fa fa-trash"></i>
  17. Delete
  18. </button>
  19. </div>
  20. </aside>
  21. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'settings'">
  22. <h3 class="dashboard-settings__header">
  23. General
  24. </h3>
  25. <div class="gf-form-group">
  26. <div class="gf-form">
  27. <label class="gf-form-label width-7">Name</label>
  28. <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.title'></input>
  29. </div>
  30. <div class="gf-form">
  31. <label class="gf-form-label width-7">Description</label>
  32. <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.description'></input>
  33. </div>
  34. <div class="gf-form">
  35. <label class="gf-form-label width-7">
  36. Tags
  37. <info-popover mode="right-normal">Press enter to add a tag</info-popover>
  38. </label>
  39. <bootstrap-tagsinput ng-model="ctrl.dashboard.tags" tagclass="label label-tag" placeholder="add tags">
  40. </bootstrap-tagsinput>
  41. </div>
  42. <folder-picker initial-title="ctrl.dashboard.meta.folderTitle"
  43. initial-folder-id="ctrl.dashboard.folderId"
  44. on-change="ctrl.onFolderChange($folder)"
  45. label-class="width-7">
  46. </folder-picker>
  47. <gf-form-switch class="gf-form" label="Editable" tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable" label-class="width-7">
  48. </gf-form-switch>
  49. </div>
  50. <gf-time-picker-settings dashboard="ctrl.dashboard"></gf-time-picker-settings>
  51. <h5 class="section-heading">Panel Options</h5>
  52. <div class="gf-form">
  53. <label class="gf-form-label width-11">
  54. Graph Tooltip
  55. <info-popover mode="right-normal">
  56. Cycle between options using Shortcut: CTRL+O or CMD+O
  57. </info-popover>
  58. </label>
  59. <div class="gf-form-select-wrapper">
  60. <select ng-model="ctrl.dashboard.graphTooltip" class='gf-form-input' ng-options="f.value as f.text for f in [{value: 0, text: 'Default'}, {value: 1, text: 'Shared crosshair'},{value: 2, text: 'Shared Tooltip'}]"></select>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'annotations'" ng-include="'public/app/features/annotations/partials/editor.html'">
  65. </div>
  66. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'templating'" ng-include="'public/app/features/templating/partials/editor.html'">
  67. </div>
  68. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'links'" >
  69. <dash-links-editor dashboard="ctrl.dashboard"></dash-links-editor>
  70. </div>
  71. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'versions'" >
  72. <gf-dashboard-history dashboard="dashboard"></gf-dashboard-history>
  73. </div>
  74. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'view_json'" >
  75. <h3 class="dashboard-settings__header">View JSON</h3>
  76. <div class="gf-form">
  77. <textarea class="gf-form-input" ng-model="ctrl.json" rows="30" spellcheck="false"></textarea>
  78. </div>
  79. </div>
  80. <div class="dashboard-settings__content" ng-if="ctrl.viewId === '404'">
  81. <h3 class="dashboard-settings__header">Settings view not found</h3>
  82. <div>
  83. <h5>The settings page could not be found or you do not have permission to access it</h5>
  84. </div>
  85. </div>
  86. <div class="dashboard-settings__content" ng-if="ctrl.viewId === 'make_editable'">
  87. <h3 class="dashboard-settings__header">Make Editable</h3>
  88. <button class="btn btn-success" ng-click="ctrl.makeEditable()">
  89. Make Editable
  90. </button>
  91. </div>