Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65994

Use the checkbox-toggleall component for the question bank

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Questions
    • Testing Instructions:
      Hide
      Question bank
      1. Log in as a teacher in a course.
      2. In the course homepage, click on the course menu and select "More..."
      3. Click "Questions" under "Question bank"
      4. Create at least 2 questions
      5. Back on the Questions tab, check the questions table.
      6. Check the behaviour of the master checkbox.
      7. Confirm that:
        • When it's ticked, all questions in the table become selected and its hidden label becomes "Deselect all" (you might wanna inspect using the dev tools of your browser)
        • When everything's selected and you untick it, all items become deselected and its text becomes "Select all"
      8. Check the effect of clicking of one or more checkboxes beside each question.
      9. Confirm that:
        • When you tick all checkboxes, the master checkbox becomes ticked and its hidden label becomes "Deselect all"
        • When all checkboxes are ticked and you untick at least one checkbox, the master checkbox becomes unticked and its hidden label becomes "Select all"
      10. Check the behaviour of the fields under the "With selected:" label (the "Delete" button, "Move to >>" button, and the select box containing the question categories.
      11. Confirm that:
        • When at least one checkbox is selected, the fields are enabled.
        • When there's no checkbox selected, the fields are disabled.
      Editing a quiz
      1. Go back to the course homepage
      2. Turn editing on and create a new quiz activity
      3. Edit the quiz
      4. On the quiz edit page, click "Add" and select "from question bank"
      5. Check the questions table in the "Add from the question bank at the end" modal dialogue.
      6. Confirm that the "Add selected questions to the quiz" button is initially disabled.
      7. Check the behaviour of the master checkbox.
      8. Confirm that:
        • When it's ticked, all questions in the table become selected and its hidden label becomes "Deselect all" (you might wanna inspect using the dev tools of your browser)
        • When everything's selected and you untick it, all items become deselected and its text becomes "Select all"
      9. Check the effect of clicking of one or more checkboxes beside each question.
      10. Confirm that:
        • When you tick all checkboxes, the master checkbox becomes ticked and its hidden label becomes "Deselect all"
        • When all checkboxes are ticked and you untick at least one checkbox, the master checkbox becomes unticked and its hidden label becomes "Select all"
      11. Check the behaviour of the "Add selected questions to the quiz" button.
      12. Confirm that:
        • When at least one checkbox is selected, the button is enabled.
        • When there's no checkbox selected, the button is disabled.
      Show
      Question bank Log in as a teacher in a course. In the course homepage, click on the course menu and select " More... " Click " Questions " under " Question bank " Create at least 2 questions Back on the Questions tab, check the questions table. Check the behaviour of the master checkbox. Confirm that: When it's ticked, all questions in the table become selected and its hidden label becomes " Deselect all " (you might wanna inspect using the dev tools of your browser) When everything's selected and you untick it, all items become deselected and its text becomes " Select all " Check the effect of clicking of one or more checkboxes beside each question. Confirm that: When you tick all checkboxes, the master checkbox becomes ticked and its hidden label becomes " Deselect all " When all checkboxes are ticked and you untick at least one checkbox, the master checkbox becomes unticked and its hidden label becomes " Select all " Check the behaviour of the fields under the " With selected: " label (the " Delete " button, " Move to >> " button, and the select box containing the question categories. Confirm that: When at least one checkbox is selected, the fields are enabled. When there's no checkbox selected, the fields are disabled. Editing a quiz Go back to the course homepage Turn editing on and create a new quiz activity Edit the quiz On the quiz edit page, click " Add " and select " from question bank " Check the questions table in the " Add from the question bank at the end " modal dialogue. Confirm that the " Add selected questions to the quiz " button is initially disabled. Check the behaviour of the master checkbox. Confirm that: When it's ticked, all questions in the table become selected and its hidden label becomes " Deselect all " (you might wanna inspect using the dev tools of your browser) When everything's selected and you untick it, all items become deselected and its text becomes " Select all " Check the effect of clicking of one or more checkboxes beside each question. Confirm that: When you tick all checkboxes, the master checkbox becomes ticked and its hidden label becomes " Deselect all " When all checkboxes are ticked and you untick at least one checkbox, the master checkbox becomes unticked and its hidden label becomes " Select all " Check the behaviour of the " Add selected questions to the quiz " button. Confirm that: When at least one checkbox is selected, the button is enabled. When there's no checkbox selected, the button is disabled.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-65994-master
    • Story Points:
      1
    • Sprint:
      Sprint 2 - Experimental

      Description

      As of Moodle 3.7, the question bank has started using the core/checkbox-toggleall AMD module.

      Though this is already great, using the checkbox-toggleall output component that's being developed in MDL-65928 would also be cool and hopefully, help tidy things up.

        Attachments

        1. editingquiz1.png
          editingquiz1.png
          433 kB
        2. editingquiz2.png
          editingquiz2.png
          29 kB
        3. question_bank.png
          question_bank.png
          277 kB

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Tim Hunt
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 56 minutes
                  2h 56m