Example #1
0
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}))
Example #2
0
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}))