2 <span class="header">Quickvote</span>
3 <span class="subheader"><%=h @voter.election.description.capitalize %></span>
6 <div class="main-content">
10 <p>You have already voted. You can:</p>
13 <li><%= link_to "Change your vote.", quickaction_url( :ident => @voter.election.name, :action => 'change' ) %></li>
15 <li><%= link_to "View election results.", quickaction_url( :ident => @voter.election.name, :action => 'results' ) %></li>
19 <p>Drag and drop the items on the following list until they are in order
20 from <em>most preferred at the top</em> to <em>least preferred at the
21 bottom</em>. When you are done, press confirm to record your vote.</p>
23 <div id="sortable_list">
24 <ol id="rankings-list">
25 <% for ranking in @voter.vote.rankings %>
26 <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
27 <%=h ranking.candidate.name.capitalize %></li>
32 <div class="clear-div"></div>
34 <%= button_to "Confirm Vote", quickaction_url( :action => 'confirm', :ident => @voter.election.name) %>
36 <%= sortable_element 'rankings-list',
37 :url => { :action => "sort_candidates" , :id => @voter.vote.id },
38 :complete => visual_effect(:highlight, 'rankings-list') %>
41 </div> <!-- end main-content -->