1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 04:28:46 +02:00

Possibilité pour les équipes de resoumettre une vidéo si refus

This commit is contained in:
Yohann
2019-12-28 14:05:40 +01:00
parent 689d798dc3
commit 4d8d5bdbd7
4 changed files with 33 additions and 2 deletions

View File

@ -64,7 +64,15 @@
<li class="nav-item active"><a class="nav-link" href="/ma-participation<?= $appendice ?>">Ma participation</a></li>
<?php
switch (Phase::getCurrentPhase()) {
case Phase::PHASE1: ?>
case Phase::PHASE1:
case Phase::PHASE12:
if (Phase::getCurrentPhase() == Phase::PHASE12) {
if (Video::getVideo(Reason::SOLUTION, $_team) == NULL)
break;
else if (Video::getVideo(Reason::SOLUTION, $_team, ValidationStatus::WAITING) != NULL)
break;
}
?>
<li class="nav-item active"><a class="nav-link" href="/envoyer-video-1<?= $appendice ?>">
Envoyer ma vidéo (phase 1)</a>
</li>