X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/45532efec547148def34ac29a1ea1c9652420d37..5901217a8893619fbdb02d540c08390f92eae368:/app/views/election/_candidate_line_edit.rhtml diff --git a/app/views/election/_candidate_line_edit.rhtml b/app/views/election/_candidate_line_edit.rhtml index 61a9f63..0fd5b67 100644 --- a/app/views/election/_candidate_line_edit.rhtml +++ b/app/views/election/_candidate_line_edit.rhtml @@ -1,29 +1,28 @@ -<% -%> -
-

<%=h @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 => @current_candidate.id } %> +
+
+ +
+
+ <% if @current_candidate.picture? %> + + <% end %> +
+
+ <% if @current_candidate.description.length > 0 %> + <%= h(@current_candidate.description) %> + <% else %> + + <% end %> +
+
+