1b8a7434e2
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
27 lines
996 B
HTML
27 lines
996 B
HTML
<tr valign="top">
|
|
<td colspan="2" align="center">
|
|
<input type="submit" <?php echo $submitscript ?> value="<?php print_string('savechanges') ?>" />
|
|
<?php
|
|
if ($question->id) {
|
|
?>
|
|
<input type="submit" name="makecopy" <?php echo $submitscript ?> value="<?php print_string("makecopy", "quiz") ?>" />
|
|
<?php
|
|
}
|
|
?>
|
|
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
|
|
<input type="hidden" name="sesskey" value="<?php p($USER->sesskey) ?>" />
|
|
<input type="hidden" name="id" value="<?php p($question->id) ?>" />
|
|
<input type="hidden" name="qtype" value="<?php p($question->qtype) ?>" />
|
|
<?php
|
|
echo $hiddenfields;
|
|
|
|
// The following hidden field indicates that the versioning code should be turned on, i.e.,
|
|
// that old versions should be kept if necessary
|
|
?>
|
|
<input type="hidden" name="versioning" value="on" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
</form>
|