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

Provide option to have group count before names when adding users to group

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_402_STABLE
    • MDL-76386-master
    • Hide

      Preparation : Set the language string

      • As an admin go to Language > Language customisation
      • Select the current language (English)
      • Click on "Open Language Pack for editing"
      • Select the "user.php" String component
      • Set "usergroupselectorcount" as String identifier
      • Click "Show strings"
      • In the 'Local customization' enter "({$a->groupcount}) {$a->fullname}"
      • And click on "Save change to language pack"

      Test:

      • Create a course C1 with about 10 users
      • Go to C1's participants page
      • Go to group management (Group / Group drop down menu)
      • Create a group A
      • Create a group B
      • Select group A and click on Add/Remove user
      • Assign a couple of users to group A
      • Go back to group B and the Add/remove user page
      • Ensure that the number of groups the user belongs to is displayed before the name (so the users we just assigned to group A will have 1)
      Show
      Preparation : Set the language string As an admin go to Language > Language customisation Select the current language (English) Click on "Open Language Pack for editing" Select the "user.php" String component Set "usergroupselectorcount" as String identifier Click "Show strings" In the 'Local customization' enter "({$a->groupcount}) {$a->fullname}" And click on "Save change to language pack" Test: Create a course C1 with about 10 users Go to C1's participants page Go to group management (Group / Group drop down menu) Create a group A Create a group B Select group A and click on Add/Remove user Assign a couple of users to group A Go back to group B and the Add/remove user page Ensure that the number of groups the user belongs to is displayed before the name (so the users we just assigned to group A will have 1)
    • 2
    • HQ 2023 Sprint i1.1 Moppies

      Move (0) and (1) for group membership to Left-Aligned so they are not truncated

      For years, the numbers in parentheses that indicate the number of groups to which a Moodle course participant belongs have been on the right side of each record. See here:

       

      https://www.dropbox.com/s/r12j6ct3yo8e0ha/Moodle%20Groups%20%280%29%20and%20%281%29%20indicators%20truncated.png?dl=0

      Proposing to move these to the left, so all are visible, even if the screen is narrow. 

      Thanks for considering this simple (hopefully!) fix to make it easier to know how many groups each participant is in, quickly. 

      Nathan


      Edited to add issue fix:

      A new language string is available, usergroupselectorcount in the component user.php.

      {$a->fullname} ({$a->groupcount})

      If you want to have group count before names when adding users to group, you can use Language customisation and change the language string to:

      ({$a->groupcount}) {$a->fullname}

        1. (#) on right in QA site.png
          (#) on right in QA site.png
          665 kB
        2. add users to group.png
          add users to group.png
          106 kB
        3. before patch.png
          before patch.png
          75 kB
        4. boost.gif
          boost.gif
          369 kB
        5. classic.gif
          classic.gif
          410 kB
        6. image-2023-02-06-06-35-03-329.png
          image-2023-02-06-06-35-03-329.png
          144 kB
        7. Moodle Groups (0) and (1) indicators truncated.png
          Moodle Groups (0) and (1) indicators truncated.png
          108 kB
        8. screenshot-1.png
          screenshot-1.png
          137 kB

            laurent.david@moodle.com Laurent David
            lindn Nathan Lind
            Paul Holden Paul Holden
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 55 minutes
                3h 55m

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