editor.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div>
  2. <div class="row-fluid">
  3. <h4>Add Panel to Column</h4>
  4. <select class="input-medium" ng-model="new_panel.type" ng-options="f for f in _.without(config.modules,'column')| stringSort" ng-change="reset_panel(new_panel.type);send_render();"></select>
  5. <small>Select Type</small>
  6. <div ng-show="!(_.isUndefined(new_panel.type))">
  7. <div column-edit panel="new_panel" config="config" row="row" dashboards="dashboards" type="new_panel.type"></div>
  8. <button ng-click="add_panel(new_panel); reset_panel();" class="btn btn-primary">Create Panel</button><br>
  9. </div>
  10. </div>
  11. <div class="row-fluid">
  12. <div class="span12">
  13. <h4>Panels</h4>
  14. <table class="table table-condensed table-striped">
  15. <thead>
  16. <th>Title</th>
  17. <th>Type</th>
  18. <th>Height</th>
  19. <th>Delete</th>
  20. <th>Move</th>
  21. <th></th>
  22. <th>Hide</th>
  23. </thead>
  24. <tr ng-repeat="app in panel.panels">
  25. <td>{{app.title}}</td>
  26. <td>{{app.type}}</td>
  27. <td><input type="text" class="input-small" ng-model="app.height"></input></td>
  28. <td><i ng-click="panel.panels = _.without(panel.panels,app)" class="pointer icon-remove"></i></td>
  29. <td><i ng-click="_.move(panel.panels,$index,$index-1)" ng-hide="$first" class="pointer icon-arrow-up"></i></td>
  30. <td><i ng-click="_.move(panel.panels,$index,$index+1)" ng-hide="$last" class="pointer icon-arrow-down"></i></td>
  31. <td><input type="checkbox" ng-model="app.hide" ng-checked="app.hide"></td>
  32. </tr>
  33. </table>
  34. </div>
  35. </div>
  36. </div>