Rajout des bulletins par classement
This commit is contained in:
parent
1cdb125356
commit
4c0611ac96
4 changed files with 49 additions and 5 deletions
21
elections/templates/elections/ballots/rank.html
Normal file
21
elections/templates/elections/ballots/rank.html
Normal 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>
|
|
@ -1,6 +1,6 @@
|
|||
{% load i18n %}
|
||||
|
||||
<table class="table">
|
||||
<table class="table is-striped is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for o in options %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue