]> projects.mako.cc - selectricity/blob - app/views/voter/_sortable_vote.rhtml
merged changed in from devel to activate voting in full elections
[selectricity] / app / views / voter / _sortable_vote.rhtml
1 <h2>Your Vote</h2>
2
3 <p>Please vote by dragging items in the list below into your preferred
4 order.</p>
5
6 <div id="sortable_list">
7 <ol id="rankings-list">
8   <% for ranking in @voter.vote.rankings %>
9     <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
10       <%=h ranking.candidate.name.capitalize %></li>
11   <% end %>
12 </ol>
13 </div>
14
15 <div class="clear-div"></div>
16
17 <%= sortable_element 'rankings-list',
18     :url => { :action => "sort_candidates", :id => @voter.vote.id },
19     :complete => visual_effect(:highlight, 'rankings-list') %>
20
21 <div style="margin-left: 30pt;">
22 <%= button_to "Confirm Vote", :action => 'review', :id => @voter.password %>
23 </div>

Benjamin Mako Hill || Want to submit a patch?