Skip to content

Commit

Permalink
MDL-32087 question preview: add a Save button.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timhunt committed May 14, 2012
1 parent 802f8d2 commit a2b4d89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en/question.php
Expand Up @@ -269,6 +269,7 @@
$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.';
Expand Down
2 changes: 2 additions & 0 deletions question/preview.php
Expand Up @@ -252,6 +252,8 @@
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 .
Expand Down

0 comments on commit a2b4d89

Please sign in to comment.