mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 06:20:36 +02:00
Modifications mineures
This commit is contained in:
@ -66,17 +66,21 @@ if (!$has_error) {
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Date de naissance :</strong> <?= formatDate($user->getBirthDate()) ?><br />
|
||||
</div>
|
||||
<?php
|
||||
if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) {
|
||||
?>
|
||||
<div class="alert alert-info">
|
||||
<strong>Date de naissance :</strong> <?= formatDate($user->getBirthDate()) ?><br />
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Sexe :</strong> <?= $user->getGender() == "M" ? "Masculin" : "Féminin" ?><br />
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
<strong>Sexe :</strong> <?= $user->getGender() == "M" ? "Masculin" : "Féminin" ?><br />
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Adresse :</strong> <?= $user->getAddress() . ", " . $user->getPostalCode() . " " . $user->getCity() . ($user->getCountry() == "France" ? "" : ", " . $user->getCountry()) ?><br />
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
<strong>Adresse :</strong> <?= $user->getAddress() . ", " . $user->getPostalCode() . " " . $user->getCity() . ($user->getCountry() == "France" ? "" : ", " . $user->getCountry()) ?><br />
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Adresse e-mail :</strong> <a href="mailto:<?= $user->getEmail() ?>"><?= $user->getEmail() ?></a><br />
|
||||
@ -156,7 +160,7 @@ if (!$has_error) {
|
||||
<?php }
|
||||
|
||||
if ($user->getRole() == Role::ADMIN || $user->getRole() == Role::ORGANIZER) {
|
||||
foreach ($tournaments as $tournament) {
|
||||
foreach ($user->getOrganizedTournaments() as $tournament) {
|
||||
echo "<div class=\"alert alert-info\">Organise le tournoi <a href=\"/tournoi/" . $tournament->getName(). "\">" . $tournament->getName() . "</a></div>";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user