mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
When setting up a new quiz the teacher is always redirected to the question edit page so there is no need for two buttons on mod.html
This commit is contained in:
parent
9f9cff594c
commit
c1edf51947
1 changed files with 2 additions and 0 deletions
|
@ -554,8 +554,10 @@
|
|||
<input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
|
||||
<input type="submit" value="<?php print_string("savechanges") ?>" />
|
||||
<!-- provide an additional button to edit questions -->
|
||||
<?php if ($form->instance) { ?>
|
||||
<input type="hidden" name="redirecturl" value="<?php p("$CFG->wwwroot/mod/quiz/edit.php?quizid=$form->instance") ?>" />
|
||||
<input type="submit" name="redirect" value="<?php print_string('saveandedit', 'quiz') ?>" />
|
||||
<?php } ?>
|
||||
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
|
||||
</center>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue