1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-27 01:18:38 +02:00

Possibilité de ne pas choisir de problème immédiatement

This commit is contained in:
Yohann
2019-10-04 21:41:12 +02:00
parent 1c33c84a3a
commit 7eba8b542b
7 changed files with 9 additions and 5 deletions

View File

@ -19,7 +19,8 @@ require_once "header.php";
<strong>Trigramme :</strong> <?= $team->getTrigram() ?>
</div>
<div class="alert alert-info">
<strong>Problème :</strong> <a href="/probleme/<?= $team->getProblem() ?>"><?= $team->getProblem() ?></a>
<strong>Problème :</strong> <a href="/probleme/<?= $team->getProblem() ?>">
<?= $team->getProblem() == 0 ? "Pas de problème choisi" : $team->getProblem() ?></a>
</div>
<div class="alert alert-info">
<?php
@ -80,6 +81,7 @@ require_once "header.php";
<div class="form-group row">
<label for="problem">Problème :</label>
<select id="problem" name="problem" class="custom-select">
<option value="0">Choisir un problème (peut être choisi plus tard)</option>
<?php
for ($i = 1; $i <= 4; ++$i)
echo "<option value='$i' " . ($team->getProblem() == $i ? "selected" : "") . ">$i</option>";