- add a new file in
app/models/quiz_question/
that extendsQuizQuestion::Base
(or another question type) - extend the appropriate scoring functions:
- stats
- total_answer_parts
- correct_answer_parts
- incorrect_answer_parts
- requires_manual_scoring?
- add the question type string to
AssessmentQuestion::ALL_QUESTION_TYPES
- add a new QuestionType struct to
QuizzesHelper#answer_type
- update
AssessmentQuestion.parse_question
- add an option + explanation to
app/view/quizzes/_form_question.html.erb
- look through
quizzes.js
and add support -- sorry :(- look at
checkShowDetails
- look in
updateFormAnswer
for how to support comments - setup
question_type
andanswer_type
inanswerTypeDetails
- add a result in
answerSelectionType
- add logic to
updateFormQuestion
- setup answers object in
$(".add_answer_link").bind('click', ...)
- look at
$("#question_form_template").submit(...)
- look at
- edit
_single_answer.html.erb
or_multiple_answer.html.erb
depending on your answer type- you should key off of what you put in
entry_type
inQuizzesHelper#answer_type
- you should key off of what you put in
- edit
_form_answer.html.erb
if you need to add custom ui to the question building interface.- create a
div
with class as theanswer_type
you added toanswerTypeDetails
inquizzes.js
- create a
- add copy/import/export support
Last active
December 28, 2015 10:39
-
-
Save simonista/7488107 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment