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

Benjamin Mako Hill || Want to submit a patch?