From: gustav_delius <gustav_delius> Date: Wed, 12 Jan 2005 07:03:25 +0000 (+0000) Subject: When setting up a new quiz the teacher is always redirected to the question edit... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c1edf51947e346240632fb387042458830bdd651;p=moodle.git 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 --- diff --git a/mod/quiz/mod.html b/mod/quiz/mod.html index fa328bb102..d8fb9ca39e 100644 --- a/mod/quiz/mod.html +++ b/mod/quiz/mod.html @@ -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>