From 48c66062dcb8029eebb29280f835bc43815da086 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 21 Apr 2015 11:42:36 -0500 Subject: [PATCH] Add link to test settings directly from the exercises list page --- main/exercice/exercise.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/exercice/exercise.php b/main/exercice/exercise.php index e86f8a3a32..0258cdee3c 100644 --- a/main/exercice/exercise.php +++ b/main/exercice/exercise.php @@ -661,12 +661,18 @@ if (!empty($exercise_list)) { $rowi = Database :: result($sqlresult, 0, 0); if ($session_id == $row['session_id']) { - // Settings + // Questions list $actions = Display::url( Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL), 'admin.php?'.api_get_cidreq().'&exerciseId='.$row['id'] ); + // Test settings + $actions .= Display::url( + Display::return_icon('settings.png', get_lang('Configure'), '', ICON_SIZE_SMALL), + 'exercise_admin.php?'.api_get_cidreq().'&exerciseId='.$row['id'] + ); + // Exercise results $actions .=''. Display :: return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'';