settings.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <div class="gf-box-header">
  2. <div class="gf-box-title">
  3. <i class="fa fa-cogs"></i>
  4. Settings
  5. </div>
  6. <div ng-model="editor.index" bs-tabs style="text-transform:capitalize;">
  7. <div ng-repeat="tab in ['General', 'Rows', 'Links']" data-title="{{tab}}">
  8. </div>
  9. <div ng-repeat="tab in dashboard.nav" data-title="{{tab.type}}">
  10. </div>
  11. </div>
  12. <button class="gf-box-header-close-btn" ng-click="dismiss();">
  13. <i class="fa fa-remove"></i>
  14. </button>
  15. </div>
  16. <div class="gf-box-body" style="padding-bottom: 50px;">
  17. <div ng-if="editor.index == 0">
  18. <div class="editor-row">
  19. <div class="tight-form-section">
  20. <h5>Dashboard info</h5>
  21. <div class="tight-form">
  22. <ul class="tight-form-list">
  23. <li class="tight-form-item" style="width: 90px">
  24. Title
  25. </li>
  26. <li>
  27. <input type="text" class="input-xlarge tight-form-input" ng-model='dashboard.title'></input>
  28. </li>
  29. <li class="tight-form-item">
  30. Tags
  31. <tip>Press enter to a add tag</tip>
  32. </li>
  33. <li>
  34. <bootstrap-tagsinput ng-model="dashboard.tags" tagclass="label label-tag" placeholder="add tags">
  35. </bootstrap-tagsinput>
  36. </li>
  37. </ul>
  38. <div class="clearfix"></div>
  39. </div>
  40. <div class="tight-form">
  41. <ul class="tight-form-list">
  42. <li class="tight-form-item" style="width: 90px">
  43. Timezone
  44. </li>
  45. <li>
  46. <select ng-model="dashboard.timezone" class='input-small tight-form-input' ng-options="f for f in ['browser','utc']"></select>
  47. </li>
  48. </ul>
  49. <div class="clearfix"></div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="editor-row">
  54. <div class="tight-form-section">
  55. <h5>Toggles</h5>
  56. <div class="tight-form">
  57. <ul class="tight-form-list">
  58. <li class="tight-form-item">
  59. <editor-checkbox text="Editable" model="dashboard.editable"></editor-checkbox>
  60. </li>
  61. <li class="tight-form-item">
  62. <editor-checkbox text="Hide Controls (CTRL+H)" model="dashboard.hideControls"></editor-checkbox>
  63. </li>
  64. <li class="tight-form-item">
  65. <editor-checkbox text="Shared Crosshair (CTRL+O)" model="dashboard.sharedCrosshair"></editor-checkbox>
  66. </li>
  67. </ul>
  68. <div class="clearfix"></div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div ng-if="editor.index == 1">
  74. <div class="editor-row">
  75. <div class="tight-form-section">
  76. <h5>Rows settings</h5>
  77. <div class="tight-form" ng-repeat="row in dashboard.rows">
  78. <ul class="tight-form-list">
  79. <li class="tight-form-item">
  80. Title
  81. </li>
  82. <li>
  83. <input type="text" class="input tight-form-input" style="width: 400px;" ng-model='row.title'></input>
  84. </li>
  85. <li class="tight-form-item">
  86. <editor-checkbox text="Show title" model="row.showTitle"></editor-checkbox>
  87. </li>
  88. <li class="tight-form-item last">
  89. <i ng-click="_.move(dashboard.rows,$index,$index-1)" ng-class="{'invisible': $first}" class="pointer fa fa-arrow-up"></i>
  90. </li>
  91. <li class="tight-form-item last">
  92. <i ng-click="_.move(dashboard.rows,$index,$index+1)" ng-class="{'invisible': $last}" class="pointer fa fa-fw fa-arrow-down"></i>
  93. </li>
  94. <li class="tight-form-item last">
  95. <i ng-click="dashboard.rows = _.without(dashboard.rows,row)" class="pointer fa fa-remove"></i>
  96. </li>
  97. </ul>
  98. <div class="clearfix"></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div ng-if="editor.index == 2">
  104. <dash-links-editor></dash-links-editor>
  105. </div>
  106. <div ng-repeat="pulldown in dashboard.nav" ng-controller="SubmenuCtrl" ng-show="editor.index == 3+$index">
  107. <ng-include ng-show="pulldown.enable" src="pulldownEditorPath(pulldown.type)"></ng-include>
  108. <button ng-hide="pulldown.enable" class="btn" ng-click="pulldown.enable = true">Enable the {{pulldown.type}}</button>
  109. </div>
  110. </div>
  111. <div class="clearfix"></div>
  112. </div>
  113. <div class="gf-box-footer">
  114. <div class="grafana-version-info" ng-show="editor.index === 0">
  115. <span class="editor-option small">
  116. Grafana version: {{contextSrv.version}} &nbsp;&nbsp;
  117. </span>
  118. <span grafana-version-check>
  119. </span>
  120. </div>
  121. </div>