2a39b8cf4f3199a2568cd26e5e682e08979c9b9f
[selectricity-live] / app / views / election / _voter_list.rhtml
1 <%
2 # basic election information template
3 -%>
4 <p>The following voters are currently registered for this election:</p>
5
6 <ul>
7   <% @election.voters.each do |voter| %>
8   <div id="voter<%= voter.id %>">
9     <li><%= voter.email %>
10         <% if @edit %>
11         <%= link_to_remote "Delete",
12                     :complete => "Element.remove('voter#{voter.id}')",
13                     :url => { :action => :delete_voter, :id => voter.id } %>
14         <% end %>
15     </li>
16   </div>  
17   <% end %>
18 </ul>
19

Benjamin Mako Hill || Want to submit a patch?