Browse Source

Modif page login

master
Christophe SCAYA 4 years ago
parent
commit
2bb212e442
  1. 1
      quiz_atomes/templates/quiz_atomes/login.html
  2. 46
      quiz_atomes/templates/quiz_atomes/settings.html

1
quiz_atomes/templates/quiz_atomes/login.html

@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
<h3 class="text-center"><b>Nouvelle partie</b></h3>
<p class="text-center">Pour accéder au quiz, utilise le login utilisé pour accéder aux ordinateurs du collège.
<br/>Choisis ensuite un nombre d'atomes et à toi de jouer !</p>
<p class="text-center">Si ton login n'est pas répertorié, merci de contacter M.SCAYA sur Pronote !</p>
<form action="{% url "login" %}" method="POST">{% csrf_token %}
<table class="table w-auto table-responsive-lg">
{{ form.as_table }}

46
quiz_atomes/templates/quiz_atomes/settings.html

@ -1,46 +0,0 @@ @@ -1,46 +0,0 @@
{% extends 'basic_template.html' %}{% block 'body' %}
<nav class="navbar navbar-light">
<div class="container"> <a class="navbar-brand text-primary" href="{% url "quiz_atomes" %}">
<i class="fa fa-arrow-left"></i>
</a>
</div>
</nav>
<div class="py-2 d-flex flex-column justify-content-center align-items-center">
<h3 class="text-center"><b>Paramètres du quiz</b></h3>
<form action="{% url "settings" %}" method="POST" name="settings">{% csrf_token %}
<table class="table w-auto table-responsive-lg">
<tr>
<td>NOM :</td>
<td><input id="nom" name="nom" maxlength="10" value="{{nom}}"></td>
</tr>
<tr>
<td>Prénom :</td>
<td><input id="prenom" name="prenom" maxlength="10" value="{{prenom}}"></td>
</tr>
<tr>
<td>Nombre<br/>d'atomes :</td>
<td class="align-middle">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="nb" id="inlineRadio1" value="10" {% if difficulte == "10" %}checked{% endif %}>
<label class="form-check-label" for="inlineRadio1">10</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="nb" id="inlineRadio1" value="20" {% if difficulte == "20" %}checked{% endif %}>
<label class="form-check-label" for="inlineRadio2">20</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="nb" id="inlineRadio1" value="30" {% if difficulte == "30" %}checked{% endif %}>
<label class="form-check-label" for="inlineRadio1">30</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="nb" id="inlineRadio1" value="40" {% if difficulte == "40" %}checked{% endif %}>
<label class="form-check-label" for="inlineRadio2">40</label>
</div>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="OK"></td>
</tr>
</table>
</form>
</div>{% endblock %}
Loading…
Cancel
Save