Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiz Authoring Form #3

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open

Conversation

jonhartm
Copy link
Contributor

The promised bare-bones quiz authoring tool.

Still on my TODO list:

Bigger things:

  • Validation. If check_quiz doesn't like something (e.g. a multiple choice question with no correct answers) nothing gets saved.
  • In-line short answer questions. (fill in the blank style - at the moment you just have to make your own blank)

Smaller things:

  • Resize the page when you leave the authoring form and return to the index. (apparently not as simple as just calling lti_frameResize() - I'll figure it out)
  • Tooltips
  • Enable Question titles
  • Warning when modifying a quiz that has student results already submitted
  • Bootstrap style checkboxes/radio buttons

If there's anything else you might think of to include, just let me know and I'll see what I can do.

jonhartm added 30 commits April 19, 2018 12:42
mistakenly passed "context" instead of "answer_context" when loading a
quiz, and forgot to increment the question number when adding a blank
field on the bottom
facilitates adding answers as a result of JS events
One to go back to the index (if a quiz is long, this would be better
than scrolling to the cancel button at the bottomt)
One to go to old_configure.php, which still allows for direct input of
gift quizzes
After the user presses a button to add the next answer, I want the
button they pressed to turn from "+" to "-" and change in function to
remove that answer rather than add another
Just count the number of children in the quiz content div before adding
each question
</form> was far too early so the "save" button didn't register when
pressed
So I don't have to calculate it later
name will always be "answer1_qustionX". Makes it a little easier for the
parser.
Added helper file with functions to parse the POST from the authoring
form, and a few tests to confirm it works as expected
"save" now just stores the quiz in the database, "save and return" saves
the quiz and returns to the index
just reviewing the code and making sure I didn't forget something
obvious
jonhartm added 29 commits April 27, 2018 15:46
I'm going to use this once or twice more, so I'm making a new rule
rather than type the margins multiple times
Only look at the checkboxes that are within a possible answer div, since
the "Use HTML" checkbox was being picked up.
wrapped the buttons in a 33% width div, which is now a trigger for
validating the quiz
SQL query to see if this particular Link object has at least one result
from a student, and if so display a warning message that must be
dismissed before the quiz can be edited
there's always the option to remove an answer, and the last answer
always has an add option.
The "-" button is supressed in the template when it is the first answer
in a question. Also a CSS change to standardize the height of the answer
div to keep it from jumping up and down when the "+" appears/disappears
on the first answer.
The state of the checkbox isn't saved in .html(), so we store it
manually before renaming the answers, then re-apply the checks after
each renaming
When the Authorign form got particuarly long, the frame didn't shrink
back when the user returned to the index, which was a little annoying.
Added a dropdown next to the delete button that allows the user to
change the type of question.
Added a dropdown next to the delete button that allows the user to
change the type of question.
Commented out the debug button, and removed the un-needed div from the
save buttons and it's associated CSS rule.
Not pretty, but it works. change_question_type is now called with the
div, which is parsed to get the question number. When the questions are
renumbered, the html that makes this call is updated as well.
@jonhartm
Copy link
Contributor Author

Finished javascript validation, frame resizing, warning if the quiz has already been taken, and made some changes to the UI .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant