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

Improve the user selector used on the assign roles and group memebers pages

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Groups, Roles / Access
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Move this code into a function, or possibly a class, so that it can be shared, but customised to particular circumstances.

      Make the search ajax-y when JavaScript is available. In this case:

      • No need to click OK to trigger a search.
      • With more than MAX_USERS_PER_PAGE we don't display them. When there are fewer, we stop doing a server round-trip for the searches and reduce the timeout.
      • If some users are already selected, and you change the search term, then those users stay selected, possibly being moved to a separate optgroup.
      • If what you have typed uniquely identifies one user, that option is automatically selected.

      This sort of control will also be needed on the explain permissions page (MDL-16964), and in the user's roles report (MDL-11186). MDL-16418 is a subset of this.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Helen Foster Helen Foster
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10