2019-09-09 23:48:52 +00:00
|
|
|
<?php
|
2019-09-24 22:57:41 +00:00
|
|
|
require_once "header.php" ; ?>
|
2019-09-09 23:48:52 +00:00
|
|
|
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
<h1 class="display-4">Rejoindre une équipe</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (isset($join_team) && !$has_error) { ?>
|
|
|
|
<div class="alert alert-success">
|
|
|
|
Vous avez bien rejoint l'équipe <?= $_SESSION["team"]->getName() ?> !
|
|
|
|
</div>
|
2019-09-12 16:47:57 +00:00
|
|
|
<?php } elseif(date("Y-m-d H:i:s") >= $CONFIG->getInscriptionDate()) { ?>
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="alert alert-danger">
|
|
|
|
La date limite d'inscription est dépassée.
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
<?php } else { ?>
|
|
|
|
|
|
|
|
<form method="POST">
|
2019-09-24 22:57:41 +00:00
|
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="access_code">Code d'accès :</label>
|
|
|
|
<input class="form-control" type="text" id="access_code" name="access_code" pattern="[A-Za-z0-9]{6}" required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
<input class="btn btn-primary btn-lg btn-block" name="join_team" type="submit" value="Rejoindre l'équipe"/>
|
|
|
|
</div>
|
2019-09-09 23:48:52 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php require_once "footer.php" ?>
|