Design "Ajouter équipe"
This commit is contained in:
parent
ea66171e38
commit
7e1b32d605
|
@ -1,7 +1,12 @@
|
|||
<?php
|
||||
require_once "header.php";
|
||||
?>
|
||||
|
||||
if (isset($new_team) && !$has_error) { ?>
|
||||
<div class="mt-4 mb-4">
|
||||
<h1 class="display-4">Ajouter une équipe</h1>
|
||||
</div>
|
||||
|
||||
<?php if (isset($new_team) && !$has_error) { ?>
|
||||
<div class="alert alert-success">
|
||||
Votre équipe a bien été créée ! Voici le code d'accès à transmettre aux autres membres de votre équipe : <strong><?= $new_team->access_code ?></strong>
|
||||
</div>
|
||||
|
@ -26,7 +31,7 @@ if (isset($new_team) && !$has_error) { ?>
|
|||
<div class="form-group col-md-6">
|
||||
<label for="trigram">Trigramme :</label>
|
||||
<input class="form-control" type="text" id="trigram" name="trigram"
|
||||
value="<?php if (isset($new_team)) echo $new_team->trigram ?>" required/>
|
||||
value="<?php if (isset($new_team)) echo $new_team->trigram ?>" pattern="[A-Z]{3}" maxlength="3" required/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -35,7 +40,7 @@ if (isset($new_team) && !$has_error) { ?>
|
|||
<select id="problem" name="problem" class="custom-select">
|
||||
<?php
|
||||
for ($i = 1; $i <= 4; ++$i)
|
||||
echo "<option value='$i'>$i</option>";
|
||||
echo "<option value='$i' " . (isset($new_team) && $new_team->problem == $i ? "selected" : "") . ">$i</option>";
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue