3 <% if @voter.election.shortdesc %>
4 <h1><%= @voter.election.shortdesc %></h1>
9 <% if @voter.election.longdesc %>
10 <p><strong>Description:</strong></p>
11 <blockquote><%= @voter.election.longdesc %></blockquote>
16 <% if @voter.voted? %>
17 <p>You have already voted. You can:</p>
20 <li><%= link_to "Change your vote.", quickaction_url( :votename => @voter.election.name, :action => 'change' ) %></li>
22 <li><%= link_to "View election results.", quickaction_url( :votename => @voter.election.name, :action => 'results' ) %></li>
26 <p>Drag and drop the items on the following list until they are in order
27 from <em>most preferred at the top</em> to <em>least preferred at the
28 bottom</em>. When you are done, press confirm to record your vote.</p>
30 <div id="sortable_list">
31 <ol id="rankings-list">
32 <% for ranking in @voter.vote.rankings %>
33 <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
34 <%= ranking.candidate.name.capitalize %></li>
39 <div class="clearbox"></div>
41 <%= button_to "Confirm Vote", quickaction_url( :action => 'confirm', :votename => @voter.election.name) %>
43 <%= sortable_element 'rankings-list',
44 :url => { :action => "sort_candidates" , :id => @voter.vote.id },
45 :complete => visual_effect(:highlight, 'rankings-list') %>