e74202104929f63f7acabe19b89e12714ea72465
[selectricity-live] / app / views / voter / _vote.rhtml
1 <% %>
2
3 <% if @voter.election.quickvote? %>
4   <h1>QuickVote: <em><%= @voter.election.name %></em></h1>
5   <p><strong>Description:</strong></p>
6   <blockquote><%= @voter.election.description %></blockquote>
7 <% else %>
8   <p><strong>Election:</strong> <%= @voter.election.name %></p>
9   <p><strong>Voter:</strong> <%= @voter.email %></p>
10   <p><strong>Description:</strong></p>
11   <blockquote><%= @voter.election.description %></blockquote>
12 <% end %>
13
14 <p><strong>Candidates:</strong></p>
15 <ol>
16 <% for candidate in @voter.election.candidates.sort %>
17   <li><%= candidate.name %></li>
18 <% end %>
19 </ol>
20
21 <hr />
22
23 <h2>Place Your Vote Here</h2>
24
25 <p>Rank each candidate in order of more preferred to least
26 preferred. (e.g., 123 or 321 or 213, etc.)</p>
27
28 <% if @voter.election.quickvote? %>
29   <%= form_tag quickconfirm_url( :votename => @voter.election.name ) %>
30 <% else %>
31   <%= form_tag :action => 'review', :id => @voter.password %>
32 <% end %>
33
34 <%= text_field :vote, :votestring -%>
35 <%= submit_tag "Submit!" %>
36 <%= end_form_tag %>
37

Benjamin Mako Hill || Want to submit a patch?