{# Eos - Verifiable elections Copyright © 2017-2021 RunasSudo (Yingtong Li) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #}

{{ election.name }}

{{ election.kind|title }} fingerprint: {{ eosjs.eos.core.hashing.SHA256().update_obj(election).hash_as_b64() }}

{# Convert the template name to a numerical index for comparison #} {% if template == 'booth/welcome.html' %} {% set menuindex = 1 %} {% elif template == 'booth/selections.html' %} {% set menuindex = 2 %} {% elif template == 'booth/encrypt.html' %} {% set menuindex = 2.5 %} {% elif template == 'booth/review.html' %} {% set menuindex = 3 %} {% elif template == 'booth/audit.html' %} {% set menuindex = 4 %} {% elif template == 'booth/cast.html' %} {% if election.can_audit() %} {% set menuindex = 5 %} {% else %} {% set menuindex = 4 %} {% endif %} {% elif template == 'booth/complete.html' %} {% if election.can_audit() %} {% set menuindex = 6 %} {% else %} {% set menuindex = 5 %} {% endif %} {% endif %} {% macro menuitem(index, text) %} {% endmacro %}
{% block helpbtn %} {% endblock %} {% block content %}{% endblock %}
{% block buttons %}{% endblock %}
{% block after %}{% endblock %}