Skip to content

Commit

Permalink
Minor UI changes in Questionnaire Report page (#577)
Browse files Browse the repository at this point in the history
Co-authored-by: toanlam <[email protected]>
  • Loading branch information
toanlamt and toanlam authored Aug 21, 2024
1 parent b06947c commit f7dca3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lang/en/questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 4 additions & 4 deletions report.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@
}
$output = '';
$output .= "<br /><br />\n";
$output .= $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire');
$output .= '&nbsp;' . (get_string('downloadtextformat', 'questionnaire')) . ':&nbsp;' .
get_string('responses', 'questionnaire').'&nbsp;'.$groupname;
$output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire'));
$output .= html_writer::tag('h2', (get_string('downloadtextformat', 'questionnaire'))
. ':&nbsp;' . get_string('responses', 'questionnaire') . '&nbsp;' .
$groupname . $questionnaire->renderer->help_icon('downloadtextformat', 'questionnaire'));
$output .= $questionnaire->renderer->heading(get_string('textdownloadoptions', 'questionnaire'), 3);
$output .= $questionnaire->renderer->box_start();
$downloadparams = [
'instance' => $instance,
Expand Down

0 comments on commit f7dca3a

Please sign in to comment.