MDL-32087 question preview: add a Save button.

Without this, there are some interactions with the question that could
only be tested by adding the question to a quiz, which was a pain.
This commit is contained in:
Tim Hunt
2012-05-14 19:26:04 +01:00
parent 802f8d2af4
commit a2b4d8968c
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -269,6 +269,7 @@ $string['questiontype'] = 'Question type';
$string['questionuse'] = 'Use question in this activity';
$string['questionvariant'] = 'Question variant';
$string['reviewresponse'] = 'Review response';
$string['save'] = 'Save';
$string['saveflags'] = 'Save the state of the flags';
$string['selectacategory'] = 'Select a category:';
$string['selectaqtypefordescription'] = 'Select a question type to see its description.';
+2
View File
@@ -252,6 +252,8 @@ echo $quba->render_question($slot, $options, $displaynumber);
echo '<div id="previewcontrols" class="controls">';
echo '<input type="submit" name="restart"' . $restartdisabled .
' value="' . get_string('restart', 'question') . '" />', "\n";
echo '<input type="submit" name="save"' . $finishdisabled .
' value="' . get_string('save', 'question') . '" />', "\n";
echo '<input type="submit" name="fill"' . $filldisabled .
' value="' . get_string('fillincorrect', 'question') . '" />', "\n";
echo '<input type="submit" name="finish"' . $finishdisabled .