Skip to content

Commit

Permalink
Add link to test settings directly from the exercises list page
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Apr 21, 2015
1 parent 6d03b30 commit 48c6606
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main/exercice/exercise.php
Expand Up @@ -661,12 +661,18 @@
$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 .='<a href="exercise_report.php?'.api_get_cidreq().'&exerciseId='.$row['id'].'">'.
Display :: return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'</a>';
Expand Down

0 comments on commit 48c6606

Please sign in to comment.