X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/c35eb01007440d21ded1ec10e56406108fe44294..f2ac11cbeb49cbccd62da51c31e14a8de1a6d26c:/app/views/election/_candidate_line_edit.rhtml?ds=inline
diff --git a/app/views/election/_candidate_line_edit.rhtml b/app/views/election/_candidate_line_edit.rhtml
index 0fd5b67..0260a6a 100644
--- a/app/views/election/_candidate_line_edit.rhtml
+++ b/app/views/election/_candidate_line_edit.rhtml
@@ -1,28 +1,14 @@
-
<%=h @current_candidate.name %>
+
+
+ <%=h @current_candidate.name %>
<%= link_to_remote "Delete",
:complete => "Element.remove('cand#{@current_candidate.id}')",
:url => { :action => :delete_candidate,
- :id => @current_candidate.id } %>
+ :id => @election.id, :candidate => @current_candidate.id } %>
-
-
-
- <% if @current_candidate.picture? %>
-
- <% end %>
-
-
- <% if @current_candidate.description.length > 0 %>
- <%= h(@current_candidate.description) %>
- <% else %>
-
- <% end %>
-
-
-
+ <%= render :partial => 'candidate_box_info' %>