mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-69841-master' of https://github.com/HuongNV13/moodle
This commit is contained in:
commit
5365057493
4 changed files with 21 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue