]> projects.mako.cc - selectricity/blob - app/views/embed/full_vote.rhtml
TODO has been modified to relfect bug changes already delt with. Also, autogenerated...
[selectricity] / app / views / embed / full_vote.rhtml
1 <div id="header">
2 <%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
3             {:controller => 'front'}, {:target => "_parent"} %><h2>Vote Now</h2>
4 </div>
5 <div id="voting-box">
6         
7         <ul id="rankings-list">
8       <% @voter.vote.rankings.each do |ranking| %>
9                 <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
10                         <img alt="<%= white_list ranking.candidate.name %>"
11                  src="<% if ranking.candidate.picture -%>
12                       <%= url_for ranking.candidate.picture.public_filename(:thumb) -%>
13                      <%- else -%>
14                      /images/default_icon.png
15                      <%- end %>" />
16                         <p class="ranking-info">
17             <strong><%= white_list ranking.candidate.name %></strong><br />
18             <%= white_list ranking.candidate.description %></p>
19                 </li>
20       <% end %>
21         </ul>
22         
23         <div style="clear:both;"></div>
24         
25         <div id="voting-bottom">
26                 <div id="container">
27                         <a href="<%= url_for :action => :confirm, :id => @password, :embed => 'true' %>"><h2 id="submit_vote_button">Submit Vote</h2></a>
28                         <p><b>Drag and drop</b> to rank the choices.</p>
29                 </div>
30         </div>
31 </div>
32
33 <%= sortable_element 'rankings-list',
34     :url => { :action => "sort_candidates", :id => @voter.vote.id } %>
35

Benjamin Mako Hill || Want to submit a patch?