]> projects.mako.cc - selectricity-live/blob - app/views/election/_voter_list.rhtml
Overrode a number of the new account defaults and added some of my own
[selectricity-live] / app / views / election / _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?