diff options
author | Denise sur Lya <sekhmet@lya> | 2021-07-29 16:58:10 +0200 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2021-07-29 16:58:10 +0200 |
commit | 8da62cfdd34686b48c0ef22c1c6158963a2c8579 (patch) | |
tree | ff08ea581824e7c06de70318739c23f6ef822808 /templates | |
parent | 487aa49cfc31c1358e912966d63f792bab2638f5 (diff) | |
download | bingo-8da62cfdd34686b48c0ef22c1c6158963a2c8579.tar.gz bingo-8da62cfdd34686b48c0ef22c1c6158963a2c8579.tar.zst bingo-8da62cfdd34686b48c0ef22c1c6158963a2c8579.zip |
ajout de la page liste
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 1 | ||||
-rw-r--r-- | templates/liste.html | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index d1b4376..ee9aa18 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -21,6 +21,7 @@ | |||
21 | <nav> | 21 | <nav> |
22 | <a href="/">Grille aléatoire</a> | | 22 | <a href="/">Grille aléatoire</a> | |
23 | <a href="/custom">Créer une grille personnalisée</a> | | 23 | <a href="/custom">Créer une grille personnalisée</a> | |
24 | <a href="/liste">Liste complète des remarques</a> | | ||
24 | <a href="/apropos">À propos</a> | 25 | <a href="/apropos">À propos</a> |
25 | 26 | ||
26 | </nav> | 27 | </nav> |
diff --git a/templates/liste.html b/templates/liste.html new file mode 100644 index 0000000..8d87d12 --- /dev/null +++ b/templates/liste.html | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "base.html" %} | ||
2 | {% block contenu %} | ||
3 | <h1>Liste des répliques</h1> | ||
4 | <p>Pour se préparer au maximum avant, ou rigoler comme un(e) andouille...</p> | ||
5 | |||
6 | <div id="contenu"> | ||
7 | <h2>Liste des catégories</h2> | ||
8 | <div id="sommaire"> | ||
9 | <ul>{% for cat in lcateg %} | ||
10 | <li><a href="#{{ cat }}">{{ cat }}</a></li> | ||
11 | {% endfor %} | ||
12 | </ul> | ||
13 | </div> | ||
14 | |||
15 | <div id="repliques"> | ||
16 | {% for i in range(lcateg|length) %} | ||
17 | {% set qr = tableqr[i] %} | ||
18 | |||
19 | <h3 id="{{ lcateg[i] }}">{{ lcateg[i] }}</h3> | ||
20 | <ul> | ||
21 | {% for i in range (qr | length) %} | ||
22 | {% set (q, r) = qr[i] %} | ||
23 | <li>{{ q }} | ||
24 | {% if r | length > 0 %}<span class="petit"><span onclick='affiche_cache(this.parentNode.parentNode.children[1], this)' class="cliquable">Afficher</span> le(s) réponse(s) de choc.</span> | ||
25 | <ul class="reponse"> | ||
26 | {% for elt in r %} | ||
27 | <li>{{ elt }}</li> | ||
28 | {% endfor %} | ||
29 | </ul> | ||
30 | |||
31 | {% endif %} | ||
32 | </li> | ||
33 | {% endfor %} | ||
34 | </ul> | ||
35 | {% endfor %}</div> | ||
36 | |||
37 | |||
38 | |||
39 | </div> | ||
40 | |||
41 | |||
42 | {% endblock %} | ||