1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 20:57:22 +02:00

Design "Équipe" et "Problème"

This commit is contained in:
Yohann
2019-09-25 23:20:05 +02:00
parent 6bb27034ce
commit 7a585e33e1
3 changed files with 98 additions and 59 deletions

View File

@ -1,30 +1,26 @@
<?php require_once "header.php" ?>
<?php
if ($has_error)
echo "<h2>Erreur : $error_message</h2>";
?>
<h2>Problème n°<?= $problem ?></h2>
<div class="mt-4 mb-4">
<h2 class="display-3">Problème <?= $problem ?></h2>
</div>
<hr/>
<h2>Équipes inscrites pour ce problème :</h2>
<table style="border: 1px solid black; width: 100%;">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="border: 1px solid black; text-align: center">
<th scope="col">
Équipe
</th>
<th style="border: 1px solid black; text-align: center">
<th scope="col">
Trigramme
</th>
<th style="border: 1px solid black; text-align: center">
<th scope="col">
Date d'inscription
</th>
<th style="border: 1px solid black; text-align: center">
<th scope="col">
État de validation de l'inscription
</th>
</tr>
@ -35,17 +31,17 @@ if ($has_error)
foreach ($teams as $team) {
?>
<tr>
<td style="border: 1px solid black; text-align: center">
<th scope="row">
<?php
if (isset($_SESSION["role"]) && $_SESSION["role"] == Role::ADMIN)
echo "<a href=\"/equipe/" . $team->getTrigram() . "\">" . $team->getName() . "</a>";
else
echo $team->getName();
?>
</td>
<td style="border: 1px solid black; text-align: center"><?= $team->getTrigram() ?></td>
<td style="border: 1px solid black; text-align: center"><?= formatDate($team->getInscriptionDate()) ?></td>
<td style="border: 1px solid black; text-align: center"><?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?></td>
</th>
<td><?= $team->getTrigram() ?></td>
<td><?= formatDate($team->getInscriptionDate()) ?></td>
<td><?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?></td>
</tr>
<?php
}
@ -53,16 +49,16 @@ if ($has_error)
</tbody>
<tfoot>
<tr>
<th style="border: 1px solid black; text-align: center">
<th>
Équipe
</th>
<th style="border: 1px solid black; text-align: center">
<th>
Trigramme
</th>
<th style="border: 1px solid black; text-align: center">
<th>
Date d'inscription
</th>
<th style="border: 1px solid black; text-align: center">
<th>
État de validation de l'inscription
</th>
</tr>