editor.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 pointer remove">{{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="span3" 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="span2"><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 class="span2">
  48. <h6>Trim Factor <i class="icon-question-sign" bs-tooltip="'Trim fields to this long divided by # of rows'"></i></h6>
  49. <input type="number" class="input-small" ng-model="panel.trimFactor">
  50. </div>
  51. </div>
  52. <h5>Paging</h5>
  53. <div class="row-fluid">
  54. <div class="span2">
  55. <h6>Per Page</h6>
  56. <input type="number" class="input-mini" ng-model="panel.size" ng-change="get_data()">
  57. </div>
  58. <div class="span1">
  59. <h6>&nbsp;</h6>
  60. <center><i class='icon-remove'></i><center>
  61. </div>
  62. <div class="span2">
  63. <h6>Page limit</h6>
  64. <input type="number" class="input-mini" ng-model="panel.pages" ng-change="get_data()">
  65. </div>
  66. <div class="span2 large">
  67. <h6>Pageable</h6>
  68. <strong>= {{panel.size * panel.pages}}</strong>
  69. </div>
  70. <div class="span3">
  71. <h6>Page Overflow</h6>
  72. <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>
  73. </div>
  74. </div>
  75. <h5>Panel Spy</h5>
  76. <div class="row-fluid">
  77. <div class="span2">
  78. <label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable">
  79. </div>
  80. <div class="span9 small">
  81. The panel spy shows 'behind the scenes' information about a panel. It can
  82. be accessed by clicking the <i class='icon-eye-open'></i> in the top right
  83. of the panel.
  84. </div>
  85. </div>