MDL-69841 Quiz: Review options 'Help' icons do not work correctly

This commit is contained in:
Huong Nguyen
2020-10-30 10:25:43 +07:00
parent 46f6bae002
commit 7e47aca045
4 changed files with 21 additions and 6 deletions
+5 -3
View File
@@ -378,11 +378,13 @@ class mod_quiz_mod_form extends moodleform_mod {
list($identifier, $component) = $string;
$label = get_string($identifier, $component);
$group[] = $mform->createElement('html', html_writer::start_div('review_option_item'));
$el = $mform->createElement('checkbox', $field . $whenname, '', $label);
if ($withhelp) {
$label .= ' ' . $OUTPUT->help_icon($identifier, $component);
$el->_helpbutton = $OUTPUT->render(new help_icon($identifier, $component));
}
$group[] = $mform->createElement('checkbox', $field . $whenname, '', $label);
$group[] = $el;
$group[] = $mform->createElement('html', html_writer::end_div());
}
$mform->addGroup($group, $whenname . 'optionsgrp',
get_string('review' . $whenname, 'quiz'), null, false);
+6 -1
View File
@@ -1159,11 +1159,16 @@ div#dock {
clear: left;
}
#page-mod-quiz-mod #id_reviewoptionshdr .form-check {
width: 90%;
width: auto;
height: 22px;
justify-content: flex-start;
}
#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item {
width: 90%;
height: 22px;
}
// Question navigation block.
.path-mod-quiz #mod_quiz_navblock {
.qnbutton {
+5 -1
View File
@@ -17473,10 +17473,14 @@ div#dock {
clear: left; }
#page-mod-quiz-mod #id_reviewoptionshdr .form-check {
width: 90%;
width: auto;
height: 22px;
justify-content: flex-start; }
#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item {
width: 90%;
height: 22px; }
.path-mod-quiz #mod_quiz_navblock .qnbutton {
text-decoration: none;
font-size: 14px;
+5 -1
View File
@@ -17700,10 +17700,14 @@ div#dock {
clear: left; }
#page-mod-quiz-mod #id_reviewoptionshdr .form-check {
width: 90%;
width: auto;
height: 22px;
justify-content: flex-start; }
#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item {
width: 90%;
height: 22px; }
.path-mod-quiz #mod_quiz_navblock .qnbutton {
text-decoration: none;
font-size: 14px;