Rajoute le téléchargement des résultats en un fichier texte, pour l'instant les votes par classement ne sont pas supportés

This commit is contained in:
Tom Hubrecht 2021-06-10 21:13:48 +02:00
parent 6aa269c2a5
commit bd365fe387
6 changed files with 41 additions and 0 deletions

View file

@ -128,6 +128,14 @@
</a>
{% endif %}
{# Export des résultats #}
<a class="dropdown-item" href="{% url 'election.download-results' election.pk %}">
<span class="icon">
<i class="fas fa-save"></i>
</span>
<span>{% trans "Télécharger les résultats" %}</span>
</a>
{# Archivage #}
{% if not election.archived %}
<a class="dropdown-item" href="{% url 'election.archive' election.pk %}">

View file

@ -0,0 +1,3 @@
{{ question.text }} :
{% for o in question.options.all %}- ({% if o.abbreviation %}{{ o.abbreviation }}{% else %}{{ forloop.counter }}{% endif %}) {{ o.text }}{% if not forloop.last %}
{% endif %}{% endfor %}

View file

@ -0,0 +1,3 @@
{{ question.text }} :
{% for o in question.options.all %}- {{ o.nb_votes }} {{ o.text }}{% if not forloop.last %}
{% endif %}{% endfor %}