Skip to content

Commit

Permalink
Quiz: Improve end message and saved answers - refs BT#17519
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jul 8, 2020
1 parent adbd499 commit 1e9d9e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions main/inc/lib/exercise.lib.php
Expand Up @@ -4528,10 +4528,9 @@ public static function displayQuestionListByAttempt(
$endOfMessage = $objExercise->getTextWhenFinished();
if (!empty($endOfMessage)) {
echo Display::div(
Display::return_message($endOfMessage, 'normal', false),
$endOfMessage,
['id' => 'quiz_end_message']
);
echo "<div class='clearfix'></div>";
}

$question_list_answers = [];
Expand Down
8 changes: 4 additions & 4 deletions main/template/default/exercise/partials/result_exercise.tpl
Expand Up @@ -49,13 +49,13 @@

<div id="quiz_saved_answers_container">
{% if data.number_of_answers_saved != data.number_of_answers %}
<p class="alert alert-warning">
<span class="label label-warning">
<strong>{{ 'XAnswersSavedByUsersFromXTotal'|get_lang|format(data.number_of_answers_saved, data.number_of_answers) }}</strong>
</p>
</span>
{% else %}
<p class="lead text-success">
<span class="label label-success">
<strong>{{ 'XAnswersSavedByUsersFromXTotal'|get_lang|format(data.number_of_answers_saved, data.number_of_answers) }}</strong>
</p>
</span>
{% endif %}

{% if 'quiz_confirm_saved_answers'|api_get_configuration_value %}
Expand Down

0 comments on commit 1e9d9e6

Please sign in to comment.