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

Add help icon for column header in report builder

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • Hide
      1. Apply the following change:

        $ git diff
        diff --git a/admin/classes/reportbuilder/local/systemreports/task_logs.php b/admin/classes/reportbuilder/local/systemreports/task_logs.php
        index caaf33057c4..32880ac77ee 100644
        --- a/admin/classes/reportbuilder/local/systemreports/task_logs.php
        +++ b/admin/classes/reportbuilder/local/systemreports/task_logs.php
        @@ -114,6 +114,7 @@ class task_logs extends system_report {
         
                 // Rename the user fullname column.
                 $this->get_column('user:fullname')
        +            ->set_help_icon(new \help_icon('cookiesenabled', 'moodle'))
                     ->set_title(new lang_string('user', 'admin'));
         
                 // It's possible to set a default initial sort direction for one column.
        

      2. Log in as admin
      3. Run cron to ensure you have some task history
      4. Navigate to Server > Tasks > Task logs in site administration
      5. Confirm the User column has a help icon in the table header, that when clicked shows standard help text dialog
      Show
      Apply the following change: $ git diff diff --git a/admin/classes/reportbuilder/local/systemreports/task_logs.php b/admin/classes/reportbuilder/local/systemreports/task_logs.php index caaf33057c4..32880ac77ee 100644 --- a/admin/classes/reportbuilder/local/systemreports/task_logs.php +++ b/admin/classes/reportbuilder/local/systemreports/task_logs.php @@ -114,6 +114,7 @@ class task_logs extends system_report { // Rename the user fullname column. $this->get_column('user:fullname') + ->set_help_icon(new \help_icon('cookiesenabled', 'moodle')) ->set_title(new lang_string('user', 'admin')); // It's possible to set a default initial sort direction for one column. Log in as admin Run cron to ensure you have some task history Navigate to Server > Tasks > Task logs in site administration Confirm the User column has a help icon in the table header, that when clicked shows standard help text dialog
    • Hide

      Code verified against automated checks.

      Checked MDL-84016 using repository: https://github.com/paulholden/moodle.git

      More information about this report

      Built on: Wed Jan 29 12:06:25 PM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84016 using repository: https://github.com/paulholden/moodle.git main (0 errors / 0 warnings) [branch: MDL-84016 | CI Job ] More information about this report Built on: Wed Jan 29 12:06:25 PM UTC 2025
    • Show
      Launching automatic jobs for branch MDL-84016 https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18141/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61987/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61988/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61989/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/61990/ App tests (stable app version) Built on: Tue Feb 4 02:30:18 PM UTC 2025
    • 2
    • WP Sprint 2025-I1.1 (Clones)

      Column headers in the report builder don't have a way to add a help text using the help icon we use in the core. We can get away with using renderer etc but those are not ideal everytime we need a help icon. Add the option to allow help icon and help text in the column header of the report builder column from the RB API.

       

            pholden Paul Holden
            safat.shahin@moodle.com Safat Shahin
            Pedro Jordao Pedro Jordao
            David Carrillo David Carrillo
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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