Skip to content

Commit f7dca3a

Browse files
toanlamttoanlam
andauthored
Minor UI changes in Questionnaire Report page (#577)
Co-authored-by: toanlam <[email protected]>
1 parent b06947c commit f7dca3a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lang/en/questionnaire.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146
$string['download'] = 'Download';
147147
$string['downloadpdf'] = 'Download PDF';
148148
$string['downloadtextformat'] = 'Download';
149-
$string['downloadtextformat_help'] = 'This feature enables you to save all the responses of a questionnaire to a selectable, supported file format.
150-
You can choose to include extra data items in the export, as well as choose to automatically send the file to selected users.';
149+
$string['downloadtextformat_help'] = 'This feature enables you to download questionnaire responses in a file format of your choice.
150+
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.';
151151
$string['downloadtextformat_link'] = 'mod/questionnaire/report#Download_in_text_format';
152152
$string['downloadtypes'] = 'Report type';
153153
$string['dropdown'] = 'Dropdown Box';

report.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,10 @@
449449
}
450450
$output = '';
451451
$output .= "<br /><br />\n";
452-
$output .= $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire');
453-
$output .= '&nbsp;' . (get_string('downloadtextformat', 'questionnaire')) . ':&nbsp;' .
454-
get_string('responses', 'questionnaire').'&nbsp;'.$groupname;
455-
$output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire'));
452+
$output .= html_writer::tag('h2', (get_string('downloadtextformat', 'questionnaire'))
453+
. ':&nbsp;' . get_string('responses', 'questionnaire') . '&nbsp;' .
454+
$groupname . $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire'));
455+
$output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire'), 3);
456456
$output .= $questionnaire->renderer->box_start();
457457
$downloadparams = [
458458
'instance' => $instance,

0 commit comments

Comments
 (0)