X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/94f498a0718776efa90193c918c6dd22f51329ac..8f23a174c70223831055e1498b50c3ba260858fe:/app/views/voter/_sortable_vote.rhtml diff --git a/app/views/voter/_sortable_vote.rhtml b/app/views/voter/_sortable_vote.rhtml new file mode 100644 index 0000000..4154482 --- /dev/null +++ b/app/views/voter/_sortable_vote.rhtml @@ -0,0 +1,15 @@ +<% %> +
+
    + <% for ranking in @voter.vote.rankings %> +
  1. + <%=h ranking.candidate.name.capitalize %>
  2. + <% end %> +
+
+ +
+ +<%= sortable_element 'rankings-list', + :url => { :action => "sort_candidates", :id => @voter.vote.id }, + :complete => visual_effect(:highlight, 'rankings-list') %> \ No newline at end of file