1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 07:40:29 +02:00

Design pages "Rejoindre une équipe" et "Informations"

This commit is contained in:
galaxyoyo
2019-09-25 00:57:41 +02:00
parent 615f2da9a4
commit 371605d265
5 changed files with 56 additions and 37 deletions

View File

@ -1,22 +1,33 @@
<?php require_once "header.php" ?>
<h1><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
<div class="mt-4 mb-4">
<h1 class="display-4"><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
</div>
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
Équipe : <?= $team === null ? "Pas d'équipe" : "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . " (" . $team->getTrigram() . ")</a>" ?><br />
<div class="alert alert-info">
<strong>Équipe :</strong> <?= $team === null ? "Pas d'équipe" : "<a href=\"/equipe/" . $team->getTrigram() . "\">"
. $team->getName() . " (" . $team->getTrigram() . ")</a>" ?>
</div>
<?php } ?>
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
Lycée : <?= $user->getSchool() ?><br />
Classe : <?= SchoolClass::getTranslatedName($user->getClass()) ?><br />
<div class="alert alert-info">
<strong>Lycée :</strong> <?= $user->getSchool() ?><br />
<strong>Classe :</strong> <?= SchoolClass::getTranslatedName($user->getClass()) ?>
</div>
<?php } elseif ($user->getDescription() != "") { ?>
Description : <?= $user->getDescription() ?><br />
<div class="alert alert-info">
<strong>Description :</strong> <?= $user->getDescription() ?>
</div>
<?php }
echo "<hr />";
if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
<h2>Autorisations</h2>
<div class="mt-4 mb-4">
<h1 class="display-5">Autorisation de droit à l'image :</h1>
</div>
<?php
printDocuments($documents);
}