From 98d53af7b657e2a15ba67f09b67de4fa21b2adbc Mon Sep 17 00:00:00 2001 From: Clement Smith Date: Mon, 18 Apr 2016 09:23:07 -0500 Subject: [PATCH] MDL-51354 report/log: Add context sensitive help Adds context sensitive help to the Reports > Logs page (both admin and course level) to help users understand how the filters will affect their search. --- lang/en/moodle.php | 5 ++++- report/log/classes/renderer.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index a5407741470..064b09a39aa 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -557,7 +557,10 @@ $string['edituser'] = 'Edit user accounts'; $string['edulevelother'] = 'Other'; $string['edulevelteacher'] = 'Teaching'; $string['edulevelparticipating'] = 'Participating'; -$string['edulevel'] = 'Educational level'; +$string['edulevel'] = 'All events'; +$string['edulevel_help'] = '* Teaching - actions performed by a teacher, e.g. updating a resource +* Participating - actions performed by a student, e.g. posting in a forum +* Other - actions performed by a user with a role other than teacher or student'; $string['email'] = 'Email address'; $string['emailalreadysent'] = 'A password reset email has already been sent. Please check your email.'; $string['emailactive'] = 'Email activated'; diff --git a/report/log/classes/renderer.php b/report/log/classes/renderer.php index f0b21f1d71c..b3e1cd760d1 100644 --- a/report/log/classes/renderer.php +++ b/report/log/classes/renderer.php @@ -167,7 +167,7 @@ class report_log_renderer extends plugin_renderer_base { // Add edulevel. $edulevel = $reportlog->get_edulevel_options(); echo html_writer::label(get_string('edulevel'), 'menuedulevel', false, array('class' => 'accesshide')); - echo html_writer::select($edulevel, 'edulevel', $reportlog->edulevel, false); + echo html_writer::select($edulevel, 'edulevel', $reportlog->edulevel, false).$this->help_icon('edulevel'); // Add reader option. // If there is some reader available then only show submit button.