]> projects.mako.cc - selectricity-live/blob - app/views/voter/details.rhtml
Can upload images on the edit_general_information page as well, but has no checks...
[selectricity-live] / app / views / voter / details.rhtml
1 <div id="title-header">
2   <span class="header">Details</span>
3   <span class="subheader"><%= @election.name %></span>
4 </div>
5
6 <p>This page contains information useful for auditing elections and
7 verifying that votes were tabulated correctly.</p>
8
9 <p>The following invididuals (in random order) voted in this
10 election:</p>
11
12 <ol>
13 <%- @voters.each do |voter| -%>
14 <li><%= voter.email %></li>
15 <%- end -%>
16 </ol>
17
18 <p>The following table lists the votes cast in random order.</p>
19
20 <p>The column marked <em>Verification Token</em> lists tokens that were
21 given to voters at the time of voting. Voters can check to see that the
22 vote that corresponds to their token was recorded correctly. The column
23 marked <em>Vote</em> lists the candidates in order of the voter's
24 preference. To read these votes, refer to the key below.</p>
25
26 <table class="preftable">
27 <tr>
28 <th></th>
29 <th>Verification Token</th>
30 <th>Vote</th>
31 <%- @votes.each_with_index do |vote, i| -%>
32 <tr>
33 <td><%= i + 1 %></td>
34 <td><%= vote.token %></td><td><%= vote.votestring%></td>
35 </tr>
36 <%- end -%>
37 </table>
38
39 <p style="margin-top: 1em;">Key:</p>
40
41 <table class="preftable">
42 <tr>
43 <th>Code</th>
44 <th>Candidate</th>
45 <%- @election.candidates.sort.each_with_index do |c, i| -%>
46 <tr>
47 <td><%= (i + 65).chr %></td>
48 <td><%= c.name %></td>
49 </tr>
50 <%- end -%>
51 </table>
52

Benjamin Mako Hill || Want to submit a patch?