roweditor.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <div class="modal-header">
  2. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  3. <h3>{{row.title}} <small>row editor</small></h3>
  4. </div>
  5. <div class="modal-body">
  6. <h4>Row Control</h4>
  7. <div class="row-fluid">
  8. <div class="span4">
  9. <label class="small">Title</label><input type="text" class="input-medium" ng-model='row.title'></input>
  10. </div>
  11. <div class="span2">
  12. <label class="small">Height</label><input type="text" class="input-mini" ng-model='row.height'></input>
  13. </div>
  14. <div class="span1">
  15. <label class="small"> Editable </label><input type="checkbox" ng-model="row.editable" ng-checked="row.editable" />
  16. </div>
  17. </div>
  18. <div class="row-fluid">
  19. <h4>New Panel</h4>
  20. <select class="input-medium" ng-model="panel.type" ng-options="f for f in config.modules"></select>
  21. <small>Select Type</small>
  22. <div ng-show="!(_.isUndefined(panel.type))">
  23. <div ng-include src="'partials/panelgeneral.html'"></div>
  24. <!--<div ng-include src="'panels/'+panel.type+'/editor.html'"></div>-->
  25. <button ng-click="add_panel(row,panel); reset_panel();" class="btn btn-primary">Create Panel</button><br>
  26. </div>
  27. </div>
  28. <div class="row-fluid">
  29. <div class="span12">
  30. <h4>Panels</h4>
  31. <table class="table table-condensed table-striped">
  32. <thead>
  33. <th>Title</th>
  34. <th>Type</th>
  35. <th>Span</th>
  36. <th>Delete</th>
  37. <th>Move</th>
  38. </thead>
  39. <tr ng-repeat="panel in row.panels">
  40. <td>{{panel.title}}</td>
  41. <td>{{panel.type}}</td>
  42. <td><select class="input-mini" ng-model="panel.span" ng-options="f for f in [0,1,2,3,4,5,6,7,8,9,10,11,12]"></select></td>
  43. <td><i ng-click="row.panels = _.without(row.panels,panel)" class="pointer icon-remove"></i></td>
  44. <td><i ng-click="_.move(row.panels,$index,$index-1)" ng-hide="$first" class="pointer icon-arrow-up"></i></td>
  45. <td><i ng-click="_.move(row.panels,$index,$index+1)" ng-hide="$last" class="pointer icon-arrow-down"></i></td>
  46. </tr>
  47. </table>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="modal-footer">
  52. <button type="button" class="btn btn-success" ng-click="dismiss();reset_panel();send_render()">Close</button>
  53. </div>