mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-26 01:07:29 +02:00
Beaucoup de petites modifications
This commit is contained in:
@ -11,9 +11,22 @@
|
||||
<strong>Trigramme :</strong> <?= $team->getTrigram() ?>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
<strong>Problème :</strong> <a href="/probleme/<?= $team->getProblem() ?>">
|
||||
<?= $team->getProblem() == 0 ? "Pas de problème choisi" : $team->getProblem() ?>
|
||||
</a>
|
||||
<?php if (date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate()) { ?>
|
||||
<label for="problem">Problème :</label>
|
||||
<form method="POST">
|
||||
<select class="custom-select" id="problem" name="select_problem" onchange="this.form.submit()">
|
||||
<option value="0">Pas de problème choisi</option>
|
||||
<?php
|
||||
for ($i = 1; $i <= 4; ++$i) { ?>
|
||||
<option value="<?= $i ?>" <?= $team->getProblem() == $i ? "selected" : "" ?>>Problème <?= $i ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</form>
|
||||
<?php } else { ?>
|
||||
<strong>Problème :</strong> <a href="/probleme/<?= $team->getProblem() ?>">
|
||||
<?= $team->getProblem() == 0 ? "Pas de problème choisi" : $team->getProblem() ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="alert alert-<?= $team->getValidationStatus() == ValidationStatus::VALIDATED ? "success" : ($team->getValidationStatus() == ValidationStatus::WAITING ? "warning" : "danger") ?>">
|
||||
<strong>Validation de l'équipe
|
||||
@ -78,7 +91,7 @@ if ($_SESSION["role"] == Role::ADMIN) { ?>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h2>Autorisations</h2>
|
||||
<h2>Autorisations de droit à l'image</h2>
|
||||
|
||||
<?php printDocuments($documents) ?>
|
||||
|
||||
@ -99,6 +112,11 @@ if ($_SESSION["role"] == Role::ADMIN) { ?>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
} elseif ($team->getValidationStatus() == ValidationStatus::NOT_READY && $_SESSION["role"] == Role::ADMIN) { ?>
|
||||
<hr/>
|
||||
<form method="POST">
|
||||
<input type="submit" class="btn btn-primary btn-lg btn-block" name="delete_team" value="Supprimer l'équipe" style="background-color: #ff2e34"/>
|
||||
</form>
|
||||
<?php }
|
||||
|
||||
require_once "footer.php" ?>
|
Reference in New Issue
Block a user