settings.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <div class="tabbed-view-header">
  2. <h2 class="tabbed-view-title">
  3. Settings
  4. </h2>
  5. <ul class="gf-tabs">
  6. <li class="gf-tabs-item" ng-repeat="tab in ::['General', 'Rows', 'Links', 'Time picker', 'Metadata', 'Permissions']">
  7. <a class="gf-tabs-link" ng-click="editor.index = $index" ng-class="{active: editor.index === $index}">
  8. {{::tab}}
  9. </a>
  10. </li>
  11. </ul>
  12. <button class="tabbed-view-close-btn" ng-click="dismiss();">
  13. <i class="fa fa-remove"></i>
  14. </button>
  15. </div>
  16. <div class="tabbed-view-body">
  17. <div ng-if="editor.index == 0">
  18. <div class="gf-form-group section">
  19. <h5 class="section-heading">Details</h5>
  20. <div class="gf-form">
  21. <label class="gf-form-label width-7">Name</label>
  22. <input type="text" class="gf-form-input width-30" ng-model='dashboard.title'></input>
  23. </div>
  24. <div class="gf-form">
  25. <label class="gf-form-label width-7">Description</label>
  26. <input type="text" class="gf-form-input width-30" ng-model='dashboard.description'></input>
  27. </div>
  28. <div class="gf-form">
  29. <label class="gf-form-label width-7">
  30. Tags
  31. <info-popover mode="right-normal">Press enter to add a tag</info-popover>
  32. </label>
  33. <bootstrap-tagsinput ng-model="dashboard.tags" tagclass="label label-tag" placeholder="add tags">
  34. </bootstrap-tagsinput>
  35. </div>
  36. <div class="gf-form">
  37. <label class="gf-form-label width-7">Timezone</label>
  38. <div class="gf-form-select-wrapper">
  39. <select ng-model="dashboard.timezone" class='gf-form-input' ng-options="f.value as f.text for f in [{value: '', text: 'Default'}, {value: 'browser', text: 'Local browser time'},{value: 'utc', text: 'UTC'}]" ng-change="timezoneChanged()"></select>
  40. </div>
  41. </div>
  42. <folder-picker ng-if="!dashboardMeta.isFolder" selected-folder="dashboard.meta.parentId" on-change="onFolderChange"></folder-picker>
  43. </div>
  44. <div class="section">
  45. <h5 class="section-heading">Toggles</h5>
  46. <div class="gf-form-group">
  47. <gf-form-switch class="gf-form"
  48. label="Editable"
  49. tooltip="Uncheck, then save and reload to disable all dashboard editing"
  50. checked="dashboard.editable"
  51. label-class="width-11">
  52. </gf-form-switch>
  53. <gf-form-switch class="gf-form"
  54. label="Hide Controls"
  55. tooltip="Hide row controls. Shortcut: CTRL+H or CMD+H"
  56. checked="dashboard.hideControls"
  57. label-class="width-11">
  58. </gf-form-switch>
  59. </div>
  60. </div>
  61. <div class="section">
  62. <h5 class="section-heading">Panel Options</h5>
  63. <div class="gf-form">
  64. <label class="gf-form-label width-11">
  65. Graph Tooltip
  66. <info-popover mode="right-normal">
  67. Cycle between options using Shortcut: CTRL+O or CMD+O
  68. </info-popover>
  69. </label>
  70. <div class="gf-form-select-wrapper">
  71. <select ng-model="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>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div ng-if="editor.index == 1">
  77. <h5 class="section-heading">Rows settings</h5>
  78. <div class="gf-form-group">
  79. <div class="gf-form-inline" ng-repeat="row in dashboard.rows">
  80. <div class="gf-form">
  81. <span class="gf-form-label">Title</span>
  82. <input type="text" class="gf-form-input max-width-14" ng-model='row.title'></input>
  83. </div>
  84. <gf-form-switch class="gf-form" label="Show title" checked="row.showTitle" switch-class="max-width-6"></gf-form-switch>
  85. <div class="gf-form">
  86. <button class="btn btn-inverse gf-form-btn" ng-click="_.move(dashboard.rows,$index,$index-1)">
  87. <i ng-class="{'invisible': $first}" class="fa fa-arrow-up"></i>
  88. </button>
  89. <button class="btn btn-inverse gf-from-btn" ng-click="_.move(dashboard.rows,$index,$index+1)">
  90. <i ng-class="{'invisible': $last}" class="fa fa-arrow-down"></i>
  91. </button>
  92. <button class="btn btn-inverse gf-form-btn" ng-click="dashboard.rows = _.without(dashboard.rows,row)">
  93. <i class="fa fa-trash"></i>
  94. </button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div ng-if="editor.index == 2">
  100. <dash-links-editor></dash-links-editor>
  101. </div>
  102. <div ng-if="editor.index == 3">
  103. <gf-time-picker-settings dashboard="dashboard"></gf-time-picker-settings>
  104. </div>
  105. <div ng-if="editor.index == 4">
  106. <h5 class="section-heading">Dashboard info</h5>
  107. <div class="gf-form-group">
  108. <div class="gf-form">
  109. <span class="gf-form-label width-10">Last updated at:</span>
  110. <span class="gf-form-label width-18">{{dashboard.formatDate(dashboardMeta.updated)}}</span>
  111. </div>
  112. <div class="gf-form">
  113. <span class="gf-form-label width-10">Last updated by:</span>
  114. <span class="gf-form-label width-18">{{dashboardMeta.updatedBy}}&nbsp;</span>
  115. </div>
  116. <div class="gf-form">
  117. <span class="gf-form-label width-10">Created at:</span>
  118. <span class="gf-form-label width-18">{{dashboard.formatDate(dashboardMeta.created)}}&nbsp;</span>
  119. </div>
  120. <div class="gf-form">
  121. <span class="gf-form-label width-10">Created by:</span>
  122. <span class="gf-form-label width-18">{{dashboardMeta.createdBy}}&nbsp;</span>
  123. </div>
  124. <div class="gf-form">
  125. <span class="gf-form-label width-10">Current version:</span>
  126. <span class="gf-form-label width-18">{{dashboardMeta.version}}&nbsp;</span>
  127. </div>
  128. </div>
  129. </div>
  130. <div ng-if="editor.index == 5">
  131. <acl-settings dashboard="dashboard"></acl-settings>
  132. </div>
  133. </div>