mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 02:20: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" ?>
|
@ -46,7 +46,7 @@
|
||||
|
||||
<div class="alert alert-warning">
|
||||
<strong>Attention aux dates !</strong> Si vous ne finalisez pas votre inscription dans le délai indiqué, vous
|
||||
ne pourrez malheureusement pas participer au tournoi.
|
||||
ne pourrez malheureusement pas participer aux Correspondances.
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
|
@ -94,6 +94,7 @@ if (!$has_error) {
|
||||
<h1 class="display-5">Autorisation de droit à l'image :</h1>
|
||||
</div>
|
||||
<?php
|
||||
print_r($documents);
|
||||
printDocuments($documents);
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php } else if ($user->getRole() == Role::ENCADRANT) { ?>
|
||||
|
||||
<div class="form-group row">
|
||||
<label id="description_label" for="description">Activité professionnelle :</label>
|
||||
@ -134,12 +134,17 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php if (isset($_SESSION["team"]) && $_SESSION["team"]->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<?php if (isset($_SESSION["team"]) && $user->getRole() == Role::PARTICIPANT && $_SESSION["team"]->getValidationStatus() == ValidationStatus::NOT_READY
|
||||
&& date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate()) { ?>
|
||||
<hr/>
|
||||
<div class="mt-4 mb-4">
|
||||
<h1 class="display-5">Autorisation de droit à l'image</h1>
|
||||
</div>
|
||||
<em>Ce document peut être modifié tant que l'équipe n'est pas validée.</em>
|
||||
<div class="alert alert-info">
|
||||
<strong>Modèle d'autorisation de droit à l'image :</strong>
|
||||
<a href="/Autorisation de droit à l'image - majeur.pdf">majeur</a> - <a href="/Autorisation de droit à l'image - mineur.pdf">mineur</a>
|
||||
</div>
|
||||
<?php printDocuments($documents); ?>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
|
||||
|
@ -101,7 +101,7 @@ require_once "header.php";
|
||||
<hr/>
|
||||
|
||||
<form method="POST">
|
||||
<input class="btn btn-primary btn-lg btn-block" type="submit" name="leave_team"
|
||||
<input class="btn btn-primary btn-lg btn-block" type="submit" name="leave_team" style="background-color: #ff2e34"
|
||||
value="Quitter l'équipe"/>
|
||||
</form>
|
||||
|
||||
|
Reference in New Issue
Block a user