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

Use the checkbox-toggleall component for the database activity

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-65933-master
    • Hide
      Setup
      1. Create a database activity
      2. Define at least one field
      3. Save a default template
      4. Create at least 2 items
      5. View the items list
      6. Confirm that you see a "Select all" button.
      7. Confirm that you see a disabled "Delete selected" button
      Toggling checked states of items via the master button
      1. Click on the "Select all"
      2. Confirm that all of the items get selected.
      3. Confirm that the "Delete selected" button gets enabled.
      4. Confirm that "Select all" becomes "Deselect all"
      5. Click on "Deselect all"
      6. Confirm that all items get unchecked.
      7. Confirm that the "Delete selected" button gets disabled.
      8. Confirm that "Deselect all" becomes "Select all"
      Ticking the item checkboxes
      1. Tick a checkbox in the list
      2. Confirm that the "Delete selected" button gets enabled.
      3. Tick all of the checkboxes
      4. Confirm that "Select all" button becomes "Deselect all"
      5. Untick all of the checkboxes
      6. Confirm that "Select all" button becomes "Select all"
      7. Confirm that the "Delete selected" button gets disabled.
      Show
      Setup Create a database activity Define at least one field Save a default template Create at least 2 items View the items list Confirm that you see a " Select all " button. Confirm that you see a disabled " Delete selected " button Toggling checked states of items via the master button Click on the " Select all " Confirm that all of the items get selected. Confirm that the " Delete selected " button gets enabled. Confirm that " Select all " becomes " Deselect all " Click on " Deselect all " Confirm that all items get unchecked. Confirm that the " Delete selected " button gets disabled. Confirm that " Deselect all " becomes " Select all " Ticking the item checkboxes Tick a checkbox in the list Confirm that the " Delete selected " button gets enabled. Tick all of the checkboxes Confirm that " Select all " button becomes " Deselect all " Untick all of the checkboxes Confirm that " Select all " button becomes " Select all " Confirm that the " Delete selected " button gets disabled.
    • 1

      Who is this for?
      • Moodle users who can edit items in a database activity (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 which aims to improve the UI and UX by:
        • having a single button for toggling the checked states of the checkbox elements in the items list.
        • making the "Delete" selected button enabled only when there's at least one item selected.

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Mihail Geshoski Mihail Geshoski
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.