def courseman_courses(req): ''' display the course creation form ''' templates = mu.get_templates() return render(req, 'course_create.html', _cmdict(req, next='/coursemanage/courses-post', dict={'templates' : templates}))
def courseman_templates(req): ''' display template creation form, including existing templates and courses ''' courses = mu.get_courses() templates = mu.get_templates() return render(req, 'course_template.html', _cmdict(req, next='/coursemanage/templates-post', dict={'courses' : courses, 'templates' : templates}))