%
# basic election information template
-%>
<% unless @election.voters.empty? %>
The following voters are currently registered for this election:
<% @election.voters.each do |voter| %>
- <%= voter.email %>
<% if @edit %>
<%= link_to_remote "Delete",
:complete => "Element.remove('voter#{voter.id}')",
:url => { :action => :delete_voter, :id => voter.id } %>
<% end %>
<% end %>
<% end %>