ea20a4fd6e6ab718511c535f4f6700371cf510ff
[selectricity] / app / views / election / _candidate_line_edit.rhtml
1 <% -%>
2 <div id="cand<%= @current_candidate.id %>">
3 <p><strong><%= @current_candidate.name %></strong>
4   (<%= link_to_remote "Delete",
5                        :complete => "Element.remove('cand#{@current_candidate.id}')",
6                        :url => { :action => :delete_candidate,
7                        :id => @current_candidate.id } %> |
8     <%= link_to "Edit", :action => 'edit_candidate', :id =>
9     @current_candidate.id %>)<br />
10     <blockquote>
11     <table><tr><td valign="top">
12       <% if @current_candidate.picture? %>
13       <img src="<%= url_for :action => 'candidate_picture',
14                             :id => @current_candidate.id %>"
15            align="top" />
16       <% end %>
17       </td>
18       <td valign="top">
19         <em>Description:</em><br />
20          <%= h(@current_candidate.description) %>
21     </td></tr></table>
22     </blockquote>
23 </p>
24 </div>

Benjamin Mako Hill || Want to submit a patch?