Commit d3beffe1 authored by Hamza Dely's avatar Hamza Dely

[WEI] Résumé des listes d'inscription

parent 23702a23
......@@ -1117,6 +1117,10 @@ def WEIinscrits(request, sock, kwargs):
variables["liste_pre"] = out["msg"]["liste_pre"]
variables["liste_insc"] = out["msg"]["liste_insc"]
variables["nb_pre_total"] = out["msg"]["nb_pre"][0]
variables["nb_pre_paye"] = out["msg"]["nb_pre"][1]
variables["nb_pre_caution"] = out["msg"]["nb_pre"][2]
variables["nb_insc"] = out["msg"]["nb_insc"]
return (variables, "note/wei_inscrits.html")
......
......@@ -30,6 +30,8 @@
<form method="post" action="">
{% csrf_token %}
<h2>Liste des préinscrits au WEI</h2>
<h4>{{ nb_pre_total }} préinscrit{{ nb_pre_total|pluralize }}, {{ nb_pre_paye }} WEI payé{{ nb_pre_paye|pluralize }}, {{ nb_pre_caution }} caution{{ nb_pre_caution|pluralize }} donnée{{ nb_pre_caution|pluralize }}</h4>
<br/>
<table class="table table-condensed table-striped">
<thead>
<tr>
......@@ -73,6 +75,8 @@
</tbody>
</table>
<h2>Liste des inscrits au WEI</h2>
<h4>{{ nb_insc }} inscrit{{ nb_insc|pluralize }}</h4>
<br/>
<table class="table table-condensed table-striped">
<thead>
<tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment