mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 17:33:18 +02:00
MDL-80489 qtype_ddtos: Help Text for Choices section
This commit is contained in:
parent
462d5f04a8
commit
a15c17cc0e
@ -66,4 +66,10 @@ class qtype_ddwtos_edit_form extends qtype_gapselect_edit_form_base {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected function definition_inner($mform): void {
|
||||
parent::definition_inner($mform);
|
||||
$mform->insertElementBefore($mform->createElement('static', 'previewarea', '',
|
||||
get_string('choicesacceptedtext', 'qtype_ddwtos')), 'shuffleanswers');
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ $string['answer'] = 'Answer';
|
||||
$string['blank'] = 'blank';
|
||||
$string['blanknumber'] = 'Blank {$a}';
|
||||
$string['correctansweris'] = 'The correct answer is: {$a}';
|
||||
$string['choicesacceptedtext'] = 'Write the answer to be dragged into each gap. You can include extra answers to increase difficulty. <br/>
|
||||
Accepted text formatting: <sub>, <sup>, <b>, <i>, <em>, <strong>. TeX is also accepted, using $$ at the start and at the end.';
|
||||
$string['errorlimitedchoice'] = 'Choice [[{$a}]] has been used more than once without being set to "Unlimited". Please recheck this question.';
|
||||
$string['infinite'] = 'Unlimited';
|
||||
$string['pleaseputananswerineachbox'] = 'Please put an answer in each box.';
|
||||
|
@ -27,6 +27,7 @@ Feature: Test editing a drag and drop into text questions
|
||||
And I should see "Choice [[1]]"
|
||||
And I should see "Choice [[2]]"
|
||||
And I should see "Choice [[3]]"
|
||||
And I should see "Write the answer to be dragged into each gap. You can include extra answers to increase difficulty." in the "Choices" "fieldset"
|
||||
And I set the following fields to these values:
|
||||
| Question name | Edited question name |
|
||||
And I press "id_submitbutton"
|
||||
|
Loading…
x
Reference in New Issue
Block a user