{% load i18n guardian_tags %}

{{object.identifier}}

{% if user.is_authenticated and show_vote_link %} {% trans 'Vote' %} {% endif %}

{% trans 'Electoral Act - General Information' %}

{{object.description}}
{% for document in object.electoral_documents.all %}
{% if document.documents.all %}
{% for doc in document.documents.all %} {{doc.designation}} {% endfor %}
{% endif %}
{% endfor %}
{% for election in object.elections.all %}

{{election.identifier}}

{{election.get_state_display}}
{{election.minute_begin_date|date:'d-m-Y H:i'}} {{election.minute_end_date|date:'d-m-Y H:i'}}
{{election.description}}
{{election.voting_begin_date|date:'d-m-Y H:i'}} {{election.voting_end_date|date:'d-m-Y H:i'}}
{% get_obj_perms request.user for election as "election_perms" %} {% if "vote_election" in election_perms and election.state >= Election.State.VOTES_SCRUTINIZED %} {% trans 'Votes Reference Consultation' %} {% else %} {% trans 'Votes Reference Consultation' %} {% endif %}
{% if election.get_last_published_roll %} {% endif %}
{% if not election.write_in %}
{% trans 'Candidate lists' %}:
{% for candidate in election.candidates.not_write_in %}
{{candidate}}
{% if candidate.documents.all %}
{% for doc in candidate.documents.all %} {{doc.designation}} {% endfor %}
{% endif %}
{% endfor %} {% endif %}
{% endfor %}