From f7dca3a1536bc4d084f7e2b5954692d32be92143 Mon Sep 17 00:00:00 2001 From: toanlamt <67050522+toanlamt@users.noreply.github.com> Date: Wed, 21 Aug 2024 23:10:40 +0700 Subject: [PATCH] Minor UI changes in Questionnaire Report page (#577) Co-authored-by: toanlam --- lang/en/questionnaire.php | 4 ++-- report.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/en/questionnaire.php b/lang/en/questionnaire.php index f6e35b11..7de8d9f7 100644 --- a/lang/en/questionnaire.php +++ b/lang/en/questionnaire.php @@ -146,8 +146,8 @@ $string['download'] = 'Download'; $string['downloadpdf'] = 'Download PDF'; $string['downloadtextformat'] = 'Download'; -$string['downloadtextformat_help'] = 'This feature enables you to save all the responses of a questionnaire to a selectable, supported file format. - You can choose to include extra data items in the export, as well as choose to automatically send the file to selected users.'; +$string['downloadtextformat_help'] = 'This feature enables you to download questionnaire responses in a file format of your choice. + The file can then be opened in a spreadsheet program (e.g. MS Excel or Open Office Calc) or a statistical package for further processing.'; $string['downloadtextformat_link'] = 'mod/questionnaire/report#Download_in_text_format'; $string['downloadtypes'] = 'Report type'; $string['dropdown'] = 'Dropdown Box'; diff --git a/report.php b/report.php index e66b3555..b7b16152 100755 --- a/report.php +++ b/report.php @@ -449,10 +449,10 @@ } $output = ''; $output .= "

\n"; - $output .= $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire'); - $output .= ' ' . (get_string('downloadtextformat', 'questionnaire')) . ': ' . - get_string('responses', 'questionnaire').' '.$groupname; - $output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire')); + $output .= html_writer::tag('h2', (get_string('downloadtextformat', 'questionnaire')) + . ': ' . get_string('responses', 'questionnaire') . ' ' . + $groupname . $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire')); + $output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire'), 3); $output .= $questionnaire->renderer->box_start(); $downloadparams = [ 'instance' => $instance,