additional guidance throughout the voting process

This commit is contained in:
Ben Adida 2022-01-27 21:28:20 -05:00
parent b92f1d44ff
commit 08c187498d
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,10 @@ bad voter ID or password, please try again.
{% endif %}
{% if cast_ballot == "1" %}
<input type="submit" class="button" value="authenticate &amp; cast ballot" />
<p class="small">
Your voter ID and password can be found in the email you received.
If you cannot find your login information, contact your election administrator at <tt>{{election.help_email}}</tt>.
</p>
<p class="small">
Cast as many ballots as you wish: only the last one counts.
</p>

View File

@ -350,6 +350,9 @@ BOOTH.click_checkbox = function(question_num, answer_num, checked_p) {
checkbox.disabled = false;
});
$('#warning_box').html("");
if (BOOTH.election.questions[question_num].max != null && (BOOTH.ballot.answers[question_num].length < BOOTH.election.questions[question_num].max)) {
$('#warning_box').html("You may select up to " + BOOTH.election.questions[question_num].max + " choices total.");
}
}
};