editor.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <div class="editor-row">
  2. <div class="section tight-form-container" style="margin-bottom: 20px">
  3. <div class="tight-form">
  4. <ul class="tight-form-list">
  5. <li class="tight-form-item" style="width: 80px">
  6. <strong>Big value</strong>
  7. </li>
  8. <li class="tight-form-item">
  9. Prefix
  10. </li>
  11. <li>
  12. <input type="text" class="input-small tight-form-input"
  13. ng-model="ctrl.panel.prefix" ng-change="ctrl.render()" ng-model-onblur>
  14. </li>
  15. <li class="tight-form-item">
  16. Value
  17. </li>
  18. <li>
  19. <select class="input-small tight-form-input"
  20. ng-model="ctrl.panel.valueName"
  21. ng-options="f for f in ctrl.valueNameOptions"
  22. ng-change="ctrl.render()"></select>
  23. </li>
  24. <li class="tight-form-item">
  25. Postfix
  26. </li>
  27. <li>
  28. <input type="text" class="input-small tight-form-input last"
  29. ng-model="ctrl.panel.postfix" ng-change="ctrl.render()" ng-model-onblur>
  30. </li>
  31. </ul>
  32. <div class="clearfix"></div>
  33. </div>
  34. <div class="tight-form">
  35. <ul class="tight-form-list">
  36. <li class="tight-form-item" style="width: 80px">
  37. <strong>Font size</strong>
  38. </li>
  39. <li class="tight-form-item">
  40. Prefix
  41. </li>
  42. <li>
  43. <select class="input-small tight-form-input" ng-model="ctrl.panel.prefixFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
  44. </li>
  45. <li class="tight-form-item">
  46. Value
  47. </li>
  48. <li>
  49. <select class="input-small tight-form-input" ng-model="ctrl.panel.valueFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
  50. </li>
  51. <li class="tight-form-item">
  52. Postfix
  53. </li>
  54. <li>
  55. <select class="input-small tight-form-input last" ng-model="ctrl.panel.postfixFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
  56. </li>
  57. </ul>
  58. <div class="clearfix"></div>
  59. </div>
  60. <div class="tight-form">
  61. <ul class="tight-form-list">
  62. <li class="tight-form-item" style="width: 80px">
  63. <strong>Unit</strong>
  64. </li>
  65. <li class="dropdown" style="width: 266px;"
  66. ng-model="ctrl.panel.format"
  67. dropdown-typeahead="ctrl.unitFormats"
  68. dropdown-typeahead-on-select="ctrl.setUnitFormat($subItem)">
  69. </li>
  70. <li class="tight-form-item">Decimals</li>
  71. <li>
  72. <input type="number" class="input-small tight-form-input last" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right"
  73. ng-model="ctrl.panel.decimals" ng-change="ctrl.refresh()" ng-model-onblur>
  74. </li>
  75. </ul>
  76. <div class="clearfix"></div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="editor-row">
  81. <div class="section" style="margin-bottom: 20px">
  82. <div class="tight-form last">
  83. <ul class="tight-form-list">
  84. <li class="tight-form-item" style="width: 80px">
  85. <strong>Coloring</strong>
  86. </li>
  87. <li class="tight-form-item">
  88. Background&nbsp;
  89. <input class="cr1" id="ctrl.panel.colorBackground" type="checkbox"
  90. ng-model="ctrl.panel.colorBackground" ng-checked="ctrl.panel.colorBackground" ng-change="ctrl.render()">
  91. <label for="ctrl.panel.colorBackground" class="cr1"></label>
  92. </li>
  93. <li class="tight-form-item">
  94. Value&nbsp;
  95. <input class="cr1" id="ctrl.panel.colorValue" type="checkbox"
  96. ng-model="ctrl.panel.colorValue" ng-checked="ctrl.panel.colorValue" ng-change="ctrl.render()">
  97. <label for="ctrl.panel.colorValue" class="cr1"></label>
  98. </li>
  99. <li class="tight-form-item">
  100. Thresholds<tip>Define two threshold values&lt;br /&gt; 50,80 will produce: &lt;50 = Green, 50:80 = Yellow, &gt;80 = Red</tip>
  101. </li>
  102. <li>
  103. <input type="text" class="input-large tight-form-input" ng-model="ctrl.panel.thresholds" ng-blur="ctrl.render()" placeholder="50,80"></input>
  104. </li>
  105. <li class="tight-form-item">
  106. Colors
  107. </li>
  108. <li class="tight-form-item">
  109. <spectrum-picker ng-model="ctrl.panel.colors[0]" ng-change="ctrl.render()" ></spectrum-picker>
  110. <spectrum-picker ng-model="ctrl.panel.colors[1]" ng-change="ctrl.render()" ></spectrum-picker>
  111. <spectrum-picker ng-model="ctrl.panel.colors[2]" ng-change="ctrl.render()" ></spectrum-picker>
  112. </li>
  113. <li class="tight-form-item last">
  114. <a class="pointer" ng-click="ctrl.invertColorOrder()">invert order</a>
  115. </li>
  116. </ul>
  117. <div class="clearfix"></div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="editor-row">
  122. <div class="section" style="margin-bottom: 20px">
  123. <div class="tight-form last">
  124. <ul class="tight-form-list">
  125. <li class="tight-form-item" style="width: 80px">
  126. <strong>Spark lines</strong>
  127. </li>
  128. <li class="tight-form-item">
  129. Show&nbsp;
  130. <input class="cr1" id="ctrl.panel.sparkline.show" type="checkbox"
  131. ng-model="ctrl.panel.sparkline.show" ng-checked="ctrl.panel.sparkline.show" ng-change="ctrl.render()">
  132. <label for="ctrl.panel.sparkline.show" class="cr1"></label>
  133. </li>
  134. <li class="tight-form-item">
  135. Background mode&nbsp;
  136. <input class="cr1" id="ctrl.panel.sparkline.full" type="checkbox"
  137. ng-model="ctrl.panel.sparkline.full" ng-checked="ctrl.panel.sparkline.full" ng-change="ctrl.render()">
  138. <label for="ctrl.panel.sparkline.full" class="cr1"></label>
  139. </li>
  140. <li class="tight-form-item">
  141. Line Color
  142. </li>
  143. <li class="tight-form-item">
  144. <spectrum-picker ng-model="ctrl.panel.sparkline.lineColor" ng-change="ctrl.render()" ></spectrum-picker>
  145. </li>
  146. <li class="tight-form-item">
  147. Fill Color
  148. </li>
  149. <li class="tight-form-item last">
  150. <spectrum-picker ng-model="ctrl.panel.sparkline.fillColor" ng-change="ctrl.render()" ></spectrum-picker>
  151. </li>
  152. </ul>
  153. <div class="clearfix"></div>
  154. </div>
  155. </div>
  156. </div>
  157. <div class="editor-row">
  158. <div class="section" style="margin-bottom: 20px">
  159. <div class="tight-form">
  160. <ul class="tight-form-list">
  161. <li class="tight-form-item" style="width: 80px">
  162. <strong>Gauge</strong>
  163. </li>
  164. <li class="tight-form-item">
  165. Show&nbsp;
  166. <input class="cr1" id="panel.gauge.show" type="checkbox"
  167. ng-model="ctrl.panel.gauge.show" ng-checked="ctrl.panel.gauge.show" ng-change="ctrl.render()">
  168. <label for="panel.gauge.show" class="cr1"></label>
  169. </li>
  170. <li class="tight-form-item">
  171. Min
  172. </li>
  173. <li>
  174. <input type="number" class="input-small tight-form-input" ng-model="ctrl.panel.gauge.minValue" ng-blur="ctrl.render()" placeholder="0"></input>
  175. </li>
  176. <li class="tight-form-item last">
  177. Max
  178. </li>
  179. <li>
  180. <input type="number" class="input-small tight-form-input last" ng-model="ctrl.panel.gauge.maxValue" ng-blur="ctrl.render()" placeholder="100"></input>
  181. <span class="alert-state-critical" ng-show="ctrl.invalidGaugeRange">
  182. &nbsp;
  183. <i class="fa fa-warning"></i>
  184. Min value is bigger than max.
  185. </span>
  186. </li>
  187. </ul>
  188. <div class="clearfix"></div>
  189. </div>
  190. <div class="tight-form last">
  191. <li class="tight-form-item">
  192. Threshold labels&nbsp;
  193. <input class="cr1" id="panel.gauge.thresholdLabels" type="checkbox" ng-model="ctrl.panel.gauge.thresholdLabels" ng-checked="ctrl.panel.gauge.thresholdLabels" ng-change="ctrl.render()">
  194. <label for="panel.gauge.thresholdLabels" class="cr1"></label>
  195. </li>
  196. <li class="tight-form-item">
  197. Threshold markers&nbsp;
  198. <input class="cr1" id="panel.gauge.thresholdMarkers" type="checkbox" ng-model="ctrl.panel.gauge.thresholdMarkers" ng-checked="ctrl.panel.gauge.thresholdMarkers" ng-change="ctrl.render()">
  199. <label for="panel.gauge.thresholdMarkers" class="cr1"></label>
  200. </li>
  201. <div class="clearfix"></div>
  202. </div>
  203. </div>
  204. </div>