Skip to content

Commit

Permalink
MDL-51354 report/log: Add context sensitive help
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cdsmith-umn committed Apr 18, 2016
1 parent 4f33514 commit 98d53af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lang/en/moodle.php
Expand Up @@ -557,7 +557,10 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion report/log/classes/renderer.php
Expand Up @@ -167,7 +167,7 @@ public function report_selector_form(report_log_renderable $reportlog) {
// 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.
Expand Down

0 comments on commit 98d53af

Please sign in to comment.