editor.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="row-fluid">
  2. <div class="span6 section">
  3. <h5>Options</h5>
  4. <div class="editor-option">
  5. <label class="small">Header</label><input type="checkbox" ng-model="panel.header" ng-checked="panel.header">
  6. </div>
  7. <div class="editor-option">
  8. <label class="small">Sorting</label><input type="checkbox" ng-model="panel.sortable" ng-checked="panel.sortable">
  9. </div>
  10. <div class="editor-option" style="white-space:nowrap" ng-show='panel.sortable'>
  11. <label class="small">Sort</label>
  12. <input class="input-small" bs-typeahead="fields.list" ng-model="panel.sort[0]" type="text"></input>
  13. <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>
  14. </div>
  15. <div class="editor-option"><label class="small">Font Size</label>
  16. <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>
  17. </div>
  18. <div class="editor-option">
  19. <label class="small">Trim Factor <tip>Trim fields to this long divided by # of rows. Requires data refresh.</tip></label>
  20. <input type="number" class="input-small" ng-model="panel.trimFactor" ng-change="set_refresh(true)">
  21. </div>
  22. <br>
  23. <div class="editor-option">
  24. <label class="small">Local Time <tip>Adjust time field to browser's local time</tip></label><input type="checkbox" ng-change="set_refresh(true)" ng-model="panel.localTime" ng-checked="panel.localTime">
  25. </div>
  26. <div class="editor-option" ng-show="panel.localTime">
  27. <label class="small">Time Field</label>
  28. <input type="text" class="input-small" ng-model="panel.timeField" ng-change="set_refresh(true)" bs-typeahead="fields.list">
  29. </div>
  30. </div>
  31. <div class="section span6">
  32. <h5>Columns</h5>
  33. <form class="input-append editor-option">
  34. <input bs-typeahead="fields.list" type="text" class="input-small" ng-model='newfield'>
  35. <button class="btn" ng-click="toggle_field(newfield);newfield=''"><i class="icon-plus"></i></button>
  36. </form><br>
  37. <span style="margin-left:3px" ng-repeat="field in $parent.panel.fields" class="label">{{field}} <i class="pointer icon-remove-sign" ng-click="toggle_field(field)"></i></span>
  38. <h5>Hightlighted Fields</h5>
  39. <form class="input-append editor-option">
  40. <input bs-typeahead="fields.list" type="text" class="input-small" ng-model='newhighlight' ng-change="set_refresh(true)">
  41. <button class="btn" ng-click="toggle_highlight(newhighlight);newhighlight=''"><i class="icon-plus"></i></button>
  42. </form><br>
  43. <span style="margin-left:3px" ng-repeat="field in $parent.panel.highlight" class="label">{{field}} <i class="pointer icon-remove-sign" ng-click="toggle_highlight(field);set_refresh(true)" ></i></span>
  44. </div>
  45. </div>