mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 03:32:08 +02:00
Design phase 4
This commit is contained in:
@ -32,7 +32,7 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
|
||||
<input class="btn btn-light btn-lg" style="width: 49%;" type="submit" name="reject"
|
||||
value="Refuser la vidéo"/>
|
||||
</form>
|
||||
<br/>a
|
||||
<br/>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-<?= $video->getValidation() == 1 ? "success" : "danger" ?>">
|
||||
La vidéo a été <?= $video->getValidation() == 1 ? "acceptée" : "refusée" ?>.
|
||||
@ -75,6 +75,8 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
|
||||
echo "<br />\n";
|
||||
if (Phase::getCurrentPhase() >= Phase::PHASE4) {
|
||||
$answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $from);
|
||||
if ($answer == null)
|
||||
continue;
|
||||
$link = $answer->getLink();
|
||||
$version = $answer->getVersion();
|
||||
echo "<h5>Vidéo de réponse :</h5>\n";
|
||||
@ -85,12 +87,17 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="validate_video" value=""/>
|
||||
<input type="hidden" name="video_id" value="<?= $answer->getId() ?>"/>
|
||||
<input style="width: 49%;" type="submit" name="accept" value="Accepter la vidéo"/>
|
||||
<input style="width: 49%;" type="submit" name="reject" value="Refuser la vidéo"/>
|
||||
<input class="btn btn-primary btn-lg" style="width: 49%;" type="submit" name="accept"
|
||||
value="Accepter la vidéo"/>
|
||||
<input class="btn btn-light btn-lg" style="width: 49%;" type="submit" name="reject"
|
||||
value="Refuser la vidéo"/>
|
||||
</form>
|
||||
<?php } else
|
||||
echo "<h5>La vidéo a été " . ($answer->getValidation() == 1 ? "acceptée" : "refusée") . ".</h5><br />\n";
|
||||
|
||||
<br />
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-<?= $answer->getValidation() == 1 ? "success" : "danger" ?>">
|
||||
La vidéo a été <?= $answer->getValidation() == 1 ? "acceptée" : "refusée" ?>.
|
||||
</div>
|
||||
<?php }
|
||||
if ($answer->getValidation() != Video::ACCEPTED) {
|
||||
$last_validated_answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $team, Video::ACCEPTED);
|
||||
if ($last_validated_answer !== null) {
|
||||
|
Reference in New Issue
Block a user