mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-01-07 14:22:22 +00:00
Ergonomie dans le menu
This commit is contained in:
parent
d33b404ca7
commit
b66bccb7f0
@ -53,34 +53,40 @@
|
||||
*/
|
||||
foreach ($_SESSION["teams"] as $_team) {
|
||||
$appendice = $_SESSION["role"] == Role::ENCADRANT ? "/" . $_team->getTrigram() : "";
|
||||
$info = sizeof($_SESSION["teams"]) > 1 ? " (" . $_team->getTrigram() . ")" : "";
|
||||
?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/mon-equipe<?= $appendice ?>">Mon équipe<?=$info?></a></li>
|
||||
<?php if ($_team->getValidationStatus() == ValidationStatus::VALIDATED) { ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/ma-participation<?= $appendice ?>">Ma participation<?=$info?></a></li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link">Équipe <?= $_team->getTrigram() ?></a>
|
||||
<ul class="deroule">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/mon-equipe<?= $appendice ?>">Informations sur l'équipe</a>
|
||||
</li>
|
||||
<?php if ($_team->getValidationStatus() == ValidationStatus::VALIDATED) { ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/ma-participation<?= $appendice ?>">Ma participation</a></li>
|
||||
<?php
|
||||
switch (Phase::getCurrentPhase()) {
|
||||
case Phase::PHASE1: ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/envoyer-video-1<?= $appendice ?>">
|
||||
Envoyer ma vidéo (phase 1)<?=$info?></a>
|
||||
Envoyer ma vidéo (phase 1)</a>
|
||||
</li>
|
||||
<?php break;
|
||||
case Phase::PHASE2: ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/poser-questions-2<?= $appendice ?>">
|
||||
Poser des questions (phase 2)<?=$info?></a>
|
||||
Poser des questions (phase 2)</a>
|
||||
</li>
|
||||
<?php break;
|
||||
case Phase::PHASE3: ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/repondre-questions-3<?= $appendice ?>">
|
||||
Répondre aux questions (phase 3)<?=$info?></a>
|
||||
Répondre aux questions (phase 3)</a>
|
||||
</li>
|
||||
<?php break;
|
||||
case Phase::PHASE4: ?>
|
||||
<li class="nav-item active"><a class="nav-link" href="/commenter-echange-4<?= $appendice ?>">
|
||||
Commenter l'échange (phase 4)<?=$info?></a></li>
|
||||
Commenter l'échange (phase 4)</a></li>
|
||||
<?php break;
|
||||
}
|
||||
} ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user