Suppress description of voter-verifiability unless election is verifiable.
[selectricity-live] / app / views / voter / thanks.rhtml
index ab8992cd47345bf73a1c0ebc082b32d996a6ece5..84054d6814a97ddc15c2bbeeecbedfecf180c3f7 100644 (file)
@@ -1,9 +1,26 @@
-<% %>
+<div id="title-header">
+  <span class="header">Vote Recorded</span>
+  <span class="subheader"></span>
+</div>
 
-<p>Your vote has been recorded.</p>
+<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. 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>
+<p>Please record this token for your records and keep it secret. This is
+<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?