Add basic section/subsection CRUD on the overview page

This commit is contained in:
Chris Dodge
2012-10-10 13:45:36 -04:00
parent 6079c57111
commit de3037558a
4 changed files with 155 additions and 14 deletions

View File

@@ -141,6 +141,9 @@ def course_index(request, org, course, name):
return render_to_response('overview.html', {
'sections': sections,
'parent_location': course.location,
'new_section_template': Location('i4x', 'edx', 'templates', 'sequential', 'Empty'),
'new_subsection_template': Location('i4x', 'edx', 'templates', 'sequential', 'Empty'), # for now they are the same, but the could be different at some point...
'upload_asset_callback_url': upload_asset_callback_url,
'create_new_unit_template': Location('i4x', 'edx', 'templates', 'vertical', 'Empty')
})