Allow creation of components on container page

This commit implements STUD-1490, allowing creation of components
on the container page. It also enables the delete and duplicate
buttons now that new content can be created that would benefit.

Note that it also creates shared functionality for adding components,
and refactors the unit page to use it too.
This commit is contained in:
Andy Armstrong
2014-05-02 14:53:31 -04:00
parent 5752312bbb
commit 541d20ef83
70 changed files with 2907 additions and 1931 deletions

View File

@@ -0,0 +1,5 @@
define(["backbone", "js/models/component_template"], function(Backbone, ComponentTemplate) {
return Backbone.Collection.extend({
model : ComponentTemplate
});
});