fixed a large number of bugs in the software (see wiki) over a days work
[selectricity-live] / app / views / voter / review.rhtml
1 <div id="title-header">
2   <span class="header">Review</span>
3   <span class="subheader"><%= @voter.election.name %></span>
4 </div>
5
6 <p><strong>Your vote will not be recorded until you confirm it on this
7 page.</strong> Please review your vote carefully before clicking 
8 confirm.</p>
9
10 <p>You have ranked the candidates in the following order (from most
11 preferred to least preferred:</p>
12
13 <ol>
14   <% for rank in @voter.vote.rankings.sort %>
15   <li><%=h rank.candidate.name.capitalize %> </li>
16   <% end %>
17 </ol>
18
19 <div class="normal-header">
20   <span class="header">Confirm/Discard</span>
21   <span class="subheader"></span>
22 </div>
23
24 <p>Please select from one of the following pages.</p>
25
26 <div style="text-align: center;">
27   <p><% if @voter.election.kiosk? and params[:kiosk] == 'true' %>
28         <%= button_to 'Confirm This Vote', :action => 'confirm', :id => @password,
29                       :kiosk => true %>
30       <% else %>
31         <%= button_to 'Confirm This Vote', :action => 'confirm', :id => @password %>
32       <% end %>
33   </p>
34
35   <% unless @voter.election.kiosk? %>
36     <p>If you choose, you will be able to go back<br />and change it up until
37     the end of the voting period.</p>
38   <% end %>
39   
40   <p><% if @voter.election.kiosk? and params[:kiosk] == 'true' %>
41         <%= button_to 'Discard This Vote', 
42             votepassword_url(:action => 'index', :urlpassword => @password,
43                              :kiosk => true) %>
44       <% else %>
45         <%= button_to 'Discard This Vote', 
46             votepassword_url(:action => 'index', :urlpassword => @password) %>
47       <% end %>
48     </p>
49     
50 </tr>
51 </div>

Benjamin Mako Hill || Want to submit a patch?