#NEWLINE# def question_type_modal( request , course_id , assignment_id ) : #NEWLINE# #INDENT# if request . is_ajax ( ) : #NEWLINE# #INDENT# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# assignment = Assignment . objects . get ( assignment_id = assignment_id ) #NEWLINE# form = AssignmentQuestionTypeForm ( ) #NEWLINE# return render ( request , 'teacher/assignment/question_modal.html' , { #NEWLINE# #INDENT# 'assignment' : assignment , #NEWLINE# 'form' : form , #NEWLINE# 'ESSAY_QUESTION_TYPE' : settings . ESSAY_QUESTION_TYPE , #NEWLINE# 'MULTIPLECHOICE_QUESTION_TYPE' : settings . MULTIPLECHOICE_QUESTION_TYPE , #NEWLINE# 'TRUEFALSE_QUESTION_TYPE' : settings . TRUEFALSE_QUESTION_TYPE , #NEWLINE# 'RESPONSE_QUESTION_TYPE' : settings . RESPONSE_QUESTION_TYPE , #NEWLINE# 'user' : request . user , #NEWLINE# 'title' : 'New Question' , #NEWLINE# 'local_css_urls' : settings . SB_ADMIN_2_CSS_LIBRARY_URLS , #NEWLINE# 'local_js_urls' : settings . SB_ADMIN_2_JS_LIBRARY_URLS , #NEWLINE# #UNINDENT# } )