paneleditor.html 867 B

1234567891011121314151617181920212223
  1. <div class="modal-body">
  2. <div class="pull-right editor-title">{{panel.type}} settings</div>
  3. <div ng-model="editor.index" bs-tabs>
  4. <div ng-repeat="tab in setEditorTabs(panelMeta)" data-title="{{tab}}">
  5. </div>
  6. </div>
  7. <div ng-show="editorTabs[editor.index] == 'General'">
  8. <div ng-include src="'partials/panelgeneral.html'"></div>
  9. </div>
  10. <div ng-show="editorTabs[editor.index] == 'Panel'">
  11. <div ng-include src="edit_path(panel.type)"></div>
  12. </div>
  13. <div ng-repeat="tab in panelMeta.editorTabs" ng-show="editorTabs[editor.index] == tab.title">
  14. <div ng-include src="tab.src"></div>
  15. </div>
  16. </div>
  17. <div class="modal-footer">
  18. <!-- close_edit() is provided here to allow for a scope to perform action on dismiss -->
  19. <button type="button" class="btn btn-danger" ng-click="editor.index=0;close_edit();dismiss()">Close</button>
  20. </div>