Merge branch 'MDL-54693-quiz-override-help-icon' of https://github.com/lucaboesch/moodle

This commit is contained in:
Jun Pataleta 2017-11-28 20:10:08 +13:00
commit 012398a8c2
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ $string['attemptlast'] = 'Last attempt';
$string['attemptnumber'] = 'Attempt';
$string['attemptquiznow'] = 'Attempt quiz now';
$string['attempts'] = 'Attempts';
$string['attempts_help'] = 'The total number of attempts allowed (not the number of extra attempts).';
$string['attemptsallowed'] = 'Attempts allowed';
$string['attemptsdeleted'] = 'Quiz attempts deleted';
$string['attemptselection'] = 'Select which attempts to analyze per user:';

View File

@ -200,6 +200,7 @@ class quiz_override_form extends moodleform {
}
$mform->addElement('select', 'attempts',
get_string('attemptsallowed', 'quiz'), $attemptoptions);
$mform->addHelpButton('attempts', 'attempts', 'quiz');
$mform->setDefault('attempts', $this->quiz->attempts);
// Submit buttons.