1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-05 22:03:54 +02:00

Les questions et réponses ont maintenant de vrais retours à la ligne

This commit is contained in:
Yohann
2020-01-24 09:35:39 +01:00
parent f458f37766
commit e5501c2076
2 changed files with 4 additions and 5 deletions

View File

@ -97,8 +97,7 @@ if (false) {
continue;
?>
<div class="alert alert-info">
<strong>Question <?= $question->getNumber() ?>
:</strong> <?= $question->getQuestion() ?>
<strong>Question <?= $question->getNumber() ?> :</strong> <?= preg_replace("#\n#", "<br />\n", $question->getQuestion()) ?>
<br/>
<?php
if ($question->getAttachedFile() !== null) { ?>
@ -107,7 +106,7 @@ if (false) {
<br/>
<?php } ?>
<?php if (Phase::getCurrentPhase() >= Phase::PHASE4) { ?>
<strong>Réponse :</strong> <?= $question->getAnswer() ?><br/>
<strong>Réponse :</strong> <?= preg_replace("#\n#", "<br />\n", $question->getAnswer()) ?><br/>
<?php
if ($question->getAttachedFile() !== null) { ?>
<em>Pièce jointe attachée :</em>