1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 13:37:22 +02:00

Nombreuses petites corrections, ajout de texte.

Les Correspondances peuvent démarrer :)
This commit is contained in:
Yohann
2019-10-22 14:55:33 +02:00
parent 8adad9d5f7
commit 5c88ccb91a
32 changed files with 371 additions and 236 deletions

View File

@ -13,6 +13,16 @@ if (isset($answer_questions) && !$has_error) { ?>
</div>
<?php } ?>
<div class="alert alert-info">
Deux autres équipes ayant travaillé sur le même problème que vous vous ont posé quelques questions. Afin de faire
avancer l'échange, vous êtes invités à répondre à leurs interrogations. Vous êtes libres d'ajouter à votre souhait
un paragraphe de remarques.
</div>
<div class="alert alert-warning">
<strong>Date limite de soumission des réponses :</strong> <?= formatDate($CONFIG->getEndPhase3Date(), true) ?>
</div>
<div class="alert alert-info">
<strong>Lien de la vidéo :</strong> <a href="<?= $video->getLink() ?>"><?= $video->getLink() ?></a>
</div>
@ -22,18 +32,21 @@ if (isset($answer_questions) && !$has_error) { ?>
<?php
foreach ($questions as $questions_team) {
$from = Team::fromId($questions_team[0]->getFrom());
$remark = $questions_team[0];
echo "<h4>Questions de l'équipe " . $from->getName() . " (" . $from->getTrigram() . ") :</h4>\n";
?>
<form method="POST" enctype="multipart/form-data">
<input type="hidden" name="from" value="<?= $from->getTrigram() ?>"/>
<?php
for ($i = 0; $i < sizeof($questions_team); ++$i) {
$question = $questions_team[$i];
if ($question->getQuestion() == null)
if ($i > 0 && $question->getQuestion() == null)
continue;
?>
<div class="alert alert-info">
<strong>Question <?= $i + 1 ?> :</strong> <?= $question->getQuestion() ?><br/>
<strong><?= $i == 0 ? "Remarques générales :" : "Question " . $question->getNumber() . " :" ?></strong>
<?= $question->getQuestion() ?><br/>
<?php
if ($question->getAttachedFile() != null) { ?>
Pièce jointe :
@ -41,9 +54,9 @@ foreach ($questions as $questions_team) {
<?php } ?>
<div class="form-group row">
<div class="form-group col-md-12">
<label for="answer_<?= $i + 1 ?>">Réponse :</label>
<textarea class="form-control" id="answer_<?= $i + 1 ?>"
name="answer_<?= $i + 1 ?>"><?= $question->getAnswer() ?></textarea>
<label for="answer_<?= $i ?>"><strong>Réponse :</strong></label>
<textarea class="form-control" id="answer_<?= $i ?>"
name="answer_<?= $i ?>"><?= $question->getAnswer() ?></textarea>
</div>
</div>
<?php
@ -53,8 +66,8 @@ foreach ($questions as $questions_team) {
<?php } ?>
<div class="form-group row">
<div class="form-group col-md-12">
<label for="file_<?= $i + 1 ?>">Ajouter une pièce jointe (<em>facultatif</em>) :</label>
<input type="file" name="file_<?= $i + 1 ?>" id="file_<?= $i + 1 ?>"/>
<label for="file_<?= $i ?>">Ajouter une pièce jointe (<em>facultatif</em>) :</label>
<input type="file" name="file_<?= $i ?>" id="file_<?= $i ?>"/>
</div>
</div>
</div>