editor.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <div class="row-fluid">
  2. <div class="span4">
  3. <form class="input-append">
  4. <h6>Add field</h6>
  5. <input bs-typeahead="fields.list" type="text" class="input-small" ng-model='newfield'>
  6. <button class="btn" ng-click="toggle_field(newfield);newfield=''"><i class="icon-plus"></i></button>
  7. </form>
  8. </div>
  9. <div class="span8">
  10. <h6>Columns <small>Click to remove</small></h6>
  11. <span style="margin-left:3px" ng-click="toggle_field(field)" ng-repeat="field in $parent.panel.fields" class="label remove pointer">{{field}} </span>
  12. </div>
  13. </div>
  14. <div class="row-fluid">
  15. <div class="span4">
  16. <form class="input-append">
  17. <h6>Add field</h6>
  18. <input bs-typeahead="fields.list" type="text" class="input-small" ng-model='newhighlight' ng-change="set_refresh(true)">
  19. <button class="btn" ng-click="toggle_highlight(newhighlight);newhighlight=''"><i class="icon-plus"></i></button>
  20. </form>
  21. </div>
  22. <div class="span8">
  23. <h6>Highlighted fields <small>Click to remove</small></h6>
  24. <span style="margin-left:3px" ng-click="toggle_highlight(field);set_refresh(true)" ng-repeat="field in $parent.panel.highlight" class="label remove pointer">{{field}} </span>
  25. </div>
  26. </div>
  27. <h5>Options</h5>
  28. <div class="row-fluid">
  29. <div class="span1">
  30. <h6>Header</h6><input type="checkbox" ng-model="panel.header" ng-checked="panel.header">
  31. </div>
  32. <div class="span1">
  33. <h6>Sorting</h6><input type="checkbox" ng-model="panel.sortable" ng-checked="panel.sortable">
  34. </div>
  35. <div class="span4" style="white-space:nowrap" ng-show='panel.sortable'>
  36. <h6>Sort</h6>
  37. <input ng-show="all_fields.length<=0 || !all_fields"style="width:85%" ng-model="panel.sort[0]" type="text"></input>
  38. <select ng-show="all_fields.length>0"style="width:85%" ng-model="panel.sort[0]" ng-options="f for f in all_fields"></select>
  39. <i ng-click="set_sort(panel.sort[0])" ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i>
  40. </div>
  41. <div class="span3"><h6>Font Size</h6>
  42. <select class="input-small" ng-model="panel.style['font-size']" ng-options="f for f in ['7pt','8pt','9pt','10pt','12pt','14pt','16pt','18pt','20pt','24pt','28pt','32pt','36pt','42pt','48pt','52pt','60pt','72pt']"></select></span>
  43. </div>
  44. <div class="span2">
  45. <h6>Page Control</h6><input type="checkbox" ng-model="panel.paging" ng-checked="panel.paging">
  46. </div>
  47. </div>
  48. <h5>Paging</h5>
  49. <div class="row-fluid">
  50. <div class="span2">
  51. <h6>Per Page</h6>
  52. <input type="number" class="input-mini" ng-model="panel.size" ng-change="get_data()">
  53. </div>
  54. <div class="span1">
  55. <h6>&nbsp;</h6>
  56. <center><i class='icon-remove'></i><center>
  57. </div>
  58. <div class="span2">
  59. <h6>Page limit</h6>
  60. <input type="number" class="input-mini" ng-model="panel.pages" ng-change="get_data()">
  61. </div>
  62. <div class="span2 large">
  63. <h6>Pageable</h6>
  64. <strong>= {{panel.size * panel.pages}}</strong>
  65. </div>
  66. <div class="span3">
  67. <h6>Page Overflow</h6>
  68. <select class="input-small" ng-model="panel.overflow" ng-options="f.value as f.key for f in [{key:'scroll',value:'height'},{key:'expand',value:'min-height'}]"></select>
  69. </div>
  70. </div>
  71. <!--<div class="row-fluid" ng-show='panel.sortable'>
  72. <div class="span11">
  73. <h6>A note about sorting</h6>
  74. Allowing sorting can incur a significant performance penalty if using timestamped indices.
  75. Kibana will be unable to query your indices sequentially and thus must query them all at
  76. once. Only enable sorting if your cluster is stout enough to handle it.
  77. </div>
  78. </div>-->
  79. <h5>Panel Spy</h5>
  80. <div class="row-fluid">
  81. <div class="span2">
  82. <label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
  83. </div>
  84. <div class="span9 small">
  85. The panel spy shows 'behind the scenes' information about a panel. It can
  86. be accessed by clicking the <i class='icon-eye-open'></i> in the top right
  87. of the panel.
  88. </div>
  89. </div>