2019-09-09 23:48:52 +00:00
|
|
|
<?php require_once "header.php" ?>
|
|
|
|
|
2019-09-25 21:20:05 +00:00
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
<h1 class="display-4">Informations sur l'équipe</h1>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
2019-09-25 21:20:05 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Nom de l'équipe :</strong> <?= $team->getName() ?>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Trigramme :</strong> <?= $team->getTrigram() ?>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-info">
|
2019-10-08 22:53:23 +00:00
|
|
|
<?php if (date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate() && $team->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
2019-10-06 11:29:20 +00:00
|
|
|
<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) { ?>
|
2019-10-18 20:23:00 +00:00
|
|
|
<option value="<?= $i ?>" <?= $team->getProblem() == $i ? "selected" : "" ?>>
|
|
|
|
Problème <?= $i ?></option>
|
2019-10-06 11:29:20 +00:00
|
|
|
<?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 } ?>
|
2019-09-25 21:20:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="alert alert-<?= $team->getValidationStatus() == ValidationStatus::VALIDATED ? "success" : ($team->getValidationStatus() == ValidationStatus::WAITING ? "warning" : "danger") ?>">
|
|
|
|
<strong>Validation de l'équipe
|
|
|
|
:</strong> <?= ValidationStatus::getTranslatedName($team->getValidationStatus()) ?>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-info">
|
2019-10-18 20:23:00 +00:00
|
|
|
<?php
|
|
|
|
if ($team->getEncadrantId() !== null) {
|
|
|
|
$encadrant = User::fromId($team->getEncadrantId());
|
|
|
|
$id = $encadrant->getId();
|
|
|
|
echo "<strong>Encadrant :</strong> <a href=\"$URL_BASE/informations/$id/" . $encadrant->getFirstName() . " " . $encadrant->getSurname() . "\">" . $encadrant->getFirstName() . " " . $encadrant->getSurname() . "</a><br />";
|
|
|
|
}
|
|
|
|
for ($i = 1; $i <= 5; ++$i) {
|
|
|
|
if ($team->getParticipants()[$i - 1] == NULL)
|
|
|
|
continue;
|
|
|
|
$participant = User::fromId($team->getParticipants()[$i - 1]);
|
|
|
|
$id = $participant->getId();
|
|
|
|
echo "<strong>Participant $i :</strong> <a href=\"$URL_BASE/informations/$id/" . $participant->getFirstName() . " " . $participant->getSurname() . "\">" . $participant->getFirstName() . " " . $participant->getSurname() . "</a><br />";
|
|
|
|
}
|
|
|
|
?>
|
2019-09-25 21:20:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Autorise Animath à diffuser les vidéos :</strong> <?= $team->allowPublish() ? "oui" : "non" ?>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
2019-12-13 18:50:32 +00:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<a href="mailto:contact@correspondances-maths.fr?<? foreach ($team->getAllEmails() as $email) echo "bcc=" . $email . "&" ?>subject=Correspondances de Jeunes Mathématicien·ne·s" target="_blank">Envoyer un mail à toute l'équipe</a>
|
|
|
|
</div>
|
|
|
|
|
2020-01-01 20:41:22 +00:00
|
|
|
<? if ($team->getValidationStatus() == ValidationStatus::VALIDATED && $team->getSolution() != null && $team->getSolution()->getValidation() == ValidationStatus::VALIDATED - 1) { ?>
|
2019-10-18 20:23:00 +00:00
|
|
|
<hr/>
|
|
|
|
<!--suppress HtmlUnknownTarget -->
|
|
|
|
<a href="/suivi-correspondances#team-<?= $team->getTrigram() ?>">
|
|
|
|
<button class="btn btn-primary btn-lg btn-block">
|
|
|
|
Aller aux vidéos de l'équipe
|
|
|
|
</button>
|
|
|
|
</a><br/>
|
|
|
|
<form method="POST">
|
|
|
|
<div class="form-group row">
|
|
|
|
<div class="form-group col-md-12">
|
2020-01-23 18:40:48 +00:00
|
|
|
<label for="other_teams">L'équipe va recevoir les vidéos des équipes suivantes (merci d'en
|
2019-10-18 20:23:00 +00:00
|
|
|
sélectionner exactement 2) :</label>
|
|
|
|
<select class="custom-select" id="other_teams" name="other_teams[]"
|
|
|
|
multiple <?= Phase::getCurrentPhase() >= Phase::PHASE2 ? "disabled" : "" ?>>
|
|
|
|
<?php
|
|
|
|
/** @var Team $other_team */
|
|
|
|
foreach ($other_teams as $other_team) {
|
|
|
|
if ($other_team->getId() == $team->getId())
|
|
|
|
continue;
|
2019-09-19 22:02:01 +00:00
|
|
|
|
2019-10-18 20:23:00 +00:00
|
|
|
$team_name = $other_team->getName() . " (" . $other_team->getTrigram() . ")";
|
|
|
|
$team_id = $other_team->getId();
|
|
|
|
echo "<option value=\"$team_id\" " . (in_array($other_team->getId(), $team->getVideoTeamIds()) ? "selected" : "") . ">$team_name</option>\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
2019-09-27 17:18:54 +00:00
|
|
|
</div>
|
2019-10-18 20:23:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
|
|
<?php if (Phase::getCurrentPhase() < Phase::PHASE2) { ?>
|
|
|
|
<input type="submit" class="btn btn-secondary btn-lg btn-block" name="update_video_teams"
|
|
|
|
value="Mettre à jour"/>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-09-19 22:02:01 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2019-09-09 23:48:52 +00:00
|
|
|
<hr/>
|
|
|
|
|
2019-10-06 11:29:20 +00:00
|
|
|
<h2>Autorisations de droit à l'image</h2>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
|
|
|
<?php printDocuments($documents) ?>
|
|
|
|
|
|
|
|
<form method="POST">
|
2019-09-25 21:20:05 +00:00
|
|
|
<input type="submit" class="btn btn-secondary btn-lg btn-block" name="download_zip"
|
|
|
|
value="Télécharger l'archive"/>
|
2019-09-09 23:48:52 +00:00
|
|
|
</form>
|
|
|
|
|
2019-10-18 20:23:00 +00:00
|
|
|
<?php if ($team->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
2019-09-25 21:20:05 +00:00
|
|
|
<hr/>
|
2019-09-09 23:48:52 +00:00
|
|
|
<form method="POST">
|
2019-10-22 12:55:33 +00:00
|
|
|
<div class="form-group row">
|
2019-10-21 21:48:24 +00:00
|
|
|
<label for="message">Message à adresser à l'équipe :</label>
|
|
|
|
<textarea class="form-control" id="message" name="message"></textarea>
|
|
|
|
</div>
|
|
|
|
|
2019-09-25 21:47:02 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group row col-mod-6">
|
2019-09-27 17:18:54 +00:00
|
|
|
<input type="submit" class="btn btn-secondary btn-lg btn-block" name="unvalidate"
|
|
|
|
value="Refuser l'équipe"/>
|
2019-09-25 21:47:02 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-lg btn-block" name="validate" value="Valider l'équipe"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
</form>
|
2019-10-18 20:23:00 +00:00
|
|
|
<?php
|
|
|
|
} elseif ($team->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
2019-10-06 11:29:20 +00:00
|
|
|
<hr/>
|
|
|
|
<form method="POST">
|
2019-10-18 20:23:00 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-lg btn-block" name="delete_team" value="Supprimer l'équipe"
|
|
|
|
style="background-color: #ff2e34"/>
|
2019-10-06 11:29:20 +00:00
|
|
|
</form>
|
|
|
|
<?php }
|
2019-09-09 23:48:52 +00:00
|
|
|
|
2019-09-12 10:18:15 +00:00
|
|
|
require_once "footer.php" ?>
|