]> projects.mako.cc - selectricity-live/blob - app/views/election/_candidate_line.rhtml
7f68e6fa60b1177abdf5c4d59524da29db4618db
[selectricity-live] / app / views / election / _candidate_line.rhtml
1 <div id="cand<%= @candidate.id %>">
2   <li>
3     <%= @candidate.name %>
4     <% if @edit %>
5       <%= link_to_remote "Delete",
6                          :complete => "Element.remove('cand#{@candidate.id}')",
7                          :url => { :action => :delete_candidate, :id => @candidate.id } %>
8     <% end %>
9
10   </li>
11 </div>

Benjamin Mako Hill || Want to submit a patch?