X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/4efa3e9bc47cc649205a399fde51ed7e61bef7f8..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/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 new file mode 100644 index 0000000..ea20a4f --- /dev/null +++ b/app/views/election/_candidate_line_edit.rhtml @@ -0,0 +1,24 @@ +<% -%> +
+

<%= @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.picture? %> + + <% end %> + + Description:
+ <%= h(@current_candidate.description) %> +
+
+

+