diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index b55dc13e58..700f7b6ad4 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -66,7 +66,7 @@ from cms.djangoapps.models.settings.course_metadata import CourseMetadata log = logging.getLogger(__name__) -COMPONENT_TYPES = ['customtag', 'discussion', 'html', 'problem', 'video'] +COMPONENT_TYPES = ['customtag', 'discussion', 'html', 'problem', 'video', 'peergrading', 'combinedopenended'] # cdodge: these are categories which should not be parented, they are detached from the hierarchy DETACHED_CATEGORIES = ['about', 'static_tab', 'course_info'] @@ -282,6 +282,7 @@ def edit_unit(request, location): component_templates = defaultdict(list) templates = modulestore().get_items(Location('i4x', 'edx', 'templates')) + log.debug(templates) for template in templates: if template.location.category in COMPONENT_TYPES: component_templates[template.location.category].append(( diff --git a/common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml b/common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml new file mode 100644 index 0000000000..48daa6f139 --- /dev/null +++ b/common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml @@ -0,0 +1,54 @@ +--- +metadata: + display_name: Open Ended Response + rerandomize: never + showanswer: never + weight: "" + attempts: 10 + max_score: 2 + is_graded: False + version: 1 + display_name: Test Question +data: | + + + + + Category 1 + + + + + Hydrophobia + + + + + + +

Why is the sky blue?

+
+ + + + + + + Enter essay here. + This is the answer. + {"grader_settings" : "peer_grading.conf", "problem_id" : "700x/Demo"} + + + +
+ + +children: [] diff --git a/common/lib/xmodule/xmodule/templates/peer_grading/default.yaml b/common/lib/xmodule/xmodule/templates/peer_grading/default.yaml new file mode 100644 index 0000000000..3ffb5cff2f --- /dev/null +++ b/common/lib/xmodule/xmodule/templates/peer_grading/default.yaml @@ -0,0 +1,12 @@ +--- +metadata: + display_name: Peer Grading Interface + rerandomize: never + showanswer: never + weight: "" + attempts: "" +data: | + + + +children: []