2019-09-09 23:48:52 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
<h1 class="display-4"><?= $user->getFirstName() . " " . $user->getSurname() ?></h1>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Équipe :</strong> <?= $team === null ? "Pas d'équipe" : "<a href=\"/equipe/" . $team->getTrigram() . "\">"
|
|
|
|
. $team->getName() . " (" . $team->getTrigram() . ")</a>" ?>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Lycée :</strong> <?= $user->getSchool() ?><br />
|
|
|
|
<strong>Classe :</strong> <?= SchoolClass::getTranslatedName($user->getClass()) ?>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } elseif ($user->getDescription() != "") { ?>
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Description :</strong> <?= $user->getDescription() ?>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php }
|
|
|
|
|
|
|
|
echo "<hr />";
|
|
|
|
|
2019-09-10 23:17:05 +00:00
|
|
|
if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
<h1 class="display-5">Autorisation de droit à l'image :</h1>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php
|
2019-09-12 10:18:15 +00:00
|
|
|
printDocuments($documents);
|
2019-09-09 23:48:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
require_once "footer.php";
|