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

Use the checkbox-toggleall component for the course participants page

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Requirement
      1. A course with a teacher and several students enrolled.
      Test
      1. Log in as a teacher in a course.
      2. Go to the course's participants page.
      3. Check the table of course participants
      4. Confirm that you see a checkbox on the column header of the table's first column. Let's call this the master checkbox.
      5. Confirm that without any item being selected on initial load, the "With selected users..." select box is rendered as disabled.
      6. Check the behaviour of the master checkbox.
      7. Confirm that:
        • When it's ticked, all users 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 users become deselected and its hidden label becomes "Select all"
      8. Check the effect of clicking of one or more checkboxes beside each attempt.
      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 "With selected users..." select box.
      11. Confirm that:
        • When at least one checkbox is selected, the select box is enabled.
        • When there's no checkbox selected, the select box is disabled.
      Show
      Requirement A course with a teacher and several students enrolled. Test Log in as a teacher in a course. Go to the course's participants page. Check the table of course participants Confirm that you see a checkbox on the column header of the table's first column. Let's call this the master checkbox. Confirm that without any item being selected on initial load, the " With selected users... " select box is rendered as disabled. Check the behaviour of the master checkbox. Confirm that: When it's ticked, all users 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 users become deselected and its hidden label becomes " Select all " Check the effect of clicking of one or more checkboxes beside each attempt. 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 " With selected users... " select box. Confirm that: When at least one checkbox is selected, the select box is enabled. When there's no checkbox selected, the select box is disabled.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-65950-master
    • Story Points:
      1

      Description

      Who is this for?
      • Moodle users who can a manage course participants (e.g. teachers, course managers, etc)
      What is the problem that you're trying to solve?
      • The inconsistent way of checking items on a list throughout Moodle
      Why does it need solving?
      • A consistent way of checking items on a list would provide a better user experience
      How does this issue tackle the problem?
      • The patch for this issue will implement the usage of the checkbox-toggleall output component in the course participants. This aims to improve the UI and UX by replacing the "Select all" and "Deselect all" buttons in the course participants page with a master toggle-all checkbox for toggling the checked states of checkboxes of the users in the course participation report table.

        Attachments

          Activity

            People

            • Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Mihail Geshoski
              Integrator:
              Andrew Nicols
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Barbara Ramiro, Jake Dallimore, Jun Pataleta, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              4 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, 15 minutes
                2h 15m