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

Enhancement: Question-writing and question-responding phases #77

Closed
wants to merge 1 commit into from

Conversation

HuongNV13
Copy link
Contributor

Hi Frank,
We have an enhancement for StudentQuiz as below:


Essentially, we need to be able to set 'start' and 'stop' dates for:
a) Creating questions
b) Responding to created questions.
For maximum flexibility, these should be able to work in conditions of:

  • Disabled (no change to how the activity works now)
  • Enabled, separate phases.
  • Enabled, overlapping phases.
  • Enabled, with the same time/dates (because someone will try this rather than disabling them).

This should be based on other Moodle Core tools, like Workshop, and be added to the activity set-up form, to look like Figure 1.
image
Figure 1: Student Quiz settings availability options.

Question creation

  • If the availability criteria are not met, the ‘Create new question’ button should be greyed out.
  • If before the question submission phase: a message should inform the user when they can start creating questions.
  • If after the question submission phase: a message that they can no longer create questions.

Question response

  • If the availability criteria are not met, the ‘Start Quiz’ button should be greyed out.
  • If before the question response phase: a message should inform the user when they can start answering questions.
  • If after the question response phase: a message that users can no longer take quizzes.

image

Figure 2


Thanks,
Huong Nguyen

@HuongNV13 HuongNV13 force-pushed the wip296763 branch 2 times, most recently from 9756632 to fc1bdcc Compare January 3, 2019 09:44
@HuongNV13
Copy link
Contributor Author

The new code was committed to fix Page context error with Unit Test and Travis

marcusgreen pushed a commit to marcusgreen/moodle-mod_studentquiz that referenced this pull request Jan 4, 2019
@muqiuq
Copy link
Collaborator

muqiuq commented Jan 20, 2019

Did I understand this correctly? This new feature only disables the buttons but doesn't actually prevent "Create New Question" or "Start Quiz" to be executed?

@HuongNV13
Copy link
Contributor Author

Hi,
You mean that some Student can view or know the direct link for this function then can access the link directly?
If needed I will create extra code to throw an exception in that case

muqiuq added a commit that referenced this pull request Jan 26, 2019
@muqiuq muqiuq closed this Feb 3, 2019
@HuongNV13 HuongNV13 deleted the wip296763 branch February 18, 2019 07:05
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.

2 participants