Suppress description of voter-verifiability unless election is verifiable.
[selectricity-live] / app / views / voter / thanks.rhtml
index 883b4fa78bc08ddd9b873c8b1710ebff5b8eaf5c..84054d6814a97ddc15c2bbeeecbedfecf180c3f7 100644 (file)
@@ -6,10 +6,21 @@
 <p>Your vote has been recorded for the <strong><%= @voter.election.name
 %></strong>.</p>
 
+<% if @voter.election.verifiable %>
 <p>Your unique token for this vote is: <strong><%= @voter.vote.token %></strong></p>
 
 <p>Please record this token for your records and keep it secret. This is
-<strong>not</strong> the same token that you recieved in email. At the
+<strong>not</strong> the same token that you received in email. At the
 end of the election, you will be able to use this token to verify that
 your vote was used in the election and that your vote was recorded
 correctly.</p>
+<% end %>
+
+<% if @voter.election.kiosk? and params[:kiosk] == 'true' %>
+
+<p>Please click the done button below when finished to reset the system
+for the next voter.</p>
+
+<%= button_to "Done", :action => "kiosk_ready", :id => @password, :kiosk => true  %>
+
+<% end %>

Benjamin Mako Hill || Want to submit a patch?