<p>Please select from one of the following pages.</p>
<div style="text-align: center;">
- <p><%= button_to 'Confirm This Vote', :action => 'confirm', :id => @password %></p>
-
- <p>If you choose, you will be able to go back<br />and change it up until
- the end of hte voting period.</p>
- <p><%= button_to 'Discard This Vote', votepassword_url(
- :action => 'index', :urlpassword => @password) %></p>
-
- <p>You will be returned to the voting page to vote<br /> again, if you choose.</p>
-
+ <p><% if @voter.election.kiosk? and params[:kiosk] == 'true' %>
+ <%= button_to 'Confirm This Vote', :action => 'confirm', :id => @password,
+ :kiosk => true %>
+ <% else %>
+ <%= button_to 'Confirm This Vote', :action => 'confirm', :id => @password %>
+ <% end %>
+ </p>
+
+ <% unless @voter.election.kiosk? %>
+ <p>If you choose, you will be able to go back<br />and change it up until
+ the end of the voting period.</p>
+ <% end %>
+
+ <p><% if @voter.election.kiosk? and params[:kiosk] == 'true' %>
+ <%= button_to 'Discard This Vote',
+ votepassword_url(:action => 'index', :urlpassword => @password,
+ :kiosk => true) %>
+ <% else %>
+ <%= button_to 'Discard This Vote',
+ votepassword_url(:action => 'index', :urlpassword => @password) %>
+ <% end %>
+ </p>
+
</tr>
</div>