|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
{% for lobby in lobbies %}
|
|
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
|
|
|
<h6>{{lobby.name}}</h6>
|
|
|
|
|
<h6>{{lobby.nbPlayer}}/6</h6>
|
|
|
|
|
<h6>0/{{lobby.nbPlayer}}</h6>
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<a type="button" class="btn btn-primary" href="">Rejoindre</a>
|
|
|
|
|
</div>
|
|
|
|
@ -37,40 +37,5 @@
|
|
|
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="modalquestions">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Ajouter une question</h5>
|
|
|
|
|
</div>
|
|
|
|
|
<form method="POST" action="/admin/questions/add">
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">Contenu de la question :</label>
|
|
|
|
|
<input type="text" class="form-control" id="content" name="content">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">Chapitre de la question :</label>
|
|
|
|
|
<select class="form-control" id="idChapter" name="idChapter">
|
|
|
|
|
{% for chapter in chapters %}
|
|
|
|
|
<option value="{{chapter.id}}" >{{chapter.name}}</option>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">Réponse 1 de la question :</label>
|
|
|
|
|
<input type="text" class="form-control" id="answer1" name="answer1">
|
|
|
|
|
<input type="radio" name="correctAnswer" checked="checked" value="0"> Correct
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
|
|
|
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|