X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc7d60a0de460c72d292b43616eb97a8b34741c8..c933ff40da110253bc4c474d9c79c3a4ed98721d:/app/views/election/_candidate_line.rhtml diff --git a/app/views/election/_candidate_line.rhtml b/app/views/election/_candidate_line.rhtml new file mode 100644 index 0000000..7f68e6f --- /dev/null +++ b/app/views/election/_candidate_line.rhtml @@ -0,0 +1,11 @@ +
+
  • + <%= @candidate.name %> + <% if @edit %> + <%= link_to_remote "Delete", + :complete => "Element.remove('cand#{@candidate.id}')", + :url => { :action => :delete_candidate, :id => @candidate.id } %> + <% end %> + +
  • +