Commit 29c142e3 by Chris Dodge

need to wire through the new unit template location to the edit unit page

parent 322c4c0b
......@@ -210,6 +210,10 @@ def edit_unit(request, location):
containing_section_locs = modulestore().get_parent_locations(containing_subsection.location)
containing_section = modulestore().get_item(containing_section_locs[0])
# This knowledge of what the 'new template' should be seems like it needs to be kept deeper down in the
# code. We should probably refactor
template = modulestore().get_item(Location('i4x', 'edx', 'templates', 'vertical', 'Empty'))
return render_to_response('unit.html', {
'unit': item,
'components': components,
......@@ -217,6 +221,7 @@ def edit_unit(request, location):
'lms_link': lms_link,
'subsection': containing_subsection,
'section': containing_section,
'create_new_unit_template' : template.location
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment