diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..852fdd7 --- /dev/null +++ b/templates/index.html | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "base.html" %} | ||
2 | {% block contenu %} | ||
3 | <h1>{{ conf.titre }}</h1> | ||
4 | |||
5 | {% if e | length >0 %} | ||
6 | <div id="erreurs"> | ||
7 | <h2>Log d'erreurs</h2> | ||
8 | <ul> | ||
9 | {% for err in e %} | ||
10 | <li>{{ err }}</li> | ||
11 | {% endfor %} | ||
12 | </ul> | ||
13 | </div> | ||
14 | {% endif %} | ||
15 | |||
16 | <div id="contenu"> | ||
17 | |||
18 | <p>Cochez la case dès que vous entendez une réplique idiote !</p> | ||
19 | <table id="grille"> | ||
20 | {% for ligne in bingo %} | ||
21 | <tr>{% for elt in ligne %} | ||
22 | {% if elt == "0" %} | ||
23 | <td class="vide"></td> | ||
24 | {% else %} | ||
25 | <td onclick='validecase(this)'>{{ elt }}</td> | ||
26 | {% endif %} | ||
27 | {% endfor %} | ||
28 | </tr> | ||
29 | {% endfor %} | ||
30 | </table> | ||
31 | |||
32 | <p>Score : <span id="score">0</span></p> | ||
33 | |||
34 | <p onclick="effacegrille()" class="cliquable">Effacer la grille</p> | ||
35 | |||
36 | <hr> | ||
37 | <a href="/?grille={{ chainecode }}">Lien permanent vers cette grille</a> | ||
38 | |||
39 | </div> | ||
40 | |||
41 | |||
42 | {% endblock %} | ||