X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/34fe63727a8929d7e9c529feee1f0c1e827acdfa..e6fe35a13a73266debac4ce0cc42121b6845ab83:/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 78f8580..0260a6a 100644 --- a/app/views/election/_candidate_line_edit.rhtml +++ b/app/views/election/_candidate_line_edit.rhtml @@ -1,29 +1,14 @@ -<% -%> -
-

<%= @current_candidate.name %> - (<%= link_to_remote "Delete", +

+
+ + <%=h @current_candidate.name %>
+
+ <%= link_to_remote "Delete", :complete => "Element.remove('cand#{@current_candidate.id}')", :url => { :action => :delete_candidate, - :id => @current_candidate.id } %> | - <%= link_to "Edit", :action => 'edit_candidate', :id => - @current_candidate.id %>)
-
- - <% if @current_candidate.description.length > 0 %> - - <% else %> - - <% end %> -
- <% if @current_candidate.picture? %> - - <% end %> - - Description:
- <%= h(@current_candidate.description) %> -
-
+ :id => @election.id, :candidate => @current_candidate.id } %> +
+
+ <%= render :partial => 'candidate_box_info' %>