1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-03 08:42:49 +02:00

First week fixes

This commit is contained in:
Yohann D'ANELLO
2020-05-05 01:06:57 +02:00
parent a064cc1817
commit 132481fda0
22 changed files with 541 additions and 59 deletions

View File

@ -12,19 +12,33 @@ if (isset($save_synthesis) && !$has_error) { ?>
</div>
<?php } ?>
<?php if (date("Y-m-d H:i:s") < $tournament->getSynthesesDate()) { ?>
<?php if (date("Y-m-d H:i:s") < $tournament->getSynthesesDate2()) {
if (date("Y-m-d H:i:s") < $tournament->getSynthesesDate()) {
?>
<div class="alert alert-warning">
Attention : la date butoir de soumission des notes de synthèse pour le tour 1 est passée. Les prochaines notes de synthèses compteront pour le second tour.
</div>
<?php } ?>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000"/>
<div class="form-row">
<div class="form-group col-md-6">
<label for="dest">Destination de la note de synthèse :</label>
<div class="form-group col-md-4">
<label for="dest">Rôle :</label>
<select class="custom-select" id="dest" name="dest">
<option value="opposant">Opposant</option>
<option value="rapporteur">Rapporteur</option>
</select>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-4">
<label for="round">Tour :</label>
<select class="custom-select" id="round" name="round">
<option value="1">Tour 1</option>
<option value="2" <?= date("Y-m-d H:i") >= $tournament->getSynthesesDate() ? "selected" : "" ?>>Tour 2</option>
</select>
</div>
<div class="form-group col-md-4">
<label for="file">Fichier :</label>
<input class="form-control" type="file" id="file" name="synthese" />
</div>
@ -43,8 +57,9 @@ if (isset($save_synthesis) && !$has_error) { ?>
foreach ($syntheses as $synthesis) {
$file_id = $synthesis->getFileId();
$dest = $synthesis->getDest();
$round = $synthesis->getRound();
$version = $synthesis->getVersion();
echo "<div class=\"alert alert-info\"><strong>Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . "</strong> (version $version) : <a href=\"/file/$file_id\">Télécharger</a></div>";
echo "<div class=\"alert alert-info\"><strong>Note de synthèse " . ($dest == DestType::OPPOSANT ? "de l'opposant" : "du rapporteur") . ", tour $round</strong> (version $version) : <a data-turbolinks=\"false\" href=\"/file/$file_id\">Télécharger</a></div>";
}
if ($team->isSelectedForFinal()) { ?>
@ -56,8 +71,9 @@ if ($team->isSelectedForFinal()) { ?>
foreach ($syntheses_final as $synthesis) {
$file_id = $synthesis->getFileId();
$dest = $synthesis->getDest();
$round = $synthesis->getRound();
$version = $synthesis->getVersion();
echo "<div class=\"alert alert-info\"><strong>Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . "</strong> (version $version) : <a href=\"/file/$file_id\">Télécharger</a></div>";
echo "<div class=\"alert alert-info\"><strong>Note de synthèse " . ($dest == DestType::OPPOSANT ? "de l'opposant" : "du rapporteur") . ", tour $round</strong> (version $version) : <a data-turbolinks=\"false\" href=\"/file/$file_id\">Télécharger</a></div>";
}
}