Rajout des bulletins par classement

This commit is contained in:
Tom Hubrecht 2021-04-17 00:43:30 +02:00
parent 1cdb125356
commit 4c0611ac96
4 changed files with 49 additions and 5 deletions

View file

@ -0,0 +1,21 @@
{% load i18n %}
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}
<th>{{ o }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for ballot in ballots.values %}
<tr>
{% for r in ballot %}
<td class="has-text-centered">{{ r }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>

View file

@ -1,6 +1,6 @@
{% load i18n %}
<table class="table">
<table class="table is-striped is-fullwidth">
<thead>
<tr>
{% for o in options %}

View file

@ -29,8 +29,13 @@
<hr>
{# Tableau des bulletins par question #}
{% for q in election.questions.all %}
{{ q.display_ballots }}
{% endfor %}
<div class="columns is-centered is-multiline">
{% for q in election.questions.all %}
<div class="column is-narrow is-flex-shrink-1">
<p class="subtitle">{{ q.text }}</p>
{{ q.display_ballots }}
</div>
{% endfor %}
</div>
{% endblock %}