]> projects.mako.cc - selectricity/blob - app/views/elections/_candidate_line.rhtml
Variety of improvements and additions:
[selectricity] / app / views / elections / _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?