Skip to content

Commit

Permalink
Add message when exercise is added in learning path #1720
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 10, 2017
1 parent b3121fd commit ac51a13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/exercise/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ function multiple_answer_true_false_onchange(variable) {
}

echo '</div>';

if ($objExercise->added_in_lp()) {
echo Display::return_message(get_lang('AddedToLPCannotBeAccessed'), 'warning');
}

echo '<div class="alert alert-info">'.
sprintf(get_lang('XQuestionsWithTotalScoreY'), $objExercise->selectNbrQuestions(), $maxScoreAllQuestions);
if ($objExercise->random > 0) {
Expand Down

1 comment on commit ac51a13

@jmontoyaa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.