On n'affiche pas le bouton pour archiver si l'élection est archivée

This commit is contained in:
Tom Hubrecht 2021-03-27 12:37:44 +01:00
parent e19f0f4ab9
commit da43ecbffe

View file

@ -81,6 +81,7 @@
</a> </a>
{# Archivage #} {# Archivage #}
{% if not election.archived %}
<a class="dropdown-item" href="{% url 'election.archive' election.pk %}"> <a class="dropdown-item" href="{% url 'election.archive' election.pk %}">
<span class="icon"> <span class="icon">
<i class="fas fa-archive"></i> <i class="fas fa-archive"></i>
@ -88,6 +89,7 @@
<span>{% trans "Archiver" %}</span> <span>{% trans "Archiver" %}</span>
</a> </a>
{% endif %} {% endif %}
{% endif %}
{% endif %} {% endif %}