2020-04-25 10:08:19 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %} Créer jeu {% endblock %}
|
|
|
|
|
|
|
|
{% block titre %} Créer un jeu {% endblock %}
|
|
|
|
|
|
|
|
{% block contenu %}
|
|
|
|
<div id="zone-de-contenu">
|
|
|
|
<div style="width:100%;margin:20px;"> </div>
|
|
|
|
|
|
|
|
<fieldset class="fieldset"><legend style="font-size:25px;">Nom du jeu</legend>
|
|
|
|
{% for message in get_flashed_messages() %}
|
2020-05-08 18:40:22 +00:00
|
|
|
<div class="alert" id="alert{{loop.index}}">
|
|
|
|
<button type="button" class="close" onclick="javascript:hidealert('alert{{loop.index}}')">×</button>
|
2020-04-25 10:08:19 +00:00
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<form action="" method="POST" accept-charset="utf-8">
|
|
|
|
Nom du jeu : <input type="text" name="name" id="name" placeholder="Nom du jeu"/><br />
|
2020-04-27 18:13:26 +00:00
|
|
|
Démarrer le jeu (founir 4 joueurs) <input type="checkbox" name="fixplayers" /> <br />
|
|
|
|
<br />
|
|
|
|
Ajoutez au moins un joueur :<br /><br />
|
|
|
|
<table>
|
|
|
|
<tr><td></td><td>Login</td><td>Maitre jeu</td>
|
|
|
|
<tr><td>
|
|
|
|
Joueur 1* :</td><td> <input type="text" name="player0" placeholder="Login" /><br />
|
|
|
|
</td><td>
|
|
|
|
<input type="radio" name="admin" value="0" checked />
|
|
|
|
</td>
|
|
|
|
</tr><tr><td>
|
|
|
|
Joueur 2 :</td><td> <input type="text" name="player1" placeholder="Login ou vide" /><br />
|
|
|
|
</td><td>
|
|
|
|
<input type="radio" name="admin" value="1" />
|
|
|
|
</td>
|
|
|
|
</tr><tr><td>
|
|
|
|
Joueur 3 :</td><td> <input type="text" name="player2" placeholder="Login ou vide" /><br />
|
|
|
|
</td><td>
|
|
|
|
<input type="radio" name="admin" value="2" />
|
|
|
|
</td>
|
|
|
|
</tr><tr><td>
|
|
|
|
Joueur 4 :</td><td> <input type="text" name="player3" placeholder="Login ou vide" /><br />
|
|
|
|
</td><td>
|
|
|
|
<input type="radio" name="admin" value="3" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<input id="submit" type="submit" value="Créer" />
|
2020-04-25 10:08:19 +00:00
|
|
|
</form>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|