Eos/eosweb/core/static/nunjucks/booth/review.html

56 lines
2.8 KiB
HTML
Raw Permalink Normal View History

{% extends templates['booth/base.html'] %}
{#
Eos - Verifiable elections
2018-01-08 22:03:08 +11:00
Copyright © 2017-18 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 <http://www.gnu.org/licenses/>.
#}
{% block content %}
2017-11-28 14:45:05 +11:00
<p>Your vote has <span class="superem">not</span> yet been cast. Your selections are shown below. Please review your selections and ensure you are happy with them before continuing.</p>
2017-11-28 12:57:45 +11:00
<div class="ui negative message">
2017-11-28 14:45:05 +11:00
<p>Your vote has <span class="superem">not</span> yet been cast. Please follow the instructions to continue.</p>
2017-11-28 12:57:45 +11:00
</div>
{% for question in election.questions.impl %}
<h2>{{ loop.index }}. {{ question.prompt }}</h2>
{% include templates[selection_model_view_map[election.questions.__getitem__(loop.index0)._name]["selections_review"]] %}
{% endfor %}
2018-01-30 19:31:29 +11:00
<p>If you are happy with your selections, then make a note of your ballot fingerprint, <span class="hash">{{ eosjs.eos.core.hashing.__all__.SHA256().update_obj(ballot).hash_as_b64(true) }}</span>.</p>
2018-01-08 22:03:08 +11:00
<p>Click ‘Continue’, and you will be able to log in to cast your vote.</p>
{% endblock %}
{% block buttons %}
2017-12-11 17:35:12 +11:00
<button class="ui left floated button" onclick="prevTemplate();">Back</button>
<button class="ui right floated primary button" onclick="nextTemplate(2);">Continue</button>
{% endblock %}
{% block after %}
<div class="ui tiny message" style="margin-top: 3em;">
<div class="header">Information for advanced users</div>
<p>Your ballot fingerprint is <span class="hash">{{ eosjs.eos.core.hashing.__all__.SHA256().update_obj(ballot).hash_as_b64() }}</span>.</p>
<p>If you would like to audit your ballot, <a href="#" onclick="nextTemplate(1);">click here</a></p>
</div>
{% endblock %}
{% block help %}
<p>This screen shows your selections for each of the questions in this election. Please carefully check your selections and ensure they are as you intended.</p>
<p>If there are any problems with your selections, they will be shown in red or orange.</p>
<p>Click the ‘OK’ button below to close this help screen, then click the blue ‘Continue’ button if you are satisfied with your selections, otherwise, click the ‘Back’ button.</p>
<p>If you require further assistance, contact your election administrator.</p>
{% endblock %}