X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..f1e56bb13af6a40c2a81d224cff940f73aae6875:/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 old mode 100755 new mode 100644 index 78f8580..0fd5b67 --- a/app/views/election/_candidate_line_edit.rhtml +++ b/app/views/election/_candidate_line_edit.rhtml @@ -1,29 +1,28 @@ -<% -%> -
-

<%= @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 %> +
+
+